@@ -1875,7 +1875,7 @@ discard block |
||
| 1875 | 1875 | $createTable = preg_replace($match, $replace, $createTable); |
| 1876 | 1876 | } |
| 1877 | 1877 | |
| 1878 | - if ($this->dumpSettings['if-not-exists'] ) { |
|
| 1878 | + if ($this->dumpSettings['if-not-exists']) { |
|
| 1879 | 1879 | $createTable = preg_replace('/^CREATE TABLE/', 'CREATE TABLE IF NOT EXISTS', $createTable); |
| 1880 | 1880 | } |
| 1881 | 1881 | |
@@ -1978,7 +1978,7 @@ discard block |
||
| 1978 | 1978 | $characterSetClient = $row['character_set_client']; |
| 1979 | 1979 | $collationConnection = $row['collation_connection']; |
| 1980 | 1980 | $sqlMode = $row['sql_mode']; |
| 1981 | - if ( $this->dumpSettings['skip-definer'] ) { |
|
| 1981 | + if ($this->dumpSettings['skip-definer']) { |
|
| 1982 | 1982 | if ($functionStmtReplaced = preg_replace( |
| 1983 | 1983 | '/^(CREATE)\s+('.self::DEFINER_RE.')?\s+(FUNCTION\s.*)$/s', |
| 1984 | 1984 | '\1 \3', |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | 'skip-comments' => false, |
| 166 | 166 | 'skip-dump-date' => false, |
| 167 | 167 | 'skip-definer' => false, |
| 168 | - 'append_extra_sqls' => false, |
|
| 168 | + 'append_extra_sqls' => false, |
|
| 169 | 169 | 'where' => '', |
| 170 | 170 | /* deprecated */ |
| 171 | 171 | 'disable-foreign-keys-check' => true |
@@ -440,12 +440,12 @@ discard block |
||
| 440 | 440 | $this->exportViews(); |
| 441 | 441 | $this->exportEvents(); |
| 442 | 442 | |
| 443 | - // extra sqls that should be run |
|
| 443 | + // extra sqls that should be run |
|
| 444 | 444 | if ($this->dumpSettings['append_extra_sqls']) { |
| 445 | 445 | $this->compressManager->write("-- START EXTRA SQLS".PHP_EOL); |
| 446 | - $this->compressManager->write("SET autocommit=0;".PHP_EOL); |
|
| 446 | + $this->compressManager->write("SET autocommit=0;".PHP_EOL); |
|
| 447 | 447 | $this->compressManager->write($this->dumpSettings['append_extra_sqls'].PHP_EOL); |
| 448 | - $this->compressManager->write("COMMIT;".PHP_EOL); |
|
| 448 | + $this->compressManager->write("COMMIT;".PHP_EOL); |
|
| 449 | 449 | $this->compressManager->write("-- END EXTRA SQLS".PHP_EOL); |
| 450 | 450 | } |
| 451 | 451 | |
@@ -1886,8 +1886,8 @@ discard block |
||
| 1886 | 1886 | $createTable = preg_replace($match, $replace, $createTable); |
| 1887 | 1887 | } |
| 1888 | 1888 | |
| 1889 | - if ($this->dumpSettings['if-not-exists'] ) { |
|
| 1890 | - $createTable = preg_replace('/^CREATE TABLE/', 'CREATE TABLE IF NOT EXISTS', $createTable); |
|
| 1889 | + if ($this->dumpSettings['if-not-exists'] ) { |
|
| 1890 | + $createTable = preg_replace('/^CREATE TABLE/', 'CREATE TABLE IF NOT EXISTS', $createTable); |
|
| 1891 | 1891 | } |
| 1892 | 1892 | |
| 1893 | 1893 | $ret = "/*!40101 SET @saved_cs_client = @@character_set_client */;".PHP_EOL. |