Edit report at http://pear.php.net/bugs/bug.php?id=18146&edit=1

ID: 18146
Updated by: [email protected]
Reported By: techexpert01 at gmail dot com
Summary: createTable.php throws MDB2 Error: not supported"
Status: Open
-Type: Bug
+Type: Feature/Change Request
Package: DB_DataObject
Operating System: CentOS
Package Version: 1.9.5
PHP Version: 5.1.6
Roadmap Versions:
New Comment:

-Type: Bug
+Type: Feature/Change Request
It looks like it does not cause any problems, other than the warning

If someone wants to add a patch to fix this, please do.

Changing to a feature request, since it does not impact on the operation
of the

Previous Comments:

[2010-12-27 03:45:22] geocrunch

after creating .ini file and running php createTables.php
/path-to-ini-file, it
creates the required objects for each database, but in the process I
receive a lot of error messages from MDB2:
DB_DataObject_Generator : ERROR : Error reading tableInfo,
[mdb2_error: message="MDB2 Error: not supported" code=-6 mode=return
level=notice prefix="" info="_mapNativeDatatype: [Error message:
unknown database attribute type: name]

I have the following pear packages installed to run the script:
DB_DataObject 1.9.5 stable
MDB2 2.4.1 stable
MDB2_Driver_mysql 1.4.1 stable
MDB2_Driver_pgsql 1.4.1 stable

I am using PostgreSQL as my database

Test script:
Here is the ini test file:


database = pgsql://myusername:[email protected]/test_db
schema_location = /path-to/test_db_objects
class_location = /path-to/test_db_objects
require_prefix = DataObjects/
class_prefix = DataObjects_
db_driver = MDB2 #Use this if you wish to use MDB2 as the
quote_identifiers = 1

The test database is very simple with only 1 table with 3 fields of type
The code seems to produce the required tables, but throws some kind of
MDB2 data type errors (3 errors total in this example)


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedDec 28, '10 at 2:04a
activeDec 28, '10 at 2:04a

1 user in discussion

Alan: 1 post



site design / logo © 2023 Grokbase