don't try and escape nulls, which leads to dangling x values. fixes Sourceforge Bug...
authorRobert Treat <robert@omniti.com>
Fri, 23 Nov 2012 15:30:30 +0000 (10:30 -0500)
committerRobert Treat <robert@omniti.com>
Fri, 23 Nov 2012 15:30:30 +0000 (10:30 -0500)
classes/database/Postgres.php

index d55762d6a32dc4bc9b9462f4b124a337c8285934..0d8a688794c907237b700039ec1339c9ad17bc43 100755 (executable)
@@ -270,7 +270,9 @@ class Postgres extends ADODB_base {
                                break;
                        case 'bytea':
                        case 'bytea[]':
-                               $value = $this->escapeBytea($value);
+                if (!is_null($value)) {
+                                   $value = $this->escapeBytea($value);
+                }
                        case 'text':
                        case 'text[]':
                        case 'xml':