Brian M. Carlson
1ccc5eb40b
Add regression test for #199
2014-10-20 00:21:16 -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
Hannes Hörl
9ad0159037
merge with upstream
2013-12-22 23:21:42 +01:00
Brian C
f58ff731ce
Merge pull request #477 from rvagg/nan
...
use NAN for Node 0.8->0.11+ compatibility
2013-12-12 16:19:03 -08:00
Hannes Hörl
61f8f55d43
Handle .pgpass in the native client
2013-12-11 01:24:55 +01:00
Michael Payne
e6a2525540
Test for date range extremes
2013-12-09 23:35:46 -05:00
Rod Vagg
6cb167112e
convert to NAN for Node 0.8->0.11+ support
2013-12-06 15:30:28 +11:00
Hannes Hörl
95295ad2fb
Handle .pgpass in the js client
2013-12-06 00:01:51 +01:00
Brian Carlson
c6a235fb5d
Fix race condition in test
2013-10-02 22:39:31 -05:00
Brian Carlson
a2d0ab286a
Do not run tests for binary mode
2013-09-01 22:03:49 -05:00
Brian Carlson
fb499e4b3d
Fix incorrect failing date test
2013-09-01 21:59:33 -05:00
Brian Carlson
5c233896f1
Add failing early date tests
2013-09-01 21:59:01 -05:00
Brian Carlson
e744d05df7
Add ability to opt-in to int8 parsing
...
Switching the result of all COUNT operations to a string is
a pretty nasty breaking change, and the majority of us aren't
going to be hitting numbers larger than Number.MAX_VALUE
2013-08-29 00:04:27 -05:00
Brian Carlson
fb5520bb8a
Remove built-in binary int64 parser
2013-07-30 13:15:31 -05:00
Brian Carlson
343caefb75
Fix race in error handling test
2013-07-23 09:51:48 -05:00
Maciek Sakrejda
816e9b43ea
Use the standard postgres:// URL prefix for consistency
...
Fixes #286 .
2013-07-22 10:45:26 -07:00
rpedela
539d3bae54
Move string escaping tests to proper locations.
2013-07-15 09:13:48 -05:00
Brian Carlson
145666c1b3
Support result rows as arrays
2013-07-08 17:45:06 -05:00
Brian Carlson
325a6d9153
Add failing test for result rows as arrays
2013-07-08 09:40:32 -05:00
Brian Carlson
3f96bbbc5c
Add field metadata to query result object
...
Refactored the way rows are built in the native bindings which should
result in a small performance improvement
2013-07-08 09:19:30 -05:00
Brian Carlson
3f4a44e973
Skip error test on travis
...
Some weird thing with the environment up there is causing the test
to fail about 30% of the time it runs.
2013-07-08 08:04:53 -05:00
Brian C
9d773a29c2
Merge pull request #387 from brianc/issues/350
...
Ensure error being returned to native client
2013-07-08 05:52:25 -07:00
Brian Carlson
d3ba322e3c
Add more output to test to help debug it on travis
2013-07-05 12:52:04 -05:00
Brian C
58b4f266ea
Merge pull request #386 from brianc/js-ssl
...
Fix long-standing hanging SSL connection but with JavaScript
2013-07-01 12:43:54 -07:00
bmc
12cc7d53d8
Add failing test for native quick disconnect hang
2013-06-30 12:03:27 -07:00
bmc
95507dac5f
Enable connection failure error handling tests
2013-06-30 11:39:07 -07:00
bmc
81ce2f6d9c
Make test more robust
2013-06-30 00:12:43 -07:00
bmc
53a772af49
Add heroku password to heroku test
2013-06-29 23:19:17 -07:00
bmc
f69fe95042
Add failing test for heroku ssl connection
2013-06-29 22:15:56 -07:00
Hannes Hörl
b313a392a7
delete the entire module cache
2013-06-29 10:15:39 +02:00
Hannes Hörl
0d1054a874
remove modules from the cache & load test-helper
2013-06-27 02:42:21 +02:00