|
@@ 1001-1007 (lines=7) @@
|
| 998 |
|
return $state; |
| 999 |
|
}); |
| 1000 |
|
|
| 1001 |
|
$instructions->addPostStep(function ($state) { |
| 1002 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1003 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1004 |
|
$selectColumns = $writeColumns = $names; |
| 1005 |
|
|
| 1006 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1007 |
|
}); |
| 1008 |
|
|
| 1009 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1010 |
|
} |
|
@@ 1057-1063 (lines=7) @@
|
| 1054 |
|
return $state; |
| 1055 |
|
}); |
| 1056 |
|
|
| 1057 |
|
$instructions->addPostStep(function ($state) { |
| 1058 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1059 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1060 |
|
$selectColumns = $writeColumns = $names; |
| 1061 |
|
|
| 1062 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1063 |
|
}); |
| 1064 |
|
|
| 1065 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1066 |
|
} |