|
@@ 1076-1082 (lines=7) @@
|
| 1073 |
|
return $state; |
| 1074 |
|
}); |
| 1075 |
|
|
| 1076 |
|
$instructions->addPostStep(function ($state) { |
| 1077 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1078 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1079 |
|
$selectColumns = $writeColumns = $names; |
| 1080 |
|
|
| 1081 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1082 |
|
}); |
| 1083 |
|
|
| 1084 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1085 |
|
} |
|
@@ 1132-1138 (lines=7) @@
|
| 1129 |
|
return $state; |
| 1130 |
|
}); |
| 1131 |
|
|
| 1132 |
|
$instructions->addPostStep(function ($state) { |
| 1133 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1134 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1135 |
|
$selectColumns = $writeColumns = $names; |
| 1136 |
|
|
| 1137 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1138 |
|
}); |
| 1139 |
|
|
| 1140 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1141 |
|
} |