PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.