Maurits van der Schee 4 jaren geleden
bovenliggende
commit
5f1bde07a4
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      src/Tqdev/PhpCrudApi/Database/GenericReflection.php

+ 1
- 1
src/Tqdev/PhpCrudApi/Database/GenericReflection.php Bestand weergeven

@@ -184,7 +184,7 @@ class GenericReflection
184 184
         if ($this->driver == 'mysql') {
185 185
             foreach ($results as &$result) {
186 186
                 // 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);
188 188
                 $result['DATA_TYPE'] = $matches[1];
189 189
                 if (!$result['CHARACTER_MAXIMUM_LENGTH']) {
190 190
                     if (isset($matches[3])) {

Loading…
Annuleren
Opslaan