Skip to content

Commit

Permalink
added SQLite3 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 18, 2009
1 parent 20d22dd commit ccd20b6
Show file tree
Hide file tree
Showing 2 changed files with 460 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dibi/drivers/sqlite.php
Expand Up @@ -230,9 +230,6 @@ public function escape($value, $type)
case dibi::BINARY:
return "'" . sqlite_escape_string($value) . "'";

/*case dibi::BINARY: // SQLite 3
return "X'" . bin2hex((string) $value) . "'";*/

case dibi::IDENTIFIER:
return '[' . str_replace('.', '].[', strtr($value, '[]', ' ')) . ']';

Expand Down

0 comments on commit ccd20b6

Please sign in to comment.