2461 Commits

Author SHA1 Message Date
Pasi Eronen
9825e7c733 Use Buffer.from instead of deprecated Buffer constructor 2018-01-05 13:40:25 -06:00
Pasi Eronen
70a8ee1334 Don't repeat logic for reporting stream errors 2018-01-05 13:40:25 -06:00
Pasi Eronen
4cf67b23d4 Ignore socket hangup when ending connection also with ssl (#1344). 2018-01-05 13:40:25 -06:00
Ben Holden-Crowther
c9ca1dad69 License date in README 2018-01-03 21:09:12 +00:00
Ben Holden-Crowther
1e48733b20 Update license date 2018-01-02 20:15:15 +00:00
jakob
2398e992a8 return rowCount on insert 2018-01-01 18:43:18 +00:00
benny-medflyt
ece7645187
typings: turns out "host" can actually be null 2017-12-13 11:23:28 +02:00
benny-medflyt
929fcb73c3
Fix typings 2017-12-13 11:20:29 +02:00
Brian C
6c723b2f14
Update SPONSORS.md 2017-12-06 10:11:49 -06:00
Brian C
56633a5989
Update SPONSORS.md 2017-12-06 10:06:13 -06:00
Youngwook Kim
279fdeae2f Add supporting username and password for socket connections
This fix adds the ability to use username and password even when using
a socket.
2017-11-22 10:17:22 +09:00
Charmander
9870c86fde Make tests compatible with PostgreSQL 10
PostgreSQL 10 reports its version as only `major.minor`, so it can’t be parsed with semver. The `server_version_num` setting is a major version followed by a four-digit minor version since version 10, and was a three-digit major version followed by a two-digit minor version before that.
2017-11-17 14:16:03 -06:00
Charmander
0b80abacaf Specify collation when relied on in tests
Fixes #189.
2017-11-17 14:12:16 -06:00
Brian M. Carlson
9da3a85cbc Bump version v7.4.0 2017-11-04 14:21:36 -05:00
Brian M. Carlson
fccf8e818c Update changelog 2017-11-04 14:21:28 -05:00
Jan Schär
894e2f2f1e Support Uint8Array values 2017-11-04 14:18:36 -05:00
Robert Treat
32537d5345 Fix minor type in recent changelog entry 2017-11-04 14:17:26 -05:00
Sehrope Sarkuni
19bfb2f9b8 Add postgresql to package.json keywords 2017-11-04 14:17:10 -05:00
Sehrope Sarkuni
c2da0ed978 Sort keywords in package.json 2017-11-04 14:17:10 -05:00
Charmander
74aaced74a Avoid modifying package.json or creating package-lock when running tests with npm 5
Should save some confusion in future pull requests (#1465, #1436, #1363).
2017-11-04 14:16:34 -05:00
Hetul Patel
24e485e81e Fix closing a finished cursor without supplying a callback 2017-10-03 18:13:40 -07:00
Brian C
e087305f31 Update SPONSORS.md 2017-09-06 10:41:25 -05:00
Brian M. Carlson
f66379f5fe Bump version v7.3.0 2017-09-03 14:41:16 -05:00
Brian M. Carlson
dfc7214d14 Update changelog 2017-09-03 14:41:03 -05:00
Sehrope Sarkuni
f1336fcb00 Change Makefile to use local eslint
Changes the Makefile lint target to use the local copy of
eslint that would be installed in node_modules rather than
a global copy that may not be installed.
2017-09-03 14:28:32 -05:00
Josh
ecab41c3f3 restore newline at end of file 2017-09-03 14:14:28 -05:00
Josh
64eb77e94c new test for actual statement timeout 2017-09-03 14:14:28 -05:00
Josh
175b688b90 remove pg-native from dependencies
`npm run test` seems to be adding this
2017-09-03 14:14:28 -05:00
Josh
689bb25e86 fixes 2017-09-03 14:14:28 -05:00
Josh
78fc90366d remove .idea from gitignore 2017-09-03 14:14:28 -05:00
Josh
8839d42547 fixed test failure message 2017-09-03 14:14:28 -05:00
Josh
ad36063ca5 support statement_timeout 2017-09-03 14:14:28 -05:00
Arnaud Benhamdine
4936033adf Check more default properties in configuration teset 2017-09-03 14:01:34 -05:00
Arnaud Benhamdine
d6e7dfee83 Replace poolSize by max in configuration test 2017-09-03 14:01:34 -05:00
Arnaud Benhamdine
3b3e52cdc2 Prefer max over poolSize : max is the only property documented in node-pg-pool 2017-09-03 14:01:34 -05:00
Arnaud Benhamdine
27492efc11 Remove properties no more used in node-pg-pool 2017-09-03 14:01:34 -05:00
Charmander
c961888ceb Revert "Update Grammatical person"
This reverts commit ffc7653b9ebf1572620a1db16f9121e33e0995bc.
2017-09-03 13:58:51 -05:00
Kauê Gimenes
ffc7653b9e Update Grammatical person
Update Grammatical person from First Person to Third Person.
2017-09-01 13:09:49 -05:00
Luis Montes
eafb7acd95 2.0.0 2017-08-30 14:25:59 -07:00
Luis Montes
13687353c9 Use mocha, istanbul, and coveralls (#16)
* some tests

* coveralls and mocha

* coveralls post test hook

* remove done calls
2017-08-30 13:58:52 -07:00
Sehrope Sarkuni
ef3379a480 Normalize export in utils to use short form 2017-08-30 15:30:36 -05:00
Sehrope Sarkuni
e74c13ddad Centralize password md5 hashing logic
Centralize logic for md5 hashing of passwords for authentication. Adds
a new function postgresMd5PasswordHash(user, password, salt) to utils
and updates client.js and tests to use it.
2017-08-30 15:30:36 -05:00
Sehrope Sarkuni
3ad0680e8d Fix reference to md5 helper in test
Fixes reference to md5 helper and removes reference to js client
as the md5 function is now provided by utils.
2017-08-30 15:30:36 -05:00
Luis Montes
cf107b00da Merge pull request #11 from caub/max
thanks, @caub !
2017-08-30 10:26:03 -07:00
Brian C
beba66f2f1 Update SPONSORS.md 2017-08-28 10:57:38 -05:00
Ben Holden-Crowther
80d22da975 Minor improvements
full stop, capitalized Twitter
2017-08-28 10:56:37 -05:00
Jessica Evans
1b55c7bb7b capital letters
minor beautification
2017-08-27 12:46:57 -05:00
Tobias Gurtzick
7d1342e03b verify that sslrootcert is added to libpqConnectionString 2017-08-26 12:26:08 -05:00
Tobias Gurtzick
03c2270d0e add missing sslrootcert for native bindings 2017-08-26 12:26:08 -05:00
Sehrope Sarkuni
884e21e1ca Refactor addCommandComplete
Refactors addCommandComplete to tighten parsing regex start anchor and
handle edge case where no row count is specified (pre 8.2 COPY).
2017-08-26 12:24:59 -05:00