Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support MySQL INTERVAL function type #2969

New issue

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

Closed
EdwarDDay opened this issue Mar 31, 2022 · 0 comments · Fixed by #3074
Closed

Support MySQL INTERVAL function type #2969

EdwarDDay opened this issue Mar 31, 2022 · 0 comments · Fixed by #3074
Labels
bug component: sql-psi Should be implemented in https://github.com/AlecStrong/sql-psi
Milestone

Comments

@EdwarDDay
Copy link

SQLDelight Version

1.5.3

Operating System

macos

Gradle Version

7.4.1

Kotlin Version

1.6.10

AGP Version

No response

Describe the Bug

I tried to use the MySQL function DATE_ADD. It looks like this isn't supported yet.
Input:

date_add(current_date() , INTERVAL 6 MONTH)

Compiler error:

'(', ')', '.', <binary like operator real>, BETWEEN or IN expected, got '6'

Originally asked question on Kotlin Slack

Stacktrace

No response

Gradle Build Script

No response

@EdwarDDay EdwarDDay added the bug label Mar 31, 2022
@JakeWharton JakeWharton added the component: sql-psi Should be implemented in https://github.com/AlecStrong/sql-psi label Mar 31, 2022
@AlecKazakova AlecKazakova added this to the 2.0 milestone Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component: sql-psi Should be implemented in https://github.com/AlecStrong/sql-psi
Development

Successfully merging a pull request may close this issue.

3 participants