projects
/
phppgadmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d495eec
)
don't try and escape nulls, which leads to dangling x values. fixes Sourceforge Bug...
author
Robert Treat
<robert@omniti.com>
Fri, 23 Nov 2012 15:30:30 +0000
(10:30 -0500)
committer
Robert Treat
<robert@omniti.com>
Fri, 23 Nov 2012 15:30:30 +0000
(10:30 -0500)
classes/database/Postgres.php
patch
|
blob
|
blame
|
history
diff --git
a/classes/database/Postgres.php
b/classes/database/Postgres.php
index d55762d6a32dc4bc9b9462f4b124a337c8285934..0d8a688794c907237b700039ec1339c9ad17bc43 100755
(executable)
--- 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':