Fix phpcs
This commit is contained in:
parent
5533526331
commit
878026ebc5
@ -267,7 +267,7 @@ function pg2mysql(&$input, &$arrayofprimaryalreadyintabledef, $header = true)
|
|||||||
$outputatend = "";
|
$outputatend = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
$in_create_table = $in_insert = FALSE;
|
$in_create_table = $in_insert = false;
|
||||||
|
|
||||||
$linenumber = 0;
|
$linenumber = 0;
|
||||||
$tbl_extra = "";
|
$tbl_extra = "";
|
||||||
@ -551,10 +551,10 @@ function pg2mysql(&$input, &$arrayofprimaryalreadyintabledef, $header = true)
|
|||||||
preg_match('/COPY (.*) FROM stdin/', $line, $matches);
|
preg_match('/COPY (.*) FROM stdin/', $line, $matches);
|
||||||
$heads = str_replace('"', "`", $matches[1]);
|
$heads = str_replace('"', "`", $matches[1]);
|
||||||
$values = array();
|
$values = array();
|
||||||
$in_insert = TRUE;
|
$in_insert = true;
|
||||||
} elseif ($in_insert) {
|
} elseif ($in_insert) {
|
||||||
if ($line == "\\.\n") {
|
if ($line == "\\.\n") {
|
||||||
$in_insert = FALSE;
|
$in_insert = false;
|
||||||
if ($values) {
|
if ($values) {
|
||||||
$output .= "INSERT INTO $heads VALUES\n" . implode(",\n", $values) . ";\n\n";
|
$output .= "INSERT INTO $heads VALUES\n" . implode(",\n", $values) . ";\n\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user