From 24c464c9ee15b0d204c41fcd212975ebc7864904 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 6 Sep 2008 22:50:34 +0200 Subject: Aktualisierung auf 1.13.1 --- includes/db/DatabaseSqlite.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'includes/db/DatabaseSqlite.php') diff --git a/includes/db/DatabaseSqlite.php b/includes/db/DatabaseSqlite.php index 5299c688..112c417b 100644 --- a/includes/db/DatabaseSqlite.php +++ b/includes/db/DatabaseSqlite.php @@ -289,15 +289,22 @@ class DatabaseSqlite extends Database { } function encodeBlob($b) { - return $this->strencode($b); + return new Blob( $b ); } function decodeBlob($b) { + if ($b instanceof Blob) { + $b = $b->fetch(); + } return $b; } function addQuotes($s) { - return $this->mConn->quote($s); + if ( $s instanceof Blob ) { + return "x'" . bin2hex( $s->fetch() ) . "'"; + } else { + return $this->mConn->quote($s); + } } function quote_ident($s) { return $s; } -- cgit v1.2.3-54-g00ecf