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
The library works otherwise, but this makes invalid SQL:
importformatfrom'sqlutils/pg/format.js'constrecords=[{run: '1692826907-allwords',platform: 'APPLE',locale: 'en-US',term: 'electricity',rank: 10,total: 10,score: 4,result: 'electricity bill calculator $',ip: '127.0.0.1',pass: 1}]// copy to show that records is being modified in-placeconstoriginal=JSON.parse(JSON.stringify(records))constquery=format('INSERT INTO results ?',records)console.log(JSON.stringify({ query, original, records },null,2))
Looks like it doesn't like the $, which is valid for duckdb (which uses postgres sql syntax)
Additionally, it appears to be modifying my input, in-place, which is very bad.
The library works otherwise, but this makes invalid SQL:
Looks like it doesn't like the
$
, which is valid for duckdb (which uses postgres sql syntax)Additionally, it appears to be modifying my input, in-place, which is very bad.
The text was updated successfully, but these errors were encountered: