Merged in bugfix/PMC-1404 (pull request #7138)
PMC-1404 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
2d75d28a59
@@ -466,7 +466,7 @@ class PmTable
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($line)) {
|
if (empty($line)) {
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($line, "#") === 0) {
|
if (strpos($line, "#") === 0) {
|
||||||
@@ -474,7 +474,7 @@ class PmTable
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($line)) {
|
if (empty($line)) {
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Concatenate the previous line, if any, with the current
|
// Concatenate the previous line, if any, with the current
|
||||||
@@ -487,7 +487,7 @@ class PmTable
|
|||||||
// with the next one, thus supporting multi-line statements.
|
// with the next one, thus supporting multi-line statements.
|
||||||
if (strrpos($line, ";") != strlen($line) - 1) {
|
if (strrpos($line, ";") != strlen($line) - 1) {
|
||||||
$previous = $line;
|
$previous = $line;
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$line = substr($line, 0, strrpos($line, ";"));
|
$line = substr($line, 0, strrpos($line, ";"));
|
||||||
@@ -513,7 +513,7 @@ class PmTable
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($line)) {
|
if (empty($line)) {
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($line, "#") === 0) {
|
if (strpos($line, "#") === 0) {
|
||||||
@@ -521,7 +521,7 @@ class PmTable
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($line)) {
|
if (empty($line)) {
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Concatenate the previous line, if any, with the current
|
// Concatenate the previous line, if any, with the current
|
||||||
@@ -534,13 +534,13 @@ class PmTable
|
|||||||
// with the next one, thus supporting multi-line statements.
|
// with the next one, thus supporting multi-line statements.
|
||||||
if (strrpos($line, ";") != strlen($line) - 1) {
|
if (strrpos($line, ";") != strlen($line) - 1) {
|
||||||
$previous = $line;
|
$previous = $line;
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$line = substr($line, 0, strrpos($line, ";"));
|
$line = substr($line, 0, strrpos($line, ";"));
|
||||||
|
|
||||||
if (strpos($line, $this->tableName) == false) {
|
if (strpos($line, $this->tableName) == false) {
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$auxCreate = explode('CREATE', $line);
|
$auxCreate = explode('CREATE', $line);
|
||||||
@@ -553,7 +553,7 @@ class PmTable
|
|||||||
case 'oracle':
|
case 'oracle':
|
||||||
$line = trim($line); // Remove comments from the script
|
$line = trim($line); // Remove comments from the script
|
||||||
if (empty($line)) {
|
if (empty($line)) {
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case preg_match("/^CREATE TABLE\s/i", $line):
|
case preg_match("/^CREATE TABLE\s/i", $line):
|
||||||
|
|||||||
Reference in New Issue
Block a user