Commit Graph

900 Commits

Author SHA1 Message Date
Brian C
460d5d0ab0 Merge pull request #215 from natesilva/ipv6-native-support
enable IPv6 support when using native bindings
2012-11-03 14:02:53 -07:00
Brian C
aa242b028b Merge pull request #213 from gurjeet/use_getFullYearInExample
Use JS Date's getFullYear() in first example.
2012-11-03 14:01:15 -07:00
Nate Silva
4b88c82b16 enable IPv6 support when using native bindings 2012-11-03 11:40:36 -07:00
Gurjeet Singh
a138407c6a Use JS Date's getFullYear() in first example.
In year 2012, seeing the output of 112 confused me, and would potentially
confuse any JS noob. I thought it was some bug in node-postgres.

Presumably, JS starts counting time from Jan 1, 1900!

Also, according to [1], getYear() is deprecated and one should use getFullYear()
instead.

[1] http://www.w3schools.com/jsref/jsref_obj_date.asp
2012-11-03 08:43:13 -04:00
brianc
a029e6512b version bump 2012-10-15 17:58:17 -05:00
brianc
c204a27caf Merge remote-tracking branch 'kongleaks/improveSendQueryErrorMsgAccuracy' into pull/188 2012-10-15 17:55:46 -05:00
brianc
ee36344a26 add test for exported types 2012-10-15 17:47:28 -05:00
Michael Jackson
ffe4cdcf27 Export types module 2012-10-15 17:45:06 -05:00
brianc
09a3701ca4 version bump 2012-10-15 17:43:41 -05:00
brianc
40f084460e ignore hanging tests 2012-10-15 17:43:14 -05:00
Brian C
d715515f94 Merge pull request #196 from booo/uv_events
windows build
2012-10-10 07:40:01 -07:00
Brian C
fc91f36dc9 Merge pull request #197 from andresgottlieb/patch-1
Update README.md
2012-10-09 14:50:06 -07:00
Andres Gottlieb
f9042f2dc9 Update README.md
Added Vendly to production use section
2012-09-30 13:40:37 -03:00
booo
e4c8d95177 Change library extension for windows build.
Thanks to image72!
2012-09-26 22:00:25 +02:00
booo
4cb66d1a94 Add conditions to the binding.gyp for windows, linux, mac. 2012-09-26 22:00:25 +02:00
booo
7826e492b4 Change return type of Cancel() to bool.
This should fix the following warning on windows:

..\src\binding.cc(117): warning C4800: 'int' : forcing value to bool 'true' or
'false' (performance warning)

Spotted in issue #165.
2012-09-26 22:00:24 +02:00
booo
175d18dce7 Fix for issue #165. Use libuv events instead of libev events. 2012-09-26 22:00:24 +02:00
bmc
9341efe669 allow options to pass to js ssl connection bindings 2012-09-10 21:40:41 -05:00
bmc
a1d00919b0 version bump 2012-09-09 21:27:22 -05:00
bmc
886926a777 pass result object to native query 'row' event - closes #183 2012-09-09 21:13:36 -05:00
bmc
6640271f53 add failing test for #183 2012-09-09 20:53:12 -05:00
Brian C
ba733f5cde Merge pull request #174 from grncdr/typo_fix
Fix typos in simple-query-tests.js
2012-08-20 19:45:25 -07:00
brianc
1703f47bbd add comma 2012-08-20 21:43:29 -05:00
brianc
d19e6971d1 version bump 2012-08-20 21:42:40 -05:00
Bruno Harbulot
158562f3d1 Initial support for SSL/TLS connections. 2012-08-20 21:41:56 -05:00
Stephen Sugden
0205860dfd Fix typos in simple-query-tests.js 2012-08-19 12:20:48 -07:00
Brian C
66b569c3fc Merge pull request #172 from linearray/fixbytea
#161: Fixed bytea decode and added 'hex' for pg >= 9.0.
2012-08-18 15:20:39 -07:00
Max Amanshauser
430f1079fc Tidy up 2012-08-18 13:48:06 +02:00
Max Amanshauser
669826a866 Slightly more efficient hex bytea decode 2012-08-18 13:26:13 +02:00
Max Amanshauser
9b078eddcc Fixed bytea decode and added 'hex' for pg >= 9.0. 2012-08-10 14:59:56 +02:00
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