Skip to content

Commit 2c3adf2

Browse files
authored
Update README.md (brianc#2671)
Change `name` to `now` for time column
1 parent 97eea2d commit 2c3adf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pg-pool/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ because its so common to just run a query and return the client to the pool afte
136136
var pool = new Pool()
137137
var time = await pool.query('SELECT NOW()')
138138
var name = await pool.query('select $1::text as name', ['brianc'])
139-
console.log(name.rows[0].name, 'says hello at', time.rows[0].name)
139+
console.log(name.rows[0].name, 'says hello at', time.rows[0].now)
140140
```
141141

142142
you can also use a callback here if you'd like:

0 commit comments

Comments
 (0)