|
@@ 1092-1098 (lines=7) @@
|
| 1089 |
|
return $state; |
| 1090 |
|
}); |
| 1091 |
|
|
| 1092 |
|
$instructions->addPostStep(function ($state) { |
| 1093 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1094 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1095 |
|
$selectColumns = $writeColumns = $names; |
| 1096 |
|
|
| 1097 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1098 |
|
}); |
| 1099 |
|
|
| 1100 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1101 |
|
} |
|
@@ 1148-1154 (lines=7) @@
|
| 1145 |
|
return $state; |
| 1146 |
|
}); |
| 1147 |
|
|
| 1148 |
|
$instructions->addPostStep(function ($state) { |
| 1149 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1150 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1151 |
|
$selectColumns = $writeColumns = $names; |
| 1152 |
|
|
| 1153 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1154 |
|
}); |
| 1155 |
|
|
| 1156 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1157 |
|
} |