fix update sets
This commit is contained in:
parent
98a3ec059c
commit
dd1e16fcbc
|
@ -593,7 +593,7 @@ func (statement *Statement) writeSetColumns(colNames []string, args []any) func(
|
|||
return err
|
||||
}
|
||||
}
|
||||
if statement.dialect.URI().DBType != schemas.SQLITE && len(statement.joins) > 0 {
|
||||
if statement.dialect.URI().DBType != schemas.SQLITE && statement.dialect.URI().DBType != schemas.POSTGRES && len(statement.joins) > 0 {
|
||||
tbName := statement.TableAlias
|
||||
if tbName == "" {
|
||||
tbName = statement.TableName()
|
||||
|
|
Loading…
Reference in New Issue