Jakub Vrana 2012-05-13 23:20:47 -07:00
parent 17ef1f0dfc
commit 20cf6d29c5
2 changed files with 5 additions and 1 deletions

View file

@ -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() {

View file

@ -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