Home » Database » DB » Bug #2649
can't use spaces in coumn names
Details
| Submitted | 2004-10-29 20:59 UTC |
|---|---|
| From | longneck at iname dot com |
| Assigned | danielc |
| Status | Wont fix |
| Package | DB |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2004-10-29 20:59 UTC] longneck at iname dot com
Description:
------------
Using autoExecute, spaces in the column names (array keys) aren't allowed.
Reproduce code:
---------------
<?php
$data = array('column space' => 'blahblah');
$res = $dbh->autoExecute('test', $data, DB_AUTOQUERY_INSERT);
?>
Expected result:
----------------
A successful insert.
Actual result:
--------------
The record doesn't get inserted because buildManipSQL() doesn't surround the column names with backticks to make the column names space friendly.