PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB » Bug #2649

can't use spaces in coumn names

Details

Submitted2004-10-29 20:59 UTC
Fromlongneck at iname dot com
Assigneddanielc
StatusWont fix
PackageDB
PHP VersionIrrelevant
OSIrrelevant
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.