|
@@ 982-988 (lines=7) @@
|
| 979 |
|
return $state; |
| 980 |
|
}); |
| 981 |
|
|
| 982 |
|
$instructions->addPostStep(function ($state) { |
| 983 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 984 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 985 |
|
$selectColumns = $writeColumns = $names; |
| 986 |
|
|
| 987 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 988 |
|
}); |
| 989 |
|
|
| 990 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 991 |
|
} |
|
@@ 1038-1044 (lines=7) @@
|
| 1035 |
|
return $state; |
| 1036 |
|
}); |
| 1037 |
|
|
| 1038 |
|
$instructions->addPostStep(function ($state) { |
| 1039 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1040 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1041 |
|
$selectColumns = $writeColumns = $names; |
| 1042 |
|
|
| 1043 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1044 |
|
}); |
| 1045 |
|
|
| 1046 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1047 |
|
} |