Skip to content

Applying migrations returns "cannot insert multiple commands into a prepared statement" #527

@LehuyH

Description

@LehuyH

Bug report

Describe the bug

Trying to get my local database in-sync with remote. Creating the initial migration was successful but I am unable to apply it since there is a "Error: ERROR: cannot insert multiple commands into a prepared statement (SQLSTATE 42601)"

To Reproduce

supabase-cli 1.7.9 on windows 10

  1. Run supabase db remote commit
  2. Run supabase db reset (or start)
  3. Applying migration ....remote_commit.sql...
    Error: ERROR: cannot insert multiple commands into a prepared statement (SQLSTATE 42601)

Expected behavior

It applies the migration

Screenshots

image

System information

  • Operating System: Windows_NT
  • Node Version: v16.14.0
  • Package Manager: yarn@1.22.4

Additional context

Starting superbase local with a blank DB, then running the migration file via the SQL editor in the studio works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions