slight adjustment
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
c7802f9737
commit
3708430ebf
|
@ -175,7 +175,7 @@ func (statement *Statement) genMergeSQL(doUpdate bool, columns []string, args []
|
||||||
}
|
}
|
||||||
write(" WHEN NOT MATCHED THEN INSERT ")
|
write(" WHEN NOT MATCHED THEN INSERT ")
|
||||||
includeAutoIncrement := statement.includeAutoIncrement(columns)
|
includeAutoIncrement := statement.includeAutoIncrement(columns)
|
||||||
if len(columns) == 0 {
|
if len(columns) == 0 && statement.dialect.URI().DBType == schemas.MSSQL {
|
||||||
write(" DEFAULT VALUES ")
|
write(" DEFAULT VALUES ")
|
||||||
} else {
|
} else {
|
||||||
// We have some values - Write the column names we need to insert:
|
// We have some values - Write the column names we need to insert:
|
||||||
|
|
Loading…
Reference in New Issue