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

Bug #13728 DB_Table_Generator produces invalid php code when using pgsql
Submitted: 2008-04-20 17:53 UTC
From: mac Assigned: wiesemann
Status: Closed Package: DB_Table (version 1.5.1)
PHP Version: 5.2.5 OS: Linux
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 : 40 - 3 = ?

 
 [2008-04-20 17:53 UTC] mac (Peter Pawluczuk)
Description: ------------ Generator produces invalid php code with "." character as a part of variable name, where "." separates schema from table name. Test script: --------------- Having following postgresql database structure: "Schemas->public->table1" Run table generation script. Expected result: ---------------- /* * Create one instance of each DB_Table subclass */ $public_table1 = new Public_table1_Table($conn, 'public.table1', $create); if (PEAR::isError($public_table1->error)) { echo "Can't create table object.\n"; echo $public_table1->error->getMessage(); die; } Actual result: -------------- /* * Create one instance of each DB_Table subclass */ $public.table1 = new Public_table1_Table($conn, 'public.table1', $create); if (PEAR::isError($public.table1->error)) { echo "Can't create table object.\n"; echo $public.table1->error->getMessage(); die; }

Comments

 [2008-05-14 18:37 UTC] wiesemann (Mark Wiesemann)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.