fix lots of warnings filling zpush logs

This commit is contained in:
ralf 2023-06-09 18:27:28 +02:00
parent 608963aa9b
commit 7799ef9a97

View File

@ -1065,13 +1065,13 @@ class Db
'name' => $column->name, 'name' => $column->name,
'type' => $column->type, 'type' => $column->type,
'len' => $column->max_length, 'len' => $column->max_length,
'flags' => $flags, // for backwards compatibilty (depreciated) used by JiNN atm 'flags' => $flags, // for backwards compatibility (depreciated) used by JiNN atm
'not_null' => $column->not_null, 'not_null' => $column->not_null,
'auto_increment' => $column->auto_increment, 'auto_increment' => $column->auto_increment,
'primary_key' => $column->primary_key, 'primary_key' => $column->primary_key,
'binary' => $column->binary, 'binary' => $column->binary,
'has_default' => $column->has_default, 'has_default' => $column->has_default,
'default' => $column->default_value, 'default' => $column->default_value ?? null,
); );
$metadata[$i]['table'] = $table; $metadata[$i]['table'] = $table;
if ($full) if ($full)
@ -2321,11 +2321,11 @@ class Db
false, // line false, // line
false, // file false, // file
false, // offset false, // offset
$select['append'], $select['append'] ?? null,
$select['app'], $select['app'] ?? null,
0, // num_rows, 0, // num_rows,
$select['join'], $select['join'] ?? null,
$select['table_def'], $select['table_def'] ?? null,
)); ));
} }
$sql = count($union) > 1 ? '(' . implode(")\nUNION\n(",$union).')' : 'SELECT DISTINCT'.substr($union[0],6); $sql = count($union) > 1 ? '(' . implode(")\nUNION\n(",$union).')' : 'SELECT DISTINCT'.substr($union[0],6);