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

Certain ASCII strings are not escaped properly #1

Open
aaron-junot opened this issue Aug 31, 2017 · 0 comments
Open

Certain ASCII strings are not escaped properly #1

aaron-junot opened this issue Aug 31, 2017 · 0 comments

Comments

@aaron-junot
Copy link

If you do $writer->setFields() on the following array, then do $writer->save(), you will get a MySQL query syntax error. The fields array is:

[
    "field" =>  !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'     
    "second_field" => 0    
    "third_field" => 0 
]

The error returned looks like this:

Query failed: 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 '0', '0', '')' at line 1

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