Permalink
Browse files

Support binary data in SQLite (http://forum.zdrojak.cz/?topic=619, ht…

  • Loading branch information...
1 parent 17ef1f0 commit 20cf6d29c5dba14bb95ff2872225435f204873d0 @vrana committed May 14, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −1 adminer/drivers/sqlite.inc.php
  2. +1 −0 changes.txt
View
5 adminer/drivers/sqlite.inc.php
@@ -30,7 +30,10 @@ function query($query) {
}
function quote($string) {
- return "'" . $this->_link->escapeString($string) . "'";
+ return (is_utf8($string)
+ ? "'" . $this->_link->escapeString($string) . "'"
+ : "x'" . reset(unpack('H*', $string)) . "'"
+ );
}
function store_result() {
View
1 changes.txt
@@ -4,6 +4,7 @@ Highlight code in SQL command by CodeMirror
Link to descending order
Link to original table in EXPLAIN of SELECT * FROM table t
MySQL: inform about disabled event_scheduler
+SQLite: support binary data
PostgreSQL: approximate row count in table overview
Oracle: schema, processlist, table overview numbers
Replace JSMin by better JavaScript minifier

0 comments on commit 20cf6d2

Please sign in to comment.