|
@@ 941-947 (lines=7) @@
|
| 938 |
|
return $state; |
| 939 |
|
}); |
| 940 |
|
|
| 941 |
|
$instructions->addPostStep(function ($state) { |
| 942 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 943 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 944 |
|
$selectColumns = $writeColumns = $names; |
| 945 |
|
|
| 946 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 947 |
|
}); |
| 948 |
|
|
| 949 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 950 |
|
} |
|
@@ 997-1003 (lines=7) @@
|
| 994 |
|
return $state; |
| 995 |
|
}); |
| 996 |
|
|
| 997 |
|
$instructions->addPostStep(function ($state) { |
| 998 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 999 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1000 |
|
$selectColumns = $writeColumns = $names; |
| 1001 |
|
|
| 1002 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1003 |
|
}); |
| 1004 |
|
|
| 1005 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1006 |
|
} |