PEAR is archived and read-only

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

Home » Database » MDB2 » Bug #3852

MDB2_Tools_Manager text field with defaults in PostgreSQL

Details

Submitted2005-03-16 22:45 UTC
Fromjustinh at superglobals dot com
Assignedlsmith
StatusClosed
PackageMDB2
PHP Version5.0.3
Roadmaps(Not assigned)

Comments

[2005-03-16 22:45 UTC] justinh at superglobals dot com

Description:
------------
When using MDB2_Tools_Manager to import an XML document for a database, <type>text</type> fields with <default>[...]</default> get converted to TIME instead of TEXT in the SQL statement.

Looks like the problem is in MDB2/Driver/Datatype/pgsql.php on line 122:
$default = isset($field['default']) ? ' DEFAULT TIME'.

Changing this to:
$default = isset($field['default']) ? ' DEFAULT'.

seemed to fix everything.

[2005-03-17 17:10 UTC] smith at backendmedia dot com

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.