Pluf Framework

Pluf Framework Commit Details


Date:2008-11-23 03:52:41 (16 years 29 days ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:acd2bc4d59122ee387c534aaee2cb6ddc0642d7f
Parents: c09aa45bdc399ec5b2f1a9ecec84221c31917dbe
Message:Fixed the escaping of blobs for SQLite.

Changes:

File differences

src/Pluf/DB/SQLite.php
4141
4242
4343
44
4445
4546
4647
......
167168
168169
169170
171
172
173
174
175
176
177
178
$this->debug = $debug;
$this->pfx = $pfx;
$this->debug('* SQLITE OPEN');
$this->type_cast['Pluf_DB_Field_Compressed'] = array('Pluf_DB_CompressedFromDb', 'Pluf_DB_SQLite_CompressedToDb');
// Connect and let the Exception be thrown in case of problem
try {
$this->con_id = new PDO('sqlite:'.$dbname);
}
function Pluf_DB_SQLite_CompressedToDb($val, $con)
{
if (is_null($val)) {
return 'NULL';
}
return 'X'.$con->esc(bin2hex(gzdeflate($val, 9)));
}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.05497s using 13 queries.