|
@@ 1136-1142 (lines=7) @@
|
| 1133 |
|
return $state; |
| 1134 |
|
}); |
| 1135 |
|
|
| 1136 |
|
$instructions->addPostStep(function ($state) { |
| 1137 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1138 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1139 |
|
$selectColumns = $writeColumns = $names; |
| 1140 |
|
|
| 1141 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1142 |
|
}); |
| 1143 |
|
|
| 1144 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1145 |
|
} |
|
@@ 1192-1198 (lines=7) @@
|
| 1189 |
|
return $state; |
| 1190 |
|
}); |
| 1191 |
|
|
| 1192 |
|
$instructions->addPostStep(function ($state) { |
| 1193 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1194 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1195 |
|
$selectColumns = $writeColumns = $names; |
| 1196 |
|
|
| 1197 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1198 |
|
}); |
| 1199 |
|
|
| 1200 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1201 |
|
} |