]> git.nbdom.net Git - nb.git/commitdiff
fix bug table already exists
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 29 Dec 2016 16:22:21 +0000 (17:22 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 29 Dec 2016 16:22:21 +0000 (17:22 +0100)
lib/php/db/table.php

index 5c5fd31ac116fefab1607b4b3188b9b5f8c4e55f..e4c9c39a31c33e26248edfb8c0965da97a4875b6 100644 (file)
@@ -128,7 +128,7 @@ Class Table extends nb {
 
     // Virtual Table
     } elseif (DB_TABLE_QUERY_NAME and !empty($this->sql)) {
-      if ($this->name) $this->name = DB_TABLE_QUERY_NAME;
+# NB 29.12.16 table already exists !!!      if ($this->name) $this->name = DB_TABLE_QUERY_NAME;
       $this->db()->conn->query("CREATE TEMPORARY TABLE $this->name AS $this->sql");
 
     } elseif (preg_match('/\b(\.import|LOAD DATA|COPY|INSERT|REPLACE|DELETE|TRUNCATE|CREATE|DROP|ALERT)\b/',$this->name)) {