From 53773d9f4b4a5646efe414cbd954780bb0034767 Mon Sep 17 00:00:00 2001 From: Devops Date: Mon, 10 Apr 2017 11:11:37 +0100 Subject: [PATCH] /opt/deploy/data/15g.inc.php --- lib/php/db/table.php | 3 ++- lib/php/db/types/sqlite.php | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/php/db/table.php b/lib/php/db/table.php index eb89fee7..2de15f0c 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -929,7 +929,8 @@ Class Table extends nb { } if ($parser and !empty($this->db()->row_parse_post)) { - $call = $this->db()->row_parse_post; $call($row,$this); + $call = $this->db()->row_parse_post; + $call($row,$this); } # Passed param on rows() diff --git a/lib/php/db/types/sqlite.php b/lib/php/db/types/sqlite.php index b8cef144..74be8834 100644 --- a/lib/php/db/types/sqlite.php +++ b/lib/php/db/types/sqlite.php @@ -121,14 +121,9 @@ $DB_TYPES['sqlite'] = array ( }, 'table.sql.create' => function($sql,$t) { - #$sql .= $t->db()->row("SELECT sql FROM sqlite_master WHERE type='index' AND tbl_name=".$t->sql_name()); $sql = str_replace("\\'","''",$sql); $sql = str_replace('\\r',"\r",$sql); $sql = str_replace('\\n',"\n",$sql); - #$sql = preg_replace("/\\'/","''",$sql); - #$sql = 'espace'; - #$sql = "zaza $sql"; - #debug($sql); return $sql; }, 'connect' => function($Db) { -- 2.47.3