Skip to content

Commit 5f1bde0

Browse files
committed
bugfix
1 parent d43bfbe commit 5f1bde0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tqdev/PhpCrudApi/Database/GenericReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function getTableColumns(string $tableName, string $type): array
184184
if ($this->driver == 'mysql') {
185185
foreach ($results as &$result) {
186186
// mysql does not properly reflect display width of types
187-
preg_match('|([a-z]+)(\(([0-9]+)(,([0-9]+))?\))?|', $result['DATA_TYPE'], $matches);
187+
preg_match('|([a-zA-Z]+)(\(([0-9]+)(,([0-9]+))?\))?|', $result['DATA_TYPE'], $matches);
188188
$result['DATA_TYPE'] = $matches[1];
189189
if (!$result['CHARACTER_MAXIMUM_LENGTH']) {
190190
if (isset($matches[3])) {

0 commit comments

Comments
 (0)