quoteColumn() public method

column quote can be configured by 'quote_column' option.
public quoteColumn ( string $name ) : string
$name string column name
return string column name with/without quotes.
Beispiel #1
0
 public function buildSetClause(BaseDriver $driver, ArgumentArray $args)
 {
     $setClauses = array();
     foreach ($this->sets as $col => $val) {
         $setClauses[] = $driver->quoteColumn($col) . " = " . $driver->deflate($val);
     }
     return ' SET ' . join(', ', $setClauses);
 }