Skip to content
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

SQLite replace() function causes a syntax error #53

Closed
nene opened this issue Jan 10, 2024 · 0 comments
Closed

SQLite replace() function causes a syntax error #53

nene opened this issue Jan 10, 2024 · 0 comments

Comments

@nene
Copy link
Owner

nene commented Jan 10, 2024

The following SQL:

SELECT replace('hello-world', '-', ' ');

Fails to parse with an error:

Syntax Error: Unexpected "replace"
Was expecting to see: "!", "$", "(", "*", "+", "-", ":", "?", "@", "ALL", "CASE", "CAST", "CURRENT_CATALOG", "CURRENT_DATE", "CURRENT_DATETIME", "CURRENT_ROLE", "CURRENT_SCHEMA", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "DATE", "DATETIME", "DISTINCT", "DISTINCTROW", "EXISTS", "FALSE", "LOCALTIME", "LOCALTIMESTAMP", "NOT", "NULL", "RAISE", "SAFE_CAST", "SESSION_USER", "SYSTEM_USER", "TIME", "TIMESTAMP", "TRUE", "USER", "X", "~", identifier, number, string, or whitespace
--> undefined:1:8
  |
1 | SELECT replace('hello-world', '-', ' ');
  |        ^
@nene nene closed this as completed in 27e3650 Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant