@@ -3562,6 +3562,9 @@ public function __construct(string $name, string $type, int $length, int $precis
35623562
35633563 private static function parseColumnType (string $ columnType , int &$ length , int &$ precision , int &$ scale ) /*: void*/
35643564 {
3565+ if (!$ columnType ) {
3566+ return ;
3567+ }
35653568 $ pos = strpos ($ columnType , '( ' );
35663569 if ($ pos ) {
35673570 $ dataSize = rtrim (substr ($ columnType , $ pos + 1 ), ') ' );
@@ -3603,9 +3606,7 @@ public static function fromReflection(GenericReflection $reflection, array $colu
36033606 $ precision = (int ) $ columnResult ['NUMERIC_PRECISION ' ];
36043607 $ scale = (int ) $ columnResult ['NUMERIC_SCALE ' ];
36053608 $ columnType = $ columnResult ['COLUMN_TYPE ' ];
3606- if ($ columnType ) {
3607- self ::parseColumnType ($ columnType , $ length , $ precision , $ scale );
3608- }
3609+ self ::parseColumnType ($ columnType , $ length , $ precision , $ scale );
36093610 $ dataSize = self ::getDataSize ($ length , $ precision , $ scale );
36103611 $ type = $ reflection ->toJdbcType ($ dataType , $ dataSize );
36113612 $ nullable = in_array (strtoupper ($ columnResult ['IS_NULLABLE ' ]), ['TRUE ' , 'YES ' , 'T ' , 'Y ' , '1 ' ]);
@@ -10341,7 +10342,6 @@ public static function toString(ResponseInterface $response): string
1034110342 'username ' => 'php-crud-api ' ,
1034210343 'password ' => 'php-crud-api ' ,
1034310344 'database ' => 'php-crud-api ' ,
10344- 'controllers ' => 'records,columns,openapi ' ,
1034510345 ]);
1034610346 $ request = RequestFactory::fromGlobals ();
1034710347 $ api = new Api ($ config );
0 commit comments