| 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 13:40 UTC | Modified: | 2009-06-21 10:21 UTC |
| From: | hschletz | Assigned: | quipo |
| Status: | Closed | Package: | MDB2_Driver_pgsql (version 1.5.0b2) |
| PHP Version: | Irrelevant | OS: | |
| Roadmaps: | (Not assigned) | ||
| Patch | recognize-null-default-with-datatype | Revisions | |
|---|---|---|---|
| Revision | 2009-06-03 13:41 UTC | ||
| Developer | hschletz | ||
| Download patch |
--- Driver/Reverse/pgsql.php.orig 2009-01-14 17:39:15.000000000 +0100
+++ Driver/Reverse/pgsql.php 2009-06-03 13:34:20.000000000 +0200
@@ -143,6 +143,7 @@
}
$default = null;
if ($column['atthasdef'] === 't'
+ && strpos ($column['default'], 'NULL') !== 0
&& !preg_match("/nextval\('([^']+)'/", $column['default'])
) {
$pattern = '/^\'(.*)\'::[\w ]+$/i';