@@ -3562,6 +3562,9 @@ public function __construct(string $name, string $type, int $length, int $precis
3562
3562
3563
3563
private static function parseColumnType (string $ columnType , int &$ length , int &$ precision , int &$ scale ) /*: void*/
3564
3564
{
3565
+ if (!$ columnType ) {
3566
+ return ;
3567
+ }
3565
3568
$ pos = strpos ($ columnType , '( ' );
3566
3569
if ($ pos ) {
3567
3570
$ dataSize = rtrim (substr ($ columnType , $ pos + 1 ), ') ' );
@@ -3603,9 +3606,7 @@ public static function fromReflection(GenericReflection $reflection, array $colu
3603
3606
$ precision = (int ) $ columnResult ['NUMERIC_PRECISION ' ];
3604
3607
$ scale = (int ) $ columnResult ['NUMERIC_SCALE ' ];
3605
3608
$ columnType = $ columnResult ['COLUMN_TYPE ' ];
3606
- if ($ columnType ) {
3607
- self ::parseColumnType ($ columnType , $ length , $ precision , $ scale );
3608
- }
3609
+ self ::parseColumnType ($ columnType , $ length , $ precision , $ scale );
3609
3610
$ dataSize = self ::getDataSize ($ length , $ precision , $ scale );
3610
3611
$ type = $ reflection ->toJdbcType ($ dataType , $ dataSize );
3611
3612
$ nullable = in_array (strtoupper ($ columnResult ['IS_NULLABLE ' ]), ['TRUE ' , 'YES ' , 'T ' , 'Y ' , '1 ' ]);
@@ -10341,7 +10342,6 @@ public static function toString(ResponseInterface $response): string
10341
10342
'username ' => 'php-crud-api ' ,
10342
10343
'password ' => 'php-crud-api ' ,
10343
10344
'database ' => 'php-crud-api ' ,
10344
- 'controllers ' => 'records,columns,openapi ' ,
10345
10345
]);
10346
10346
$ request = RequestFactory::fromGlobals ();
10347
10347
$ api = new Api ($ config );
0 commit comments