Open jessepeterson opened 1 year ago
The mysql engine relies on the tidb parser. Currently it does not work because tidb does not support that syntax.
@SnoozeThis https://github.com/pingcap/tidb/issues/29259
(https://snoozeth.is/xBlBhXIndU8) I will wait until https://github.com/pingcap/tidb/issues/29259 is closed and then add a comment.
Version
1.22.0
What happened?
MySQL 8.0.19 deprecated the former ON DUPLICATE KEY syntax for the newer column reference style but
sqlc
doesn't seem to like it.Note the old style
VALUES()
is now deprecated:Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/99bd4e6529ffaae574dacb08c653ada803cc5c95a4a42e795e4a39cb039a4a47
What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go