We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2d3989 commit 81e4335Copy full SHA for 81e4335
src/Sync.php
@@ -101,13 +101,13 @@ private function executeAddTables($add_table_sql_collect)
101
{
102
$this->localConnector->query('SET FOREIGN_KEY_CHECKS=0');
103
foreach ($add_table_sql_collect as $key => $sql) {
104
- if ($this->localConnector->query($sql)) {
+ if ($this->localConnector->exec($sql)) {
105
$this->statistics['success']['ADD_TABLE'][] = $sql;
106
unset($add_table_sql_collect[$key]);
107
} else {
108
$this->statistics['error']['ADD_TABLE'][] = $sql;
109
}
110
111
- $this->localConnector->query('SET FOREIGN_KEY_CHECKS=1');
+ $this->localConnector->exec('SET FOREIGN_KEY_CHECKS=1');
112
113
0 commit comments