Skip to content

Commit

Permalink
fix: #3226
Browse files Browse the repository at this point in the history
  • Loading branch information
hailaz committed Feb 23, 2024
1 parent d64a31f commit 59beaf3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/drivers/oracle/oracle_open.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package oracle

import (
"database/sql"

gora "github.com/sijms/go-ora/v2"

"github.com/gogf/gf/v2/database/gdb"
Expand Down Expand Up @@ -52,6 +53,11 @@ func (d *Driver) Open(config *gdb.ConfigNode) (db *sql.DB, err error) {
for k, v := range extraMap {
options[k] = gconv.String(v)
}
// fix #3226
if k, ok := options["lob_fetch"]; ok {
options["lob fetch"] = k
delete(options, "lob_fetch")
}
}
source = gora.BuildUrl(
config.Host, gconv.Int(config.Port), config.Name, config.User, config.Pass, options,
Expand Down

0 comments on commit 59beaf3

Please sign in to comment.