From: Devops Date: Mon, 10 Apr 2017 10:11:37 +0000 (+0100) Subject: /opt/deploy/data/15g.inc.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=53773d9f4b4a5646efe414cbd954780bb0034767;p=nb.git /opt/deploy/data/15g.inc.php --- 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) {