You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Can be reproduced with
When exec function throws a DatabaseError it typically has
position
property populated. With CREATE statements this is not the case though.The text was updated successfully, but these errors were encountered: