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

Error while generate code for MYSQL #1118

Discussion options

i have query as below

-- name: CreateCustomer :execresult
INSERT INTO MST_CUSTOMER (
cust_id,
cust_details,
cust_code,
cust_addr,
cust_place,
cust_contact,
cust_tel,
cust_email,
cust_url)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);

-- name: ListCustomers :many
SELECT * FROM MST_CUSTOMER ORDER BY cust_addr

Bu when is generated, i see that last one character is missing. from the case "cust_addr" "r" is missing

const listCustomers = `-- name: ListCustomers :many
SELECT cust_id, cust_details, cust_code, cust_addr, cust_place, cust_contact, cust_tel, cust_email, cust_url FROM MST_CUSTOMER ORDER BY cust_add

Also i tried with other variables from the table, its same.

`

You must be logged in to vote

The workaround here is the add a semicolon at the end of the fileZ I need to update the MySQL parser to error when a query isn't terminated.

Replies: 1 comment 1 reply

Comment options

The workaround here is the add a semicolon at the end of the fileZ I need to update the MySQL parser to error when a query isn't terminated.

You must be logged in to vote
1 reply
Comment options

thank you

Answer selected by myeduate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

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