Commit Graph

1070 Commits

Author SHA1 Message Date
brianc
400d410ad5 remove failing, postgreSQL version specific test
notify test fails on the version of postgres running on travis.  I need to investigate this.  Since it's an extremely non-important test & coupled to a particular version of postgres I'm going to remove until I can figure out a better way to reproduce.
2012-08-07 08:44:41 -05:00
Ben Montgomery
52b1361f67 remove unnecessary whitespace 2012-08-07 08:38:57 -05:00
Ben Montgomery
a9635a3d8d Improve error message accuracy of native SendQuery
* add private method const char *GetLastError() to src/binding.cc
* add var const char *lastErrorMessage to SendQuery in src/binding.cc
* throw result of PQErrorMessage inside SendQuery

This commit replaces the static/vague error message "PQsendQuery
returned error code" with the actual message text of the error.
The method GetLastError() returns the text of PQErrorMessage.
GetLastError is called from within SendQuery to retrieve the message.
2012-08-07 08:38:57 -05:00
brianc
f5b49f1f42 increase test timeout for travis 2012-08-07 08:36:30 -05:00
brianc
e6c46aed17 version bump 2012-08-07 08:33:42 -05:00
booo
bab01eac40 Add missing integeration test for date type parser.
We don't parse date types in the javascript binary parser. Keep this in mind if
you plan to use the binary javascript parser.
2012-08-01 18:48:47 +02:00
booo
85829a98d3 Add initial fix for #156.
TODO: Fix the javascript binary parser too.
2012-08-01 18:48:47 +02:00
booo
dea80ac588 Add unit test for #156.
TODO: add integration test
2012-08-01 18:48:47 +02:00
brianc
550617f6ad allow using pg environment variables as test connection parameters 2012-07-30 21:57:28 -05:00
Ben Montgomery
c736ba14b3 remove unnecessary whitespace 2012-07-26 15:40:53 -04:00
Brian Carlson
5ca05e9cfe Merge pull request #151 from cosbynator/master
Expose a pass-through a logger for generic-pool and bump dependency version
2012-07-24 20:28:19 -07:00
Ben Montgomery
1551f1d183 Improve error message accuracy of native SendQuery
* add private method const char *GetLastError() to src/binding.cc
* add var const char *lastErrorMessage to SendQuery in src/binding.cc
* throw result of PQErrorMessage inside SendQuery

This commit replaces the static/vague error message "PQsendQuery
returned error code" with the actual message text of the error.
The method GetLastError() returns the text of PQErrorMessage.
GetLastError is called from within SendQuery to retrieve the message.
2012-07-24 12:53:00 -04:00
Thomas Dimson
ae88278845 Add pass-through of log function to generic-pool. Bump generic-pool version. 2012-07-15 20:08:26 -07:00
brianc
0fcf7093d3 add travis badge to readme 2012-07-11 23:13:15 -05:00
brianc
23bfcc52f4 dont create postgres database 2012-07-11 23:06:45 -05:00
brianc
822e48d41e no dash in database name 2012-07-11 23:05:39 -05:00
brianc
57a2176d48 initial crack at travis-ci 2012-07-11 23:01:54 -05:00
brianc
585f480a2c update npm version 2012-07-11 22:50:57 -05:00
brianc
fa80b4e3fa make data conversion the same between native & javascript 2012-07-11 22:47:02 -05:00
brianc
e4a5f2edad remove '0' character from test output 2012-07-11 22:46:19 -05:00
brianc
046c4f07c2 ignore connection string test until better parsing is incorporated 2012-07-11 22:44:21 -05:00
Brian Carlson
0d78763066 Merge pull request #149 from booo/c++
additional changes for the native binding
2012-07-11 20:38:51 -07:00
booo
ccc3f81dfa enable some useful test cases again 2012-07-06 15:59:38 +02:00
booo
17e8287bdd call nativeConnect after defining the error handler/callback 2012-07-06 15:55:10 +02:00
booo
5329e5e17e check if the uv_poll_t struct is initialized before calling uv_poll_stop
Before this fix a call to End after an error in Connect() would result in
a segfault.

https://github.com/brianc/node-postgres/issues/136#issuecomment-6774321
2012-07-06 15:16:04 +02:00
booo
3680b5931b remove unnecessary LOG call; we emit a proper error later in the code 2012-07-06 14:25:07 +02:00
booo
60130a933d check for CONNECTION_BAD status before calling PQsetnonblocking 2012-07-06 14:22:59 +02:00
booo
125075b796 call uv_poll_start on Flush() 2012-07-06 14:15:51 +02:00
booo
d7b9f64b02 remove unnecessary comments 2012-07-06 14:08:03 +02:00
brianc
4d482e451b use client#connect callback in pg.connect connection error handling 2012-07-05 22:38:07 -05:00
brianc
66328cc6cb update engines to only support >=v0.8.x/libuv on the master branch 2012-07-05 22:38:07 -05:00
brianc
757316f33e minor version bump to indicate shift to libuv backend for native bindings 2012-07-05 22:38:07 -05:00
booo
70de032e61 initial fix for issue #136
Test case from ticket works but some tests fail.

Signed-off-by: brianc <brian.m.carlson@gmail.com>
2012-07-05 22:38:07 -05:00
Brian Carlson
fe10d8544a Merge pull request #144 from rpflorence/master
Syntax highlighting for the README
2012-07-04 18:35:44 -07:00
Ryan Florence
4d30540bd8 Github syntax highlighting for the README 2012-07-03 19:05:24 -06:00
Brian Carlson
accb94b211 Merge pull request #135 from machunter/master
failing test for issue 6247131
2012-06-28 17:25:27 -07:00
brianc
4979d31e9f version bump 2012-06-28 19:21:06 -05:00
brianc
84569ab8d5 Merge remote-tracking branch 'sannis/patch-1' 2012-06-28 19:19:17 -05:00
brianc
31566cf056 fix failing array test - closes #125 2012-06-28 19:13:52 -05:00
Oleg Efimov
569f757f3f Use pg_config in bindings.gyp 2012-06-28 22:29:15 +04:00
brianc
913207575b use node-gyp - closes #132 2012-06-18 22:43:30 -05:00
Brian Carlson
0e742a011d Merge pull request #134 from shtylman/master
It said fork and add so that is what I did :)
2012-06-18 20:12:51 -07:00
burc sahinoglu
3e70c457cc test case for password containing a < or > sign 2012-06-13 12:46:47 -07:00
Roman Shtylman
e2e9e27a49 add bitfloor.com to Production Use section in Readme.md 2012-06-12 21:52:57 -03:00
brianc
bb9cd85ff4 version bump 2012-05-30 23:44:53 -05:00
brianc
176e6c7ab2 include command metadata with native query result callback - closes #128 2012-05-30 23:38:03 -05:00
brianc
7f00b3ee30 use correct parse function for float arrays - closes #131 2012-05-30 22:51:59 -05:00
brianc
730355040d add failing test for #131 2012-05-30 22:50:12 -05:00
brianc
7a2c428973 ignore writes to unwritable sockets - closes #130 2012-05-30 22:41:51 -05:00
brianc
66ea0249d8 add failing test for #130 2012-05-30 22:40:49 -05:00