private function getUpdateStatement($data)
    {
        $bindings = array();
        $statement = '';

        foreach ($data as $key => $value) {
            if ($value instanceof Raw) {
                $statement .= $this->wrapSanitizer($key) . '=' . $value . ',';
            } else {
                $statement .= $this->wrapSanitizer($key) . '=?,';
                $bindings[] = $value;
            }
        }

        $statement = trim($statement, ',');
        return array($statement, $bindings);
    }
private function getUpdateStatement($data)
    {
        $bindings = array();
        $statement = '';

        foreach ($data as $key => $value) {
            if ($value instanceof Raw) {
                $statement .= $this->wrapSanitizer($key) . '=' . $value . ',';
            } else {
                $statement .= $this->wrapSanitizer($key) . '=?,';
                $bindings[] = $value;
            }
        }

        $statement = trim($statement, ',');
        return array($statement, $bindings);
    }
private function getUpdateStatement ( $ data ) { $ bindings = array ( ) ; $ statement = '' ; foreach ( $ data as $ key => $ value ) { if ( $ value instanceof Raw ) { $ statement .= $ this -> wrapSanitizer ( $ key ) . '=' . $ value . ',' ; } else { $ statement .= $ this -> wrapSanitizer ( $ key ) . '=?,' ; $ bindings [ ] = $ value ; } } $ statement = trim ( $ statement , ',' ) ; return array ( $ statement , $ bindings ) ; }
Build fields assignment part of SET ... or ON DUBLICATE KEY UPDATE ... statements

@param array $data

@return array
Build fields assignment part of SET ... or ON DUBLICATE KEY UPDATE ... statements