Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Request #18146 createTable.php throws MDB2 Error: not supported" code=-6
Submitted: 2010-12-27 08:45 UTC
From: geocrunch Assigned:
Status: Open Package: DB_DataObject (version 1.9.5)
PHP Version: 5.1.6 OS: CentOS
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 1 + 35 = ?

 
 [2010-12-27 08:45 UTC] geocrunch (George Key)
Description: ------------ 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: [DB_DataObject] database = pgsql://myusername:mypassword@localhost/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 driver quote_identifiers = 1 The test database is very simple with only 1 table with 3 fields of type integer. The code seems to produce the required tables, but throws some kind of MDB2 data type errors (3 errors total in this example)

Comments

 [2010-12-28 08:06 UTC] alan_k (Alan Knowles)
-Type: Bug +Type: Feature/Change Request
It looks like it does not cause any problems, other than the warning messages 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 generator.