Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

does mysql support passing a slice as a parameter to a query? #1430

Unanswered
nsharecome asked this question in Q&A
Discussion options

go version go1.16.5,I use v1 or v2 both debug error
markquery.sql

-- name: GetMarkList :many
SELECT * FROM ct_mark_record
WHERE REF= ANY(1ドル::int[])
LIMIT ?, ?;

sqlc.json

{
 "version": "1",
 "packages": [
 {
 "name": "mark",
 "path": "mark",
 "schema": "script/markschema.sql",
 "queries": "script/markquery.sql",
 "engine": "mysql"
 }
 ]
}

output

$ sqlc generate
package mark
script/markquery.sql:3:19: syntax error near "1ドル::int[])" ```
You must be logged in to vote

Replies: 1 comment

Comment options

Sadly not yet, but you can see a few workarounds here #695

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /