-
Notifications
You must be signed in to change notification settings - Fork 23
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
Error: You have an error in your SQL syntax; #305
Comments
Related: #30 |
@linawolf This works for me. I have ddev with MariaDB 10.3. It's not forbidden to have dashes. MySql supports it. But in some cases they are not escaped. This is probably an issue in Core. Not sure if this is related to certain DBs / version. |
Using |
I don't know, this would be an arbitrary decision. Better fix Core to properly escape them. We should just only document underscore and state this is best practice. Just checked with Maria 10.5, works for me. |
Would it be hard to sanitize the input? There could be other special signs causing trouble or worse as well? |
Needs to be discussed with some Core developers. I have no idea what characters are allowed / not allowed cross-db. I don't see it being the responsibility of this extension right now. In the end, this is just converted to TCA. And if you define a TCA column with dashes, this would be exactly the same. |
Describe the bug
On doing database compare after creating my block I get the following error:
To Reproduce
Expected behavior
If the special sign
-
is not possible it should be forbidden or transformed.TYPO3 Version
13.4.1
Content Blocks Version:
friendsoftypo3/content-blocks (1.0.4)
Additional context
Using
identifier: carousel_items
worksThe text was updated successfully, but these errors were encountered: