function testArgsTableFields() {
        $sql = new Query_Update($this->table, $this->fields);
        
        $sql->set($this->testValues);

        list($sql_text, $values) = $sql->give_sql_and_values();
        $this->assertEquals($this->testString, $sql_text);
        $this->assertEquals($values, $this->testResultValues);
    }
Beispiel #2
0
 /**
  * Create an update
  *
  * @param string			$table
  * @param array 			$values
  * @param string 		$handler
  * @return DB\Query
  */
 public static function update($table, $values = array(), $handler = null)
 {
     return Query_Update::create($table, $handler)->set($values);
 }