Skip to content

Commit 7305117

Browse files
committed
Add failing test for multiple statement results
1 parent a83655a commit 7305117

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict'
2+
const co = require('co')
3+
4+
const helper = require('./test-helper')
5+
6+
const pg = helper
7+
const suite = new helper.Suite()
8+
9+
suite.test('multiple select statements return multiple results', co.wrap(function * () {
10+
const client = new pg.Client()
11+
yield client.connect()
12+
const res = yield client.query(`SELECT 'one' as one, 'two' as two; SELECT 'three' as three, 'four' as four;`)
13+
assert.equal(res.length, 2)
14+
yield client.end()
15+
}))

0 commit comments

Comments
 (0)