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
await sql`
INSERT INTO table_name
${sql(inputData)}
`
Postgres.js debug output
SQL:
INSERT INTO table_name
("start_time")values($1)
Params: [ 'to_timestamp(3213213210)' ]
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
RangeError: Invalid time value
at Date.toISOString (<anonymous>)
at Object.serialize
Direct postgres query select to_timestamp(3213213210); => 2071-10-27 18:13:30.000 -0500
The text was updated successfully, but these errors were encountered:
Code
Postgres.js debug output
Direct postgres query
select to_timestamp(3213213210);
=>2071-10-27 18:13:30.000 -0500
The text was updated successfully, but these errors were encountered: