electric-sql / pglite

Lightweight WASM Postgres with real-time, reactive bindings.
https://pglite.dev
Apache License 2.0
9.46k stars 204 forks source link

Drizzle migrations do not work #303

Closed luskin closed 2 months ago

luskin commented 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

luskin commented 2 months ago

Solution: https://github.com/drizzle-team/drizzle-orm/issues/2794#issuecomment-2317804268