mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
✨ improve clickhouse driver
This commit is contained in:
@ -416,7 +416,7 @@ func (c *Core) DoInsert(ctx context.Context, link Link, table string, list List,
|
||||
operation = GetInsertOperationByOption(option.InsertOption)
|
||||
)
|
||||
if option.InsertOption == InsertOptionSave {
|
||||
onDuplicateStr = c.FormatOnDuplicate(keys, option)
|
||||
onDuplicateStr = c.formatOnDuplicate(keys, option)
|
||||
}
|
||||
var (
|
||||
listLength = len(list)
|
||||
@ -464,7 +464,7 @@ func (c *Core) DoInsert(ctx context.Context, link Link, table string, list List,
|
||||
return batchResult, nil
|
||||
}
|
||||
|
||||
func (c *Core) FormatOnDuplicate(columns []string, option DoInsertOption) string {
|
||||
func (c *Core) formatOnDuplicate(columns []string, option DoInsertOption) string {
|
||||
var onDuplicateStr string
|
||||
if option.OnDuplicateStr != "" {
|
||||
onDuplicateStr = option.OnDuplicateStr
|
||||
|
||||
Reference in New Issue
Block a user