Home » Database » DB_DataObject » Bug #33
createTables.php chokes on entries with the ! character
Details
| Submitted | 2003-09-24 22:23 UTC |
|---|---|
| From | thomas at unifiedconsulting dot com |
| Status | No Feedback |
| Package | DB_DataObject |
| PHP Version | 4.3.2 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2003-09-24 22:23 UTC] thomas at unifiedconsulting dot com
Description:
------------
When specifying a MySQL password with the '!' character, createTables chokes.
Reproduce code:
---------------
Trying to specify that that MySQL user is foo with password 'bar!' using this configuration file:
[DB_DataObject]
database=mysql://foo:bar!@localhost/mydatabase
schema_location = dataObjects
class_location = dataObjects
require_prefix = DataObjects/
class_prefix = DataObjects_
[DB_DataObject_FormBuilder]
date_element_format = M-d-Y
db_date_format = 1
Expected result:
----------------
CreateTables should create the data objects
Actual result:
--------------
CreateTable gives the following error:
Warning: Error parsing ./myWebsite.config on line 3
in /usr/local/lib/php/DB/DataObject/createTables.php on line 34
CREATING FOR mysql://foo:bar
DB Error: connect failed