Closed luskin closed 2 months ago
When running a drizzle migration, we receive the following error:
error: cannot insert multiple commands into a prepared statement ❯ st.Pt ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pg-protocol/src/parser.ts:431:11 ❯ st.ws ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pg-protocol/src/parser.ts:210:16 ❯ st.parse ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pg-protocol/src/parser.ts:102:25 ❯ Ct.execProtocol ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pglite/src/pglite.ts:766:5 ❯ Ct.V ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pglite/src/pglite.ts:812:37 ❯ ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pglite/src/pglite.ts:527:7
Solution: https://github.com/drizzle-team/drizzle-orm/issues/2794#issuecomment-2317804268
When running a drizzle migration, we receive the following error:
error: cannot insert multiple commands into a prepared statement ❯ st.Pt ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pg-protocol/src/parser.ts:431:11 ❯ st.ws ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pg-protocol/src/parser.ts:210:16 ❯ st.parse ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pg-protocol/src/parser.ts:102:25 ❯ Ct.execProtocol ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pglite/src/pglite.ts:766:5 ❯ Ct.V ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pglite/src/pglite.ts:812:37 ❯ ../../node_modules/.pnpm/@electric-sql+pglite@0.2.5/node_modules/@electric-sql/pglite/src/pglite.ts:527:7