Brian C
a8bd44a6ec
Requiring native bindings polutes 'global' ( #984 )
...
There was some nasty global-ish variable reference updating happening when the native module 'initializes' after its require with `require('pg').native`
This fixes the issue by making sure both `require('pg')` and `require('pg').native` each initialize their own context in isolation and no weird global-ish references are used & subsequently stomped on.
2016-04-08 18:46:10 -05:00
Brian C
93d1e88d81
Merge pull request #935 from jkgeyti/master
...
Support querying tables with column names with multiple apostrophes
2016-02-15 11:50:00 -05:00
Frederick Stark
ac438e8952
Add integration test for Result.addRow
2016-02-12 13:37:49 +11:00
Jens Kristian Geyti
02c47f5071
Support querying tables with column names with multiple apostrophes (issue #934 ). Includes integration test.
2016-02-10 20:52:43 +00:00
Tom Hughes
771111eb73
Use connection configuration consistently in tests
2015-12-04 15:41:11 +00:00
Brian C
0102bad997
Merge pull request #825 from kevinburke/typo-fix
...
s/saftey/safety
2015-08-04 08:52:00 -05:00
Kevin Burke
b4746e82e5
s/saftey/safety
2015-08-02 09:25:57 -07:00
brianc
6f8292435d
Respond to emptyQuery with a sync message
...
When a __prepared statement__ has no body in the query the backend responds with an `emptyQuery` message but never with a `commandComplete` or `errorResponse` message. The client was hanging forever waiting for one of the other two expected messages. The server was hanging forever waiting for the client to respond with a `sync` message. This change has the client send the required `sync` on receipt of an `emptyQuery` message when the query is a prepared statement. Fixes #822
2015-08-01 18:51:49 -05:00
brianc
17f14f4e58
Add warning for native bindings
2015-06-07 10:20:48 -04:00
brianc
7568f84553
Patch failing test until I have time to investigate
2015-03-01 19:22:18 -05:00
Marek
4e37b1f053
Add test to make sure interval objects returned can be passed back into a prepared statement
2015-01-27 17:27:09 +00:00
Brian M. Carlson
e2aa07c06c
Remove error code test on native
2015-01-13 18:13:20 -05:00
rpedela
619783b916
#701 Add tests for new error fields in 9.3+.
2015-01-12 12:23:17 -07:00
Brian M. Carlson
1094040344
Fix test
2014-12-13 12:25:07 -05:00
Kesav Kumar Kolla
0994d6b795
Added test cases for issue #699
2014-12-12 13:53:09 +05:30
David H. Bronke
5fff5fc61f
Added integration test for overriding type parsers on a per-client basis.
2014-12-03 09:45:20 -06:00
Brian M. Carlson
fb2db0874d
Merge with origin/master
2014-11-18 14:59:38 -05:00
Brian M. Carlson
35596fdbdc
Upgrade version of pg-native
2014-11-18 09:32:16 -05:00
Brian M. Carlson
f088442570
Fix for empty buffer segfault in native bindings
2014-11-10 23:29:15 -05:00
Brian M. Carlson
9e2a3e599b
Fix issue with parsed statement cache timing - closes #665
2014-10-21 13:50:49 -04:00
Brian M. Carlson
11c3c74994
Merge branch 'master' of github.com:brianc/node-postgres
2014-10-20 00:21:28 -04:00
Brian M. Carlson
1ccc5eb40b
Add regression test for #199
2014-10-20 00:21:16 -04:00
Brian M. Carlson
1e648c5df4
Do not consider a statement as prepared if it errors
...
Fixes #600
2014-10-19 22:53:08 -04:00
Brian M. Carlson
4c5f3aba65
Add support for native rowMode: array
...
This completes the port from the old native bindings to the new node-pg-native bindings!
Time to build in support for older versions of postgres & start the pull request process.
2014-10-11 14:09:29 -04:00
Brian M. Carlson
3867851341
Make cancel query tests pass
2014-10-09 21:12:17 -04:00
Brian M. Carlson
dd2e71ce97
Fix max connection tests
2014-10-07 00:47:35 -04:00
Brian M. Carlson
c5d4207aac
Fix a few more failing tests
2014-09-23 18:57:20 -04:00
Brian M. Carlson
e99f8d59a6
Remove test skip
2014-09-14 21:14:24 -04:00
Brian M. Carlson
d2bb532d73
Make moar tests pass
2014-09-14 21:11:51 -04:00
Brian M. Carlson
667c528ea6
Work towards more tests passing
2014-09-14 01:23:02 -04:00
Gurjeet Singh
75760c4aa2
Improve unit tests of escape-literal/identifier, and remove them from integration tests.
...
Improve the code and clarity of unit tests in escape-tests.js. And
removed the related integration tests since it has been demonstrated in
the unit tests that a connection is not needed for escaping the literals
and identifiers.
2014-06-15 17:09:34 -04:00
Marek
47b0aafa6d
Make sure 'end' is emitted even if no connection has ever happened
2014-05-13 12:57:01 +01:00
Ricky Ng-Adam
8fb28c5cfe
test timeout value modifiable globally with TEST_TIMEOUT env variable
2014-05-02 12:32:15 +08:00
Ricky Ng-Adam
1345516117
bump up timeout for tests against AWS from 5s to 15s
2014-04-25 13:49:18 +08:00
Ricky Ng-Adam
fbedaf4587
capture error message from intermittent failure of copy-tests.js
2014-04-24 08:55:00 +08:00
Ricky Ng-Adam
6216f6089f
test to reproduce behavior of issue brianc/node-postgres#549
...
a fix was provided in 5079c1e0c41f431ac2e02c40ebd875d8fbb34004;
test is modeled on query-error-handling-tests.js;
test both kill query and disconnection on prepared statement execution;
make connection error string message consistent between native and non-native;
disable test server-side kill for native as it hangs;
sync can cause error to be emitted so we catch that;
we also move _ending state before _send is called.
2014-04-24 08:36:54 +08:00
Brian C
1047aeb3c2
Merge pull request #571 from letsface/ended-event-on-pool-drained
...
emit event 'ended' on pool drained
2014-04-22 16:27:57 -05:00
Ricky Ng-Adam
0882c8da02
from ended to end
2014-04-18 23:30:45 +08:00
Ricky Ng-Adam
382d6d66f9
emit event when all pool are actually destroyed
2014-04-17 16:18:49 +08:00
Philipp Borgers
732fb7cc61
do not abuse label as comment in test-case
2014-04-16 19:02:54 +02:00
Brian M. Carlson
bd74d48791
Fix query error emit on native bindings
2014-04-06 12:55:26 -05:00
Brian M. Carlson
357b64d704
Remove query emit 'end' event when query has error
...
Closes #547
2014-04-06 11:53:47 -05:00
Brian M. Carlson
779c8064f2
Add domain support to connection pool
2014-03-15 16:41:33 -05:00
Brian M. Carlson
876abe8730
Break type parsing into separate module
2014-03-15 15:36:27 -05:00
Michael Payne
b81a60a260
Parse date type as local time
2014-01-26 10:43:15 -05:00
Brian M. Carlson
5f592a1240
Fix exception caused by column names with single quotes
...
Also rename some test files so they match the Makefile regex. They will be included in the test suite from now on.
2014-01-22 08:38:29 -06:00
Hannes Hörl
4f00e5ab1a
typo
2014-01-05 18:29:30 +01:00
Hannes Hörl
caffda67f2
change test to work on travis
2014-01-05 18:26:42 +01:00
Hannes Hörl
7fd79a41c3
Add support for (fallback_)application_name
2014-01-05 18:08:58 +01:00
Hannes Hörl
5c5c57e60b
Fixes bug in test for extended years
2013-12-23 02:13:10 +01:00