Skip to content

Commit de1b25c

Browse files
committed
Add diagnostics
1 parent fb1b587 commit de1b25c

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

.travis.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,10 @@ env:
1111
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres PG_FAST_CONNECTION=true
1212

1313
node_js:
14-
- lts/dubnium
15-
- lts/erbium
16-
# node 13.7 seems to have changed behavior of async iterators exiting early on streams
17-
# if 13.8 still has this problem when it comes down I'll talk to the node team about the change
18-
# in the mean time...peg to 13.6
19-
- 13.6
2014
- 14
2115

2216
addons:
23-
postgresql: "10"
17+
postgresql: '10'
2418

2519
matrix:
2620
include:
@@ -42,25 +36,25 @@ matrix:
4236
4337
- node_js: lts/carbon
4438
addons:
45-
postgresql: "9.5"
39+
postgresql: '9.5'
4640
dist: precise
4741

4842
# different PostgreSQL versions on Node LTS
4943
- node_js: lts/erbium
5044
addons:
51-
postgresql: "9.3"
45+
postgresql: '9.3'
5246
- node_js: lts/erbium
5347
addons:
54-
postgresql: "9.4"
48+
postgresql: '9.4'
5549
- node_js: lts/erbium
5650
addons:
57-
postgresql: "9.5"
51+
postgresql: '9.5'
5852
- node_js: lts/erbium
5953
addons:
60-
postgresql: "9.6"
54+
postgresql: '9.6'
6155

6256
# PostgreSQL 9.2 only works on precise
6357
- node_js: lts/carbon
6458
addons:
65-
postgresql: "9.2"
59+
postgresql: '9.2'
6660
dist: precise

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"packages/*"
1111
],
1212
"scripts": {
13-
"test": "yarn lint && yarn lerna exec yarn test",
13+
"test": "yarn lerna exec --scope pg-cursor yarn test",
1414
"build": "yarn lerna exec --scope pg-protocol yarn build",
1515
"pretest": "yarn build",
1616
"lint": "if [ -x ./node_modules/.bin/prettier ]; then eslint '*/**/*.{js,ts,tsx}'; fi;"

packages/pg-protocol/src/parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export class Parser {
9191
combinedBuffer = Buffer.allocUnsafe(this.remainingBuffer.byteLength + buffer.byteLength)
9292
this.remainingBuffer.copy(combinedBuffer)
9393
buffer.copy(combinedBuffer, this.remainingBuffer.byteLength)
94+
console.log('byteLength', buffer.byteLength)
9495
}
9596
let offset = 0
9697
while (offset + HEADER_LENGTH <= combinedBuffer.byteLength) {

0 commit comments

Comments
 (0)