Fix test
This commit is contained in:
parent
4d4311de20
commit
df2e20b4ce
|
@ -583,8 +583,12 @@ func (statement *Statement) writeSetColumns(colNames []string, args []any) func(
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if statement.dialect.URI().DBType == schemas.MSSQL && len(statement.joins) > 0 {
|
if statement.dialect.URI().DBType != schemas.SQLITE && len(statement.joins) > 0 {
|
||||||
if _, err := fmt.Fprint(w, statement.tableName, ".", colName); err != nil {
|
tbName := statement.TableAlias
|
||||||
|
if tbName == "" {
|
||||||
|
tbName = statement.TableName()
|
||||||
|
}
|
||||||
|
if _, err := fmt.Fprint(w, tbName, ".", colName); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue