]> git.nbdom.net Git - nb.git/commitdiff
str_match ignore case
authorNicolas Boisselier <nicolas.boisselier@semantico.com>
Thu, 30 Jun 2016 16:25:32 +0000 (17:25 +0100)
committerNicolas Boisselier <nicolas.boisselier@semantico.com>
Thu, 30 Jun 2016 16:25:32 +0000 (17:25 +0100)
lib/php/db.php

index 15d755c6e7aa54d0dab35a7ecb01302a06714fcc..1d26caa9d31d0390c6af564ec4d37ed9b4bf8a0d 100644 (file)
@@ -328,15 +328,10 @@ class Db extends nb {
     if (isset($this->tables)) return $this->tables;
     $this->tables = array();
 
-#debug((array)$this->conn->query("SELECT name,type FROM sqlite_master WHERE type IN('table','view') AND name NOT LIKE 'sqlite_%' ORDER BY name",PDO::FETCH_ASSOC));
-#debug($this->type('tables',true,$this->type));
     foreach ($this->conn->query($this->type('tables',true,$this->type),PDO::FETCH_ASSOC) as $row) {
       $name = current($row);
       $this->tables[$name] = $this->table($name,$row);
-#bye($this->tables);
     }
-#bye($this->tables);
-    #return array_values($this->tables);
 
     return $this->tables;
   }