-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
~line 2264:
foreach ($tables as $t=>$table) {
$table_list = array($table['name']);
$table_fields = $this->findFields($table_list,false,false,false,$database);
$table_names = array_map(function($v){ return $v['name'];},$tables);
It looks like:
$table_names = array_map(function($v){ return $v['name'];},$tables);
is run multiple times over the foreach loop, could this be safely moved to just before the foreach loop? If so, I can include it in a future PR.
I am also working on a PR for some fixes to the SQLServer driver. See: jr3cermak#2
Quick summary:
- Swagger supports a boolean type that SQLServer defines as type -7(bit) currently shown as string. We might add a isBooleanType check across the board.
- SQLserver type 3 is numeric.
- sqlsrv_field_metadata may return NULL for a requested table. Although the table may exist or show via information_schema, we may want to eliminate this table from being shown. Otherwise, the columns are shown as strings which is wrong.
- don't show maxLength < 0
mevdscheemevdschee