From 2d3daca189a930eddfbd1107887bfc04dbbd999c Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Sep 2017 22:22:59 +0100 Subject: [PATCH] lib/php/db/table.php --- lib/php/db/table.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/php/db/table.php b/lib/php/db/table.php index e7b6bad9..500a2354 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -364,6 +364,8 @@ Class Table extends nb { $conf = $this->unvar($this->db()->conf_type('table.fields',true)); if (is_scalar($conf)) $conf = ['sql'=>$conf]; + # NB 25.09.17: dirty fixed for sqlite4 attache db + $conf['sql'] = preg_replace("/^PRAGMA table_info\('([^'\.]+)\./","PRAGMA ".'$1'.".table_info('",$conf['sql']); $rows = $this->db()->conn->query($conf['sql']); if (!is_object($rows)) { -- 2.47.3