Skip to content

Commit 288cf62

Browse files
quote table name
1 parent 4f1d865 commit 288cf62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func Create(db *gorm.DB) {
135135

136136
func MergeCreate(db *gorm.DB, onConflict clause.OnConflict, values clause.Values) {
137137
db.Statement.WriteString("MERGE INTO ")
138-
db.Statement.WriteString(db.Statement.Schema.Table)
138+
db.Statement.WriteQuoted(db.Statement.Schema.Table)
139139
db.Statement.WriteString(" USING (VALUES")
140140
for idx, value := range values.Values {
141141
if idx > 0 {

0 commit comments

Comments
 (0)