h2/src/main/org/h2/command/dml/Insert.java
/**
     * Keep a collection of the columns to pass to update if a duplicate key
     * happens, for MySQL-style INSERT ... ON DUPLICATE KEY UPDATE ....
     *
     * @param column the column
     * @param expression the expression
     */
Keep a collection of the columns to pass to update if a duplicate key
happens, for MySQL-style INSERT ... ON DUPLICATE KEY UPDATE

@param column the column
@param expression the expression
Keep a collection of the columns to pass to update if a duplicate key happens for MySQL - style INSERT ... ON DUPLICATE KEY UPDATE @param column the column @param expression the expression
public void addAssignmentForDuplicate(Column column, Expression expression) {
        if (duplicateKeyAssignmentMap == null) {
            duplicateKeyAssignmentMap = New.hashMap();
        }
        if (duplicateKeyAssignmentMap.containsKey(column)) {
            throw DbException.get(ErrorCode.DUPLICATE_COLUMN_NAME_1, column.getName());
        }
        duplicateKeyAssignmentMap.put(column, expression);
    }
public void addAssignmentForDuplicate ( Column column , Expression expression ) { if ( duplicateKeyAssignmentMap == null ) { duplicateKeyAssignmentMap = New . hashMap ( ) ; } if ( duplicateKeyAssignmentMap . containsKey ( column ) ) { throw DbException . get ( ErrorCode . DUPLICATE_COLUMN_NAME_1 , column . getName ( ) ) ; } duplicateKeyAssignmentMap . put ( column , expression ) ; }
Keep a collection of the columns to pass to update if a duplicate key
 happens, for MySQL-style INSERT ... ON DUPLICATE KEY UPDATE ....
Keep a collection of the columns to pass to update if a duplicate key happens for MySQL - style INSERT ... ON DUPLICATE KEY UPDATE ....