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
|
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
|
tbName := statement.TableAlias
|
||||||
if tbName == "" {
|
if tbName == "" {
|
||||||
tbName = statement.TableName()
|
tbName = statement.TableName()
|
||||||
|
|
Loading…
Reference in New Issue