diff options
| -rw-r--r-- | src/illuminate/Query/Processors/FirebirdProcessor.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/illuminate/Query/Processors/FirebirdProcessor.php b/src/illuminate/Query/Processors/FirebirdProcessor.php index 577ebf7..2649509 100644 --- a/src/illuminate/Query/Processors/FirebirdProcessor.php +++ b/src/illuminate/Query/Processors/FirebirdProcessor.php @@ -13,12 +13,21 @@ class FirebirdProcessor extends Processor * @param array $results * @return array */ - public function processColumnListing($results) - { - return array_map(function ($result) { - return ((object) $result)->column_name; - }, $results); - } + public function processColumns($results) + { + return array_map(function ($result) { + return (object) [ + 'name' => strtolower($result->name ), +// 'type_name' => strtolower($result['type_name'] ?? ''), +// 'type' => $this->getColumnType($result), +// 'collation' => $result['collation'] ?? null, +// 'nullable' => (bool) ($result['nullable'] ?? true), +// 'default' => $result['default'] ?? null, +// 'auto_increment' => (bool) ($result['auto_increment'] ?? false), +// 'comment' => $result['comment'] ?? null, + ]; + }, $results); + } /** * Process an "insert get ID" query. |
