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
/Users/chris/Documents/catholica/node_modules/pgsql-deparser/main/deparser.js:1231
if (clause.infer.indexElems) {
^
TypeError: Cannot read properties of undefined (reading 'indexElems')
at Deparser.InsertStmt (/Users/chris/Documents/catholica/node_modules/pgsql-deparser/main/deparser.js:1231:30)
at Deparser.deparse (/Users/chris/Documents/catholica/node_modules/pgsql-deparser/main/deparser.js:281:26)
at Deparser.RawStmt (/Users/chris/Documents/catholica/node_modules/pgsql-deparser/main/deparser.js:285:25)
at Deparser.deparse (/Users/chris/Documents/catholica/node_modules/pgsql-deparser/main/deparser.js:281:26)
at /Users/chris/Documents/catholica/node_modules/pgsql-deparser/main/deparser.js:161:33
at Array.map (<anonymous>)
at Deparser.deparseQuery (/Users/chris/Documents/catholica/node_modules/pgsql-deparser/main/deparser.js:161:14)
at deparse (/Users/chris/Documents/catholica/node_modules/pgsql-deparser/main/deparser.js:146:42)
at file:///Users/chris/Documents/catholica/database/seeders/seed.js:28:19
Line 1231
It doesn't seem to like the ON CONFLICT DO NOTHING and clause has no infer property. I've fixed it locally with an optional chain after infer for both the if (line 1231) and else if (line 1236).
The text was updated successfully, but these errors were encountered:
I received this error stack trace while deparsing the following SQL:
Line 1231
It doesn't seem to like the
ON CONFLICT DO NOTHING
andclause
has noinfer
property. I've fixed it locally with an optional chain afterinfer
for both the if (line 1231) and else if (line 1236).The text was updated successfully, but these errors were encountered: