|
@@ 964-970 (lines=7) @@
|
| 961 |
|
return $state; |
| 962 |
|
}); |
| 963 |
|
|
| 964 |
|
$instructions->addPostStep(function ($state) { |
| 965 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 966 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 967 |
|
$selectColumns = $writeColumns = $names; |
| 968 |
|
|
| 969 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 970 |
|
}); |
| 971 |
|
|
| 972 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 973 |
|
} |
|
@@ 1020-1026 (lines=7) @@
|
| 1017 |
|
return $state; |
| 1018 |
|
}); |
| 1019 |
|
|
| 1020 |
|
$instructions->addPostStep(function ($state) { |
| 1021 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1022 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1023 |
|
$selectColumns = $writeColumns = $names; |
| 1024 |
|
|
| 1025 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1026 |
|
}); |
| 1027 |
|
|
| 1028 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1029 |
|
} |