Pavel Lang
ad2ffce986
pg.native returns null if pg-native is missing ( #950 )
...
`require('pg').native` will be `null` and report error once to `stdout` when `pg-native` is missing.
8 years ago
Mayhem
e5d2f96099
Use strictEqual instead
10 years ago
Mayhem
37956e22c5
Fix result.rowCount being a string instead of a number via native bindings.
...
Fixes #708
10 years ago
Brian M. Carlson
c3513a27fa
Make native bindings an optional install
10 years ago
Brian M. Carlson
667c528ea6
Work towards more tests passing
10 years ago
Brian M. Carlson
b325971fdf
Make more tests pass
10 years ago
rpedela
539d3bae54
Move string escaping tests to proper locations.
11 years ago
rpedela
b5e89b2b9a
Add native and JS tests for escapeLiteral and escapeIdentifier.
11 years ago
Andrey Popp
fddf0546d0
test for native to preserve an active domain
12 years ago
brianc
683d636501
better handling of client stream termination
...
1. Pass an error to an active query if the client is ended while a query is in progress.
2. actually emit 'end' event on the client when the stream ends
3. do not emit an error from native bindings if lasterror is null
12 years ago
anton
88d684f925
bugfix. sometimes native copy to loose rows
12 years ago
anton
583d059947
add tests that checks error reporting for incorrect copy to/copy from usage. add tests for fixed bug in native copy from implementation
12 years ago
anton
965b7b4f84
test event exchange between libpq bindings and js while COPY TO/FROM
12 years ago
Alexander Sulfrian
f698ed4459
use config dict in all test
...
instead of the connection string use the config dict in all tests to
be able to specify things like binary mode
13 years ago
brianc
675bb5204c
remove final assert.length
13 years ago
brianc
4cb97a2b9e
switch to node-pool from custom client pool
13 years ago
Brian Carlson
2836c8b64d
native connection failures gracefully emit error from libpq
14 years ago
bmc
47591d677b
callback api working
14 years ago
brianc
ded6c05ed6
callback api failures
14 years ago
brianc
128dbcb84c
failing test for simple query with callback
14 years ago
brianc
3594ab5185
quick support for integer parameters
14 years ago
bmc
8c7083207a
string based parameterized statements working
14 years ago
brianc
ba1c6cf8cf
spacing
14 years ago
brianc
567446e090
error tests
14 years ago
brianc
b7c3db5f32
error test
14 years ago
brianc
f4ca716b93
throw exception when passing non-string to query
14 years ago
brianc
cc2ff042ef
failing test for parameterized queries
14 years ago
brianc
c58037b514
reduce max number of concurrent clients in stress test since it is
...
over the default
14 years ago
Brian Carlson
3233dba5ad
Merge branch 'libpq' of https://github.com/brianc/node-postgres into libpq
14 years ago
Brian Carlson
2a5df5d7c5
added stress tests for native bindings
14 years ago
brianc
ca9b3cb2cd
can pass config object to native query
14 years ago
Brian Carlson
569f760b5e
updated test & makefile to be more in line with other uses
14 years ago
Brian Carlson
cda667df24
tests for PGRES_COMMAND_OKAY and multiple rows
14 years ago
Brian Carlson
c321151325
cleaned up file structure & improved evented query api compat
14 years ago