openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 34df067eddc8638879e4e91c25cf02756c40285f
parent 76a6dea4c89dfb36eb246f3f8f29e45189773208
Author: dankert <devnull@localhost>
Date:   Thu, 15 Oct 2009 00:18:46 +0200

Speichern von NULL-Werten bei Prepared-Statements.

Diffstat:
db/postgresql.class.php | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/db/postgresql.class.php b/db/postgresql.class.php @@ -134,10 +134,12 @@ class DB_postgresql $ar[] = (String)$data['value']; break; case 'int': - //$ar[] = (String)abs($data['value']); $ar[] = (int) $data['value']; break; - default: + case 'null': + $ar[] = null; + break; + default: die('unknown type "'.$data['type'].'"'); } }