Esempio n. 1
0
 /**
  * Dump table b
  */
 public function testDropTableB()
 {
     $DO = MySql::query("DROP TABLE `test_table_b`");
     $this->assertEquals(true, $DO->isSuccess());
 }
Esempio n. 2
0
 protected function exe($sql, $arrayValues = array())
 {
     $options = array();
     if ($this->connection) {
         $options['connection'] =& $this->connection;
     }
     if ($this->trigger) {
         if (count($arrayValues) > 0) {
             return \KMapper\MySql::execute($sql, $arrayValues, $options);
         }
         return \KMapper\MySql::execute($sql, $this->arrayParams, $options);
     } else {
         return new \KMapper\KDataObject(array());
     }
 }