Skip to content

Commit 9c25db6

Browse files
committed
Convert column type to lowercase.
1 parent c0afad0 commit 9c25db6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/SqlitePdoDataLayer.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,13 @@ public function getTableColumns(string $table): array
361361
{
362362
$query = sprintf("pragma table_info(%s)", $table);
363363

364-
return $this->executeRows($query);
364+
$columns = $this->executeRows($query);
365+
foreach ($columns as &$column)
366+
{
367+
$column['type'] = mb_strtolower($column['type']);
368+
}
369+
370+
return $columns;
365371
}
366372

367373
//--------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)