mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
Non-MySQL: Better field types in SQL command
This commit is contained in:
@@ -70,10 +70,10 @@ if (isset($_GET["sqlite"])) {
|
||||
|
||||
function fetch_field() {
|
||||
$column = $this->offset++;
|
||||
$type = $this->result->columnType($column); //! map to MySQL numbers
|
||||
$type = $this->result->columnType($column);
|
||||
return (object) array(
|
||||
"name" => $this->result->columnName($column),
|
||||
"type" => $type,
|
||||
"type" => ($type == SQLITE3_TEXT ? 15 : 0),
|
||||
"charsetnr" => ($type == SQLITE3_BLOB ? 63 : 0), // 63 - binary
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user