catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

insert columns are not quoted #454

Closed ghost closed 7 years ago

ghost commented 8 years ago

when trying to insert eg:

$db->insert('table', array( 'accountID' => 27, 'order' => 123 ) ); its not executing becouse order is not quoted. Works fine in update etc.. Please fix.

DeltaWolf7 commented 8 years ago

I have the same thing with the latest version 1.1.2.

Using insert command, the output generated by Medoo is:-

(key, value, userid) VALUES ('TEST', 'This is a test', '0')

As you can see the column names are not is quotation marks. From my object the input was:-

["key" => "TEST", "value" => "This is a test", "userid" => "0"]

Worked fine with passed 1.0.2.

Thanks

vishtany commented 8 years ago

i have the issue after an update to 1.1.2.