Skip to content

Commit 674c2bf

Browse files
authored
Merge pull request #395 from MichaelS11/named
Allow multiple time use of single named parameter
2 parents 2273941 + 4a44977 commit 674c2bf

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

statement.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ func (stmt *Stmt) Close() error {
3636

3737
// NumInput returns the number of input
3838
func (stmt *Stmt) NumInput() int {
39-
var bindCount C.ub4 // number of bind position
40-
_, err := stmt.ociAttrGet(unsafe.Pointer(&bindCount), C.OCI_ATTR_BIND_COUNT)
41-
if err != nil {
42-
return -1
43-
}
44-
45-
return int(bindCount)
39+
return -1
4640
}
4741

4842
// CheckNamedValue checks a named value

0 commit comments

Comments
 (0)