Support binary data in SQLite (http://forum.zdrojak.cz/?topic=619, https://sourceforge.net/projects/adminer/forums/forum/960418/topic/5274204)
This commit is contained in:
parent
17ef1f0dfc
commit
20cf6d29c5
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue