- Fix oracle db.Data needs to manually add slash to the field name
This commit is contained in:
tuuz
2023-11-23 14:26:18 +08:00
parent 5354b57a87
commit 45f8e91f89

View File

@@ -314,7 +314,7 @@ func (b *BuilderOracle) parseData(operType string, data []map[string]interface{}
b.IOrm.SetBindValues(item[key])
}
// update
dataObj = append(dataObj, fmt.Sprintf("%s=%s", key, b.GetPlaceholder()))
dataObj = append(dataObj, fmt.Sprintf("%s=%s", b.AddFieldQuotesOracle(key), b.GetPlaceholder()))
}
dataValues = append(dataValues, "("+strings.Join(dataValuesSub, ",")+")")
}