|
@@ 874-880 (lines=7) @@
|
| 871 |
|
return $state; |
| 872 |
|
}); |
| 873 |
|
|
| 874 |
|
$instructions->addPostStep(function ($state) { |
| 875 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 876 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 877 |
|
$selectColumns = $writeColumns = $names; |
| 878 |
|
|
| 879 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 880 |
|
}); |
| 881 |
|
|
| 882 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 883 |
|
} |
|
@@ 930-936 (lines=7) @@
|
| 927 |
|
return $state; |
| 928 |
|
}); |
| 929 |
|
|
| 930 |
|
$instructions->addPostStep(function ($state) { |
| 931 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 932 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 933 |
|
$selectColumns = $writeColumns = $names; |
| 934 |
|
|
| 935 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 936 |
|
}); |
| 937 |
|
|
| 938 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 939 |
|
} |