Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 20cf6d29c5dba14bb95ff2872225435f204873d0 1 parent 17ef1f0
Jakub Vrána authored

Showing 2 changed files with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 adminer/drivers/sqlite.inc.php
  2. +1 0  changes.txt
5 adminer/drivers/sqlite.inc.php
@@ -30,7 +30,10 @@ function query($query) {
30 30 }
31 31
32 32 function quote($string) {
33   - return "'" . $this->_link->escapeString($string) . "'";
  33 + return (is_utf8($string)
  34 + ? "'" . $this->_link->escapeString($string) . "'"
  35 + : "x'" . reset(unpack('H*', $string)) . "'"
  36 + );
34 37 }
35 38
36 39 function store_result() {
1  changes.txt
@@ -4,6 +4,7 @@ Highlight code in SQL command by CodeMirror
4 4 Link to descending order
5 5 Link to original table in EXPLAIN of SELECT * FROM table t
6 6 MySQL: inform about disabled event_scheduler
  7 +SQLite: support binary data
7 8 PostgreSQL: approximate row count in table overview
8 9 Oracle: schema, processlist, table overview numbers
9 10 Replace JSMin by better JavaScript minifier

0 comments on commit 20cf6d2

Please sign in to comment.
Something went wrong with that request. Please try again.