You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VARCHAR(255) NOT NULL PRIMARY KEY,
value LONGTEXT,
blob BLOB,
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key = 'foo'' at line 1
Additional context
Column names can be escaped with the "`" character though it might be inconvenient in Javascript because it breaks template strings. Alternatively the columns can use other non-reserved words.
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
unstorage 1.14.1
node v20.18.0
mysql 8.0.33
Reproduction
Describe the bug
key
andblob
are reserved words and cannot be used in mysql without escaping them first.It throws errors for example in this line of code:
And errors in other places like this:
Additional context
Column names can be escaped with the "`" character though it might be inconvenient in Javascript because it breaks template strings. Alternatively the columns can use other non-reserved words.
Logs
No response
The text was updated successfully, but these errors were encountered: