1
0
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:
Jakub Vrana
2025-03-24 14:41:08 +01:00
parent f5d23a8cad
commit 50cdbbe415
7 changed files with 10 additions and 9 deletions

View File

@@ -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
);
}