diff options
| author | Robert Treat | 2012-11-23 15:30:30 +0000 |
|---|---|---|
| committer | Robert Treat | 2012-11-23 15:30:30 +0000 |
| commit | 00ba6912c15e04221e15574072449051af645685 (patch) | |
| tree | b73465adbbf9f7cb4b8ed61e6a0b9de1436d684a /classes/database | |
| parent | d495eecca480a9aad94dadf22c05b92ca8847ffc (diff) | |
don't try and escape nulls, which leads to dangling x values. fixes Sourceforge Bug ID: 3579602.
Diffstat (limited to 'classes/database')
| -rwxr-xr-x | classes/database/Postgres.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index d55762d6..0d8a6887 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -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': |
