zend-db icon indicating copy to clipboard operation
zend-db copied to clipboard

Field names with spaces are not quoted correctly

Open Ponsjuh opened this issue 9 years ago • 1 comments

in my case i have a table with "my field" as field name it is returned as "[my] [field]" instead of "[my field]".

The problem is currently being triggered in Zend\Db\Adapter\PlatformAbstractPlatform::quoteIdentifierInFragment. On line 44 there is a preg_split function that splits the fieldname.

i tried to add my case in the tests but have no time to run them atm and/or fixed any issues that will turn up

Ponsjuh avatar Jun 12 '15 13:06 Ponsjuh