fix update sets

This commit is contained in:
Lunny Xiao 2023-12-30 18:09:15 +08:00
parent 98a3ec059c
commit dd1e16fcbc
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -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()