New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go 1.3 will require you to change (*C.OCIServer)(s.c.svc) to (*C.OCISvcCtx)(s.c.svc) #27
Comments
Currently, I don't have Oracle environment. Could you please send me a pull-request? |
I’m having the same issue when building on 1.3 |
OK, I merged this. But I did't make sure this change is working. Sorry. |
@peterhellberg Ah, sorry, I notice you are making PR. |
@mattn No problem :) |
@mattn You mistyped |
Oooops. Could you please check last comit? |
@mattn Yes, it now compiles under both OS X and Linux (Ubuntu) I’m using the latest versions of the Instant Client for both platforms (11.2 and 12.1 respectively) |
Thanks! |
In Go 1.2 and earlier, any C struct that is only declared, never defined, and used only via pointers ("sealed") was turned into
[0]byte
. This meant that mismatched struct types went undetected. Go 1.3 gets rid of this behavior, making each declared struct type unique.Your code has, in several places, lines of the form
However, according to the docs, the first parameter to
OCIStmtExecute()
must be aOCISvcCtx
. So the code will need to be changed toto compile in Go 1.3.
This was discovered while trying to get this package working for @RGidron on his Mavericks setup on Gopher Academy's Slack server; after working with him for a bit I found this error (I was familiar with this misbehavior when it broke my ui package when it tried to use Cairo types).
The text was updated successfully, but these errors were encountered: