mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Add diagnostics
This commit is contained in:
parent
fb1b5876d6
commit
de1b25c39b
20
.travis.yml
20
.travis.yml
@ -11,16 +11,10 @@ env:
|
||||
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres PG_FAST_CONNECTION=true
|
||||
|
||||
node_js:
|
||||
- lts/dubnium
|
||||
- lts/erbium
|
||||
# node 13.7 seems to have changed behavior of async iterators exiting early on streams
|
||||
# if 13.8 still has this problem when it comes down I'll talk to the node team about the change
|
||||
# in the mean time...peg to 13.6
|
||||
- 13.6
|
||||
- 14
|
||||
|
||||
addons:
|
||||
postgresql: "10"
|
||||
postgresql: '10'
|
||||
|
||||
matrix:
|
||||
include:
|
||||
@ -42,25 +36,25 @@ matrix:
|
||||
|
||||
- node_js: lts/carbon
|
||||
addons:
|
||||
postgresql: "9.5"
|
||||
postgresql: '9.5'
|
||||
dist: precise
|
||||
|
||||
# different PostgreSQL versions on Node LTS
|
||||
- node_js: lts/erbium
|
||||
addons:
|
||||
postgresql: "9.3"
|
||||
postgresql: '9.3'
|
||||
- node_js: lts/erbium
|
||||
addons:
|
||||
postgresql: "9.4"
|
||||
postgresql: '9.4'
|
||||
- node_js: lts/erbium
|
||||
addons:
|
||||
postgresql: "9.5"
|
||||
postgresql: '9.5'
|
||||
- node_js: lts/erbium
|
||||
addons:
|
||||
postgresql: "9.6"
|
||||
postgresql: '9.6'
|
||||
|
||||
# PostgreSQL 9.2 only works on precise
|
||||
- node_js: lts/carbon
|
||||
addons:
|
||||
postgresql: "9.2"
|
||||
postgresql: '9.2'
|
||||
dist: precise
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
"packages/*"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "yarn lint && yarn lerna exec yarn test",
|
||||
"test": "yarn lerna exec --scope pg-cursor yarn test",
|
||||
"build": "yarn lerna exec --scope pg-protocol yarn build",
|
||||
"pretest": "yarn build",
|
||||
"lint": "if [ -x ./node_modules/.bin/prettier ]; then eslint '*/**/*.{js,ts,tsx}'; fi;"
|
||||
|
||||
@ -91,6 +91,7 @@ export class Parser {
|
||||
combinedBuffer = Buffer.allocUnsafe(this.remainingBuffer.byteLength + buffer.byteLength)
|
||||
this.remainingBuffer.copy(combinedBuffer)
|
||||
buffer.copy(combinedBuffer, this.remainingBuffer.byteLength)
|
||||
console.log('byteLength', buffer.byteLength)
|
||||
}
|
||||
let offset = 0
|
||||
while (offset + HEADER_LENGTH <= combinedBuffer.byteLength) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user