1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-14 01:54:08 +02:00

removed unused code

This commit is contained in:
David Grudl
2015-10-22 02:05:08 +02:00
parent 4ae4f49c21
commit 965570c067
4 changed files with 1 additions and 37 deletions

View File

@@ -51,12 +51,6 @@ class DibiSqliteReflector extends DibiObject implements IDibiReflector
*/
public function getColumns($table)
{
$meta = $this->driver->query("
SELECT sql FROM sqlite_master WHERE type = 'table' AND name = {$this->driver->escape($table, dibi::TEXT)}
UNION ALL
SELECT sql FROM sqlite_temp_master WHERE type = 'table' AND name = {$this->driver->escape($table, dibi::TEXT)}
")->fetch(TRUE);
$res = $this->driver->query("PRAGMA table_info({$this->driver->escape($table, dibi::IDENTIFIER)})");
$columns = array();
while ($row = $res->fetch(TRUE)) {