@@ -1141,9 +1141,9 @@ discard block |
||
| 1141 | 1141 | "INSERT$ignore INTO `$tableName` VALUES (".implode(",", $vals).")" |
| 1142 | 1142 | ); |
| 1143 | 1143 | } |
| 1144 | - if ($replace) { |
|
| 1144 | + if ($replace) { |
|
| 1145 | 1145 | $lineSize += $this->compressManager->write(" ON DUPLICATE KEY UPDATE {$strUpdates}"); |
| 1146 | - } |
|
| 1146 | + } |
|
| 1147 | 1147 | $onlyOnce = false; |
| 1148 | 1148 | } else { |
| 1149 | 1149 | $lineSize += $this->compressManager->write(",(".implode(",", $vals).")"); |
@@ -1173,13 +1173,13 @@ discard block |
||
| 1173 | 1173 | * |
| 1174 | 1174 | * @return bool |
| 1175 | 1175 | */ |
| 1176 | - public function getHasPrimaryKey($tableName) |
|
| 1177 | - { |
|
| 1176 | + public function getHasPrimaryKey($tableName) |
|
| 1177 | + { |
|
| 1178 | 1178 | foreach ($this->tableColumnTypes[$tableName] as $colName => $colType) { |
| 1179 | 1179 | if ($colType['key_sql'] == 'PRI') { |
| 1180 | 1180 | return true; |
| 1181 | 1181 | } |
| 1182 | - } |
|
| 1182 | + } |
|
| 1183 | 1183 | return false; |
| 1184 | 1184 | } |
| 1185 | 1185 | |
@@ -1919,8 +1919,8 @@ discard block |
||
| 1919 | 1919 | $createTable = preg_replace($match, $replace, $createTable); |
| 1920 | 1920 | } |
| 1921 | 1921 | |
| 1922 | - if ($this->dumpSettings['if-not-exists'] ) { |
|
| 1923 | - $createTable = preg_replace('/^CREATE TABLE/', 'CREATE TABLE IF NOT EXISTS', $createTable); |
|
| 1922 | + if ($this->dumpSettings['if-not-exists'] ) { |
|
| 1923 | + $createTable = preg_replace('/^CREATE TABLE/', 'CREATE TABLE IF NOT EXISTS', $createTable); |
|
| 1924 | 1924 | } |
| 1925 | 1925 | |
| 1926 | 1926 | $ret = "/*!40101 SET @saved_cs_client = @@character_set_client */;".PHP_EOL. |