mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
Non-MySQL: Better field types in SQL command
This commit is contained in:
@@ -93,8 +93,9 @@ if (extension_loaded('pdo')) {
|
||||
|
||||
function fetch_field() {
|
||||
$row = (object) $this->getColumnMeta($this->_offset++);
|
||||
$row->type = $row->pdo_type; //! map to MySQL numbers
|
||||
$row->charsetnr = (isset($row->flags) && in_array("blob", (array) $row->flags) ? 63 : 0);
|
||||
$type = $row->pdo_type;
|
||||
$row->type = ($type == \PDO::PARAM_INT ? 0 : 15);
|
||||
$row->charsetnr = ($type == \PDO::PARAM_LOB || (isset($row->flags) && in_array("blob", (array) $row->flags)) ? 63 : 0);
|
||||
return $row;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user