We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.8.0
All versions from 1.8 to 1.10 has this bug MySQL 8
query.sql:12:2: function date_add(unknown, unknown, unknown) does not exist
CREATE TABLE `tokens` ( `id` bigint PRIMARY KEY AUTO_INCREMENT, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP );
SELECT DATE_ADD(created_at, INTERVAL 7 HOUR) as hello FROM tokens
version: "1" packages: - name: "db" path: "./db/sqlc" queries: "./db/query/" schema: "./db/migration/" engine: "mysql" emit_interface: false emit_prepared_queries: false emit_exact_table_names: false emit_empty_slices: true
https://play.sqlc.dev/p/e19eb67671c484f4f69cd82f519b378cf4ce9e943343a9e59e289f340341136e
Windows
MySQL
Go
The text was updated successfully, but these errors were encountered:
Workaround for this error: similar to #1172 , use MAKETIME
SELECT ADDTIME(created_at, maketime(7,0,0)) FROM tokens
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Version
1.8.0
What happened?
All versions from 1.8 to 1.10 has this bug
MySQL 8
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/e19eb67671c484f4f69cd82f519b378cf4ce9e943343a9e59e289f340341136e
What operating system are you using?
Windows
What database engines are you using?
MySQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: