diff --git a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php index c1b6bf68..85d1347a 100644 --- a/adminer/drivers/sqlite.inc.php +++ b/adminer/drivers/sqlite.inc.php @@ -30,7 +30,10 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) { } function quote($string) { - return "'" . $this->_link->escapeString($string) . "'"; + return (is_utf8($string) + ? "'" . $this->_link->escapeString($string) . "'" + : "x'" . reset(unpack('H*', $string)) . "'" + ); } function store_result() { diff --git a/changes.txt b/changes.txt index a6ab99ac..4ee0aea5 100644 --- a/changes.txt +++ b/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