We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z, x, y are int columns:
var pg = require('pg'); var credentials = 'pg://demo@localhost/logs'; var client = new pg.Client(credentials); client.connect(); client.query("INSERT INTO requests (api, name, z, y, x, type) " + "VALUES ($1, $2, $3, $4, $5, $6)", [ '1.0.0', 'foo', '35', '5', '2', 'png' ], function(err) { console.log(err); });
The text was updated successfully, but these errors were encountered:
does the data not get inserted? When I test this:
var pg = require(__dirname + '/../node-postgres/lib'); pg.connect("tcp://postgres:1234@localhost/postgres", Æ(err, client) { client.query("CREATE TEMP TABLE test(num integer)"); client.query("INSERT INTO test(num) VALUES($1)", ['1'], Æ(err, result) { console.log("error: %j", err); console.log("result: %j", result); }) })
I get the output:
$ node spike/insert-tests.js error: null result: {"rows":[],"command":"INSERT","rowCount":1,"oid":0}
Sorry, something went wrong.
Sorry for that; I suspect it didn't get inserted because the surrounding transaction was cancelled.
Merge pull request #18 from benny-medflyt/patch-1
4db1a7e
Fix typings
No branches or pull requests
z, x, y are int columns:
The text was updated successfully, but these errors were encountered: