-
Notifications
You must be signed in to change notification settings - Fork 75
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
Compilation fix for Windows ( and some small cleanups ) #212
Conversation
Thanks! Could you drop some commits by
I accept this commit. 0f43bf7 broken compilation on Windows. I forgot to check it. Thanks.
What warning do you get without 5caa3a0? What compiler do you use? Lines 427 to 431 in 0f43bf7
As far as I remember, 5caa3a0 causes compilation error on some platforms. (old compiler? I forget what platforms they are.)
I accept this. Thanks.
I don't accept them. They make incorrect links in https://www.rubydoc.info/github/kubo/ruby-oci8. |
17b7e5f
to
2548130
Compare
Hi I did the rebase and some corrections. The correct remediation for the commit 5caa3a0 ( NORETURN ) seems to be to add the function prototype to header fille - commit 2548130. (Used compiler is GCC version 7.4.0.)
I need to extend the ruby driver by XA transaction support ( OCITransStart, OCITransPrepare, OCITransForget, ...). Did you noticed the XA transaction support requirement any time before? |
Thanks. It was merged.
No. I have not used it and I had not been requested to support XA transaction. |
@tomasjura |
I started to study the xa resource manager interface ( methods in xa_switch_t structure ) and their relation to OCITrans* methods. I'm on the beginning, the relation are not very clear to me. Especially the recovery after an (unexpected) machine/process restart. |
I guess that they are similar but unrelated. OCITrans* functions looks available without XA. I found an example using xa_switch_t in old document. It is documented as Oracle XA. In the document it is stated that "Oracle Call Interface applications that use the Oracle XA library must not call On the other hand, examples about OCITransStart use I won't support Oracle XA in ruby-oci8 because it will need many modifications. On the other hand supporting OCITrans* functions will be relatively easy. |
Hi,
I was not able to compile the package on windows, there was a typo. Corrected in commit e56aca1
During the compilation there was some warnings. Corrected in commits 5caa3a0, 5aa6b66, d9980b2
Using fiddler for Win32 calls instead Win32API package. (commit b7beed1).
README.md file update so that the links on github page will be correctly displayed. commit 803793b and 5810488