Fix type error when copying tables

Related to 873eb098b9 and
a84cae6c2d.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2022-12-14 18:24:11 -03:00
parent 47238d6c8c
commit 55e95ccd09
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
2 changed files with 4 additions and 12 deletions

View File

@ -1051,15 +1051,9 @@ class Table implements Stringable
}
/**
* The old structure of the table..
* The old structure of the table.
*/
$sqlStructure = $exportSqlPlugin->getTableDef(
$sourceDb,
$sourceTable,
$GLOBALS['errorUrl'],
false,
false
);
$sqlStructure = $exportSqlPlugin->getTableDef($sourceDb, $sourceTable, false, false);
unset($noConstraintsComments);

View File

@ -13069,8 +13069,7 @@
<InvalidReturnStatement occurrences="1">
<code>$tableAutoIncrement ?? ''</code>
</InvalidReturnStatement>
<MixedArgument occurrences="50">
<code>$GLOBALS['errorUrl']</code>
<MixedArgument occurrences="49">
<code>$GLOBALS['sql_auto_increments']</code>
<code>$GLOBALS['sql_indexes']</code>
<code>$_POST['constraint_name'][$masterFieldMd5]</code>
@ -13289,8 +13288,7 @@
<code>$_POST['on_update'][$masterFieldMd5]</code>
<code>$_POST['on_update'][$masterFieldMd5]</code>
</PossiblyInvalidArrayOffset>
<PossiblyNullArgument occurrences="11">
<code>$GLOBALS['errorUrl']</code>
<PossiblyNullArgument occurrences="10">
<code>$GLOBALS['showtable']['Name']</code>
<code>$commentsCopyRow['column_name']</code>
<code>$commentsCopyRow['comment']</code>