Skip to content
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

No work on 0.12 #254

Open
danielb2 opened this issue Mar 27, 2015 · 16 comments
Open

No work on 0.12 #254

danielb2 opened this issue Mar 27, 2015 · 16 comments

Comments

@danielb2
Copy link

Works fine on 0.10 but alas ...

I don't see any other issues open on this; did I miss something?

Now using node v0.12.0
[daniel@nero]--(14:02:24)
[~/t/ofs]$ make install
bash: export DYLD_LIBRARY_PATH='/Users/daniel/tmp/ofs/oracle/instantclient'
fish: set -x DYLD_LIBRARY_PATH '/Users/daniel/tmp/ofs/oracle/instantclient'
npm WARN package.json ofs@1.0.0 No description
npm WARN package.json ofs@1.0.0 No repository field.
npm WARN package.json ofs@1.0.0 No README data
\
> oracle@0.3.8 install /Users/daniel/tmp/ofs/node_modules/oracle
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/oracle_bindings/src/connection.o
In file included from ../src/connection.cpp:4:
../src/commitBaton.h:14:14: error: no member named 'Dispose' in 'v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >'
    callback.Dispose();
    ~~~~~~~~ ^
In file included from ../src/connection.cpp:5:
../src/rollbackBaton.h:14:14: error: no member named 'Dispose' in 'v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >'
    callback.Dispose();
    ~~~~~~~~ ^
../src/connection.cpp:19:53: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'uni::CallbackType (const uni::FunctionCallbackInfo &)'
@oebspm
Copy link

oebspm commented Apr 10, 2015

The compilation error is in this file: https://github.com/joeferner/node-oracle/blob/master/src/commitBaton.h

It's explained here how you should write the code for Node 0.12.
https://strongloop.com/strongblog/node-js-v0-12-c-apis-breaking/

Can somebody please fix it?

@ericwaldheim
Copy link
Contributor

strong-oracle runs on 0.12. This one appears to be done.

@danielb2
Copy link
Author

thanks @ericwaldheim ! Just what I needed. They seem compatible too so I'm just using that driver instead now. This one's dead it seems.

@danielb2
Copy link
Author

Also looks like the docs for this driver has been updated to say as much and refers to an official oracle driver

https://github.com/oracle/node-oracledb

@oebspm
Copy link

oebspm commented Apr 13, 2015

I tried strong-oracle on 0.12, it works, but much slower. I'm currently investigating why. But fixing this driver is still a good idea.

@ericwaldheim
Copy link
Contributor

(I doubt that will happen but FYI I long ago submitted a pull request to get it running with nan #223)

@johannish
Copy link
Collaborator

@ericwaldheim @oebspm If either of you are interested in commit access, joeferner would be more than happy to add you as a contributor. So far no one has stepped up.

#223 has not been merged because there is a conflict (perhaps minor) and I no longer have the time to invest in maintaining this driver.

@masopmac
Copy link

I have this compiling with node-gyp and running on node v4.1.2 . Might be a starting point for anyone who wants to use it. I haven't tested the new buffer code for the BLOBs but everything else seems to work.

@mrlannigan
Copy link

@masopmac I am very interested.

@cjbj
Copy link

cjbj commented Nov 21, 2015

@masopmac @mrlannigan I know you might have hard-to-migrate code bases, but what features in the other driver https://github.com/oracle/node-oracledb do you need for it to be a viable replacement?

@masopmac
Copy link

@cjbj It was the hard-to-migrate code bases as you mentioned. I haven't tested node-oracledb at all.

@mrlannigan
Copy link

@cjbj i also have a hard-to-migrate code base. But really I just need this driver to compile to node 4. I have the migration planned out, it's just I'm stuck on 0.10 until I can either get this driver compiling or moving to oracledb.

@masopmac
Copy link

Julian, I emailed you everything you need to compile it.

On Nov 21, 2015, at 9:03 AM, Julian Lannigan notifications@github.com wrote:

@cjbj i also have a hard-to-migrate code base. But really I just need this driver to compile to node 4. I have the migration planned out, it's just I'm stuck on 0.10 until I can either get this driver compiling or moving to oracledb.


Reply to this email directly or view it on GitHub.

@cjbj
Copy link

cjbj commented Nov 23, 2015

@masopmac @mrlannigan when you get a chance to look at it, let me know your wishlist.

@mrlannigan
Copy link

@masopmac I haven't received anything?

@masopmac
Copy link

@mrlannigan sent to the email in your github profile. Let me know if there is a better place to send.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants