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

Bug #16281 getTableFieldDefinition() does not recognize NULL defaults with datatype
Submitted: 2009-06-03 18:40 UTC
From: hschletz Assigned: quipo
Status: Closed Package: MDB2_Driver_pgsql (version 1.5.0b2)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2009-06-03 18:40 UTC] hschletz (Holger Schletz)
Description: ------------ After Upgrading PostgreSQL from 8.1 to 8.3 and heavily mangling some tables through MDB2_Schema, some (not all) columns now have a default like "NULL::character varying (255)" instead of plain "NULL". This is a bit odd, but not really a problem. Unfortunately, getTableFieldDefinition() does not recognize this as NULL and returns the complete string literally. Fix attached.

Comments

 [2009-06-03 18:41 UTC] hschletz (Holger Schletz)
The following patch has been added/updated: Patch Name: recognize-null-default-with-datatype Revision: 1244036504 URL: http://pear.php.net/bugs/patch-display.php?bug=16281&patch=recognize-null-default-with-datatype&revision=1244036504&display=1
 [2009-06-21 15:21 UTC] quipo (Lorenzo Alberton)
-Status: Open +Status: Closed -Assigned To: +Assigned To: quipo
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.