Skip to content

Commit

Permalink
Merge pull request #1034 from vegarsti/patch-1
Browse files Browse the repository at this point in the history
Fix string quoting in an example in Array
  • Loading branch information
maddyblue committed Apr 21, 2021
2 parents 7f02e6b + 2a9e9ed commit caa8715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion array.go
Expand Up @@ -22,7 +22,7 @@ var typeSQLScanner = reflect.TypeOf((*sql.Scanner)(nil)).Elem()
// db.Query(`SELECT * FROM t WHERE id = ANY($1)`, pq.Array([]int{235, 401}))
//
// var x []sql.NullInt64
// db.QueryRow('SELECT ARRAY[235, 401]').Scan(pq.Array(&x))
// db.QueryRow(`SELECT ARRAY[235, 401]`).Scan(pq.Array(&x))
//
// Scanning multi-dimensional arrays is not supported. Arrays where the lower
// bound is not one (such as `[0:0]={1}') are not supported.
Expand Down

0 comments on commit caa8715

Please sign in to comment.