src/InsertOnDuplicateKey.php
protected static function buildValuesList(array $updatedColumns)
    {
        $out = [];

        foreach ($updatedColumns as $key => $value) {
            if (is_numeric($key)) {
                $out[] = sprintf('`%s` = VALUES(`%s`)', $value, $value);
            } else {
                $out[] = sprintf('%s = %s', $key, $value);
            }
        }

        return implode(', ', $out);
    }
protected static function buildValuesList(array $updatedColumns)
    {
        $out = [];

        foreach ($updatedColumns as $key => $value) {
            if (is_numeric($key)) {
                $out[] = sprintf('`%s` = VALUES(`%s`)', $value, $value);
            } else {
                $out[] = sprintf('%s = %s', $key, $value);
            }
        }

        return implode(', ', $out);
    }
protected static function buildValuesList ( array $ updatedColumns ) { $ out = [ ] ; foreach ( $ updatedColumns as $ key => $ value ) { if ( is_numeric ( $ key ) ) { $ out [ ] = sprintf ( '`%s` = VALUES(`%s`)' , $ value , $ value ) ; } else { $ out [ ] = sprintf ( '%s = %s' , $ key , $ value ) ; } } return implode ( ', ' , $ out ) ; }
Build a value list.

@param array $updatedColumns

@return string
Build a value list .