Skip to content

Commit

Permalink
restore oracle binding
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoiron committed Mar 15, 2014
1 parent 5e326b2 commit 40dceae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions named.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ func compileNamedQuery(qs []byte, bindType int) (query string, names []string, e
name = make([]byte, 0, 10)
// add a proper bindvar for the bindType
switch bindType {
// oracle only supports named type bind vars even for positional
case NAMED:
rebound = append(rebound, ':')
rebound = append(rebound, name...)
case QUESTION, UNKNOWN:
rebound = append(rebound, '?')
case DOLLAR:
Expand Down

0 comments on commit 40dceae

Please sign in to comment.