-
Notifications
You must be signed in to change notification settings - Fork 923
Error while generate code for MYSQL #1118
-
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.
`
Beta Was this translation helpful? Give feedback.
All reactions
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
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
thank you
Beta Was this translation helpful? Give feedback.