|
@@ 923-929 (lines=7) @@
|
| 920 |
|
return $state; |
| 921 |
|
}); |
| 922 |
|
|
| 923 |
|
$instructions->addPostStep(function ($state) { |
| 924 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 925 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 926 |
|
$selectColumns = $writeColumns = $names; |
| 927 |
|
|
| 928 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 929 |
|
}); |
| 930 |
|
|
| 931 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 932 |
|
} |
|
@@ 979-985 (lines=7) @@
|
| 976 |
|
return $state; |
| 977 |
|
}); |
| 978 |
|
|
| 979 |
|
$instructions->addPostStep(function ($state) { |
| 980 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 981 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 982 |
|
$selectColumns = $writeColumns = $names; |
| 983 |
|
|
| 984 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 985 |
|
}); |
| 986 |
|
|
| 987 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 988 |
|
} |