diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-06 15:27:25 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-06 15:27:25 +0000 |
| commit | c59e7916c06f60543dce4e35c36bad0caaa6f551 (patch) | |
| tree | 0d37723887c247039bfc97d19609388bc236793c | |
| parent | 3f2903e404a63dcae058d81dcb49ed120479a19d (diff) | |
| download | illuminate-firebird-2.0.2.tar.gz illuminate-firebird-2.0.2.tar.bz2 illuminate-firebird-2.0.2.zip | |
Now I know just where the column information has gone ... it is not being populated as yet, but this at least gets a lower case column name returned.V2.0.2
| -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. |
