Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pglite.exec() missing error positions for CREATE TABLE statements #468

Open
ArtturiSipila opened this issue Dec 13, 2024 · 0 comments
Open

Comments

@ArtturiSipila
Copy link

Can be reproduced with

try {
   await new PGlite().exec(`-- this is my test
      CREATE TABLE test(one INT, two TEXT);
      CREATE TABLE test(one INT, two TEXT);`);
   } catch (error: unknown) {			
   console.log(error.position);
}

When exec function throws a DatabaseError it typically has position property populated. With CREATE statements this is not the case though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant