Skip to content

Commit

Permalink
👽 修改批量设置会话参数工具函数
Browse files Browse the repository at this point in the history
> see: sijms/go-ora/commit/06e19553578a11fa3b8061674db22aa8bb68288b

Signed-off-by: liutianqi <zixizixi@vip.qq.com>
  • Loading branch information
iTanken committed Mar 19, 2024
1 parent 63cd633 commit bf56a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func AddSessionParams(db *sql.DB, params map[string]string) (keys []string, err
if key == "" || value == "" {
continue
}
if err = go_ora.AddSessionParam(db, key, value); err != nil {
if err = go_ora.AddSessionParam(db, key, fmt.Sprintf("'%s'", value)); err != nil {
return
}
keys = append(keys, key)
Expand Down

0 comments on commit bf56a58

Please sign in to comment.