|
@@ 1124-1130 (lines=7) @@
|
| 1121 |
|
return $state; |
| 1122 |
|
}); |
| 1123 |
|
|
| 1124 |
|
$instructions->addPostStep(function ($state) { |
| 1125 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1126 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1127 |
|
$selectColumns = $writeColumns = $names; |
| 1128 |
|
|
| 1129 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1130 |
|
}); |
| 1131 |
|
|
| 1132 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1133 |
|
} |
|
@@ 1180-1186 (lines=7) @@
|
| 1177 |
|
return $state; |
| 1178 |
|
}); |
| 1179 |
|
|
| 1180 |
|
$instructions->addPostStep(function ($state) { |
| 1181 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1182 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1183 |
|
$selectColumns = $writeColumns = $names; |
| 1184 |
|
|
| 1185 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1186 |
|
}); |
| 1187 |
|
|
| 1188 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1189 |
|
} |