# ARGS
#
#################################################################################
-my $VERBOSE = $main::VERBOSE = 1;
+my $VERBOSE = $main::VERBOSE = 0;
my $DEBUG = $main::DEBUG = 0;
my %Opt = (
$opt = [ 'count' => 1 ];
$this->count = $this->db()->row($this->rows_sql($opt));
return $this->count;
-# NB 04.02.18
-# NB 04.02.18 if (isset($this->count)) return $this->count;
-# NB 04.02.18
-# NB 04.02.18 $sql_count = $this->name;
-# NB 04.02.18
-# NB 04.02.18 # We could use it instead of query, but wont be cached ! $this->create_temporary();
-# NB 04.02.18 if ($this->type == 'sql' and $this->name !== DB_TABLE_QUERY_NAME) {
-# NB 04.02.18 if (!$this->sql) return;
-# NB 04.02.18
-# NB 04.02.18 $sql_count = "SELECT COUNT(*) FROM ($this->sql) _table_count" ;
-# NB 04.02.18
-# NB 04.02.18 } elseif (preg_match('/^[\w_-]+$/',$sql_count)) {
-# NB 04.02.18 $sql_count = "SELECT count(*) FROM ".$this->sql_name($sql_count);
-# NB 04.02.18
-# NB 04.02.18 } else {
-# NB 04.02.18 $sql_count = preg_replace('/ (ORDER|LIMIT) .*?$/s','',$sql_count);
-# NB 04.02.18 $sql_count = preg_replace('/^SELECT .*FROM/s','SELECT count(*) FROM ',$sql_count);
-# NB 04.02.18
-# NB 04.02.18 }
-# NB 04.02.18
-# NB 04.02.18 $this->count = (int)$this->db()->row($sql_count);
-# NB 04.02.18 return $this->count;
-
}
public function err_sql($sql) {