Closed Kazun3500 closed 5 years ago
There is a workaround for solving a problem which, by my opinion is a bug.
- var second, third sql.NullFloat64
+ var second, third string
We pass string variable into function which requires numeric/
Looks like any pointer to nil is not supported for output at this time. Would need to add additional code to get pointer type and use that instead of the nil type. Nil type has no buffer and is always Oracle string type so not going to work correctly for returned value almost always.
https://github.com/mattn/go-oci8/blob/052f5d97b9b62bcb40dfacf7d582940e8d526d95/statement.go#L60-L78
Someone else is welcome to look into this more. If not, I will look into it more later, maybe in January.
@Kazun3500 Please test https://github.com/mattn/go-oci8/pull/320
All works ok. Thank you
Hello. I have the procedure described below.
The essence of the procedure is that the input variables are null values. Value null - the procedure works in one way. Otherwise - different. I call it from go as follows.
I got next output
How can i avoid this error?