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 12:53 UTC Modified: 2008-05-14 13:37 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  


 [2008-04-20 12: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 13: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.