Correct column size with string type

Signed-off-by: Takashi SHIRAI <shirai@nintendo.co.jp>
This commit is contained in:
Takashi SHIRAI 2019-03-26 13:36:16 +09:00 committed by Jakub Vrana
parent 27de0417fe
commit ee4ffe9b65
2 changed files with 2 additions and 1 deletions

View file

@ -273,7 +273,7 @@ ORDER BY 1"
$type = $row["DATA_TYPE"];
$length = "$row[DATA_PRECISION],$row[DATA_SCALE]";
if ($length == ",") {
$length = $row["DATA_LENGTH"];
$length = $row["CHAR_COL_DECL_LENGTH"];
} //! int
$return[$row["COLUMN_NAME"]] = array(
"field" => $row["COLUMN_NAME"],

View file

@ -12,6 +12,7 @@ PostgreSQL: Fix multi-parameter functions in default values (bug #736)
PostgreSQL PDO: Do not select NULL function for false values in edit
Oracle: Count tables
Oracle: Import from CSV
Oracle: Fix column size with string type
SimpleDB, Firebird, ClickHouse: Move to plugin
Adminer 4.7.9 (released 2021-02-07):