Commit Graph

813 Commits

Author SHA1 Message Date
brianc
102a069bd2 have native bindings emit proper result object on 'end' event - closes #219 2012-12-10 23:25:26 -06:00
brianc
99f1717ba8 make error message text more obvious 2012-12-10 23:23:23 -06:00
brianc
1c43930ba1 cleanup & fix failing tests to allow for green merge of pull #228 2012-12-10 22:44:58 -06:00
brianc
0c487fc078 give failing tests a name 2012-12-10 22:26:23 -06:00
Troy Kruthoff
e62eb9339b make Query a public api 2012-12-10 21:32:20 -06:00
brianc
312a3dd01c update tests to assert local time for timestamp without timezone -- bumps minor version 2012-12-10 21:24:40 -06:00
Sandro Santilli
ecee5529e4 Add comment about which oid correspond to which datetime field 2012-12-10 20:46:44 -06:00
Sandro Santilli
b7fd9a5625 Do not assume dates with no timezone specifier are UTC
Fixes #225
2012-12-10 20:46:44 -06:00
brianc
8b9e97f5b9 update version of node-pool closes gh #223
added integration test to catch any future regressions
2012-12-04 17:53:04 -06:00
brianc
128975e6f3 version bump 2012-12-04 14:18:34 -06:00
brianc
c5b804f5c4 fix reference to ssl parameters 2012-12-04 14:18:19 -06:00
bmc
62385edbe7 version bump 2012-11-03 16:07:09 -05:00
bmc
1b56d154a7 make 1st example not hang in readme 2012-11-03 16:06:56 -05:00
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