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
const cmment = JSON.stringify({"requestId":"test-request-id"}) await PGLiteDataSource.query(CREATE TABLE IF NOT EXISTS todo (
id SERIAL PRIMARY KEY,
task TEXT,
done BOOLEAN DEFAULT false
) /* RequestId ${cmment} RequestId */);
QueryFailedError: invalid syntax at line 5 col 28:
3 task TEXT,
4 done BOOLEAN DEFAULT false
5 ) /* RequestId {"requestId":"test-request-id"} RequestId */;
^
Unexpected input (lexer error). Instead, I was expecting to see one of the following:
- A "kw_primary" token
- A "kw_unique" token
- A "quoted_word" token
- A "word" token
- A "semicolon" token
To Reproduce
"If possible, paste here (including create table statements) a query that fails on https://oguimbal.github.io/pg-mem-playground/, but suceeds when ran on an actual PG database"
pg-mem version
(paste your pg-mem version here)
(nb: the version in your package.json version is often not precise enough... please run "cat ./node_modules/pg-mem/package.json | grep version" to tell which minor version is actually installed)
The text was updated successfully, but these errors were encountered:
Describe the bug
Trying this with typeorm
const cmment = JSON.stringify({"requestId":"test-request-id"}) await PGLiteDataSource.query(
CREATE TABLE IF NOT EXISTS todo (id SERIAL PRIMARY KEY,
task TEXT,
done BOOLEAN DEFAULT false
) /* RequestId ${cmment} RequestId */
);
To Reproduce
"If possible, paste here (including create table statements) a query that fails on https://oguimbal.github.io/pg-mem-playground/, but suceeds when ran on an actual PG database"
pg-mem version
(paste your pg-mem version here)
(nb: the version in your package.json version is often not precise enough... please run "cat ./node_modules/pg-mem/package.json | grep version" to tell which minor version is actually installed)
The text was updated successfully, but these errors were encountered: