Skip to content

Commit caa8715

Browse files
authored
Merge pull request #1034 from vegarsti/patch-1
Fix string quoting in an example in Array
2 parents 7f02e6b + 2a9e9ed commit caa8715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var typeSQLScanner = reflect.TypeOf((*sql.Scanner)(nil)).Elem()
2222
// db.Query(`SELECT * FROM t WHERE id = ANY($1)`, pq.Array([]int{235, 401}))
2323
//
2424
// var x []sql.NullInt64
25-
// db.QueryRow('SELECT ARRAY[235, 401]').Scan(pq.Array(&x))
25+
// db.QueryRow(`SELECT ARRAY[235, 401]`).Scan(pq.Array(&x))
2626
//
2727
// Scanning multi-dimensional arrays is not supported. Arrays where the lower
2828
// bound is not one (such as `[0:0]={1}') are not supported.

0 commit comments

Comments
 (0)