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

Build with NaN #43

Merged
merged 26 commits into from
May 26, 2015
Merged

Build with NaN #43

merged 26 commits into from
May 26, 2015

Conversation

Bigous
Copy link
Contributor

@Bigous Bigous commented Mar 10, 2015

Hi people,

This pull intend to solve issue #2 .

After some headaches, I could compile and run this driver wrapper with the NaN on IOJS 1.5.0 x64 on Windows.

I've tested only select commands and I need help to test everything, but it's usable.

We need some automated tests to see if all of this is working properly.

People who wanna run on IOJS on Windows, must run with iojs.exe and not node.exe due to a bug in iojs.

Hope have helped.
tks.
Richard

@cjbj
Copy link
Member

cjbj commented Mar 10, 2015

Fantastic! It would be great if you can sign the OCA (see CONTRIBUTING.md) so we can merge this.
Releasing a test suite is still backed up for non technical reasons out of my control.

@Bigous
Copy link
Contributor Author

Bigous commented Mar 10, 2015

Hi @cjbj

I've sent it a cuple of minutes ago.

Tks for your fast reply! ;)

@alexsantos
Copy link

Just compiled it on a OL6.6 x86_64 and it worked. Just some warnings on the examples.

[node@nodeserver oracle]$ iojs webapp.js 
sys is deprecated. Use util instead.
util.puts: Use console.log instead

@Bigous
Copy link
Contributor Author

Bigous commented Mar 10, 2015

Hi @alexsantos ,

The warning was in the examples and not in the driver wrapper itself.

I removed the sys dependency from webapp.js, just to be clean ;)

Tks for your help.

@alexsantos
Copy link

👍

@Bigous
Copy link
Contributor Author

Bigous commented Mar 16, 2015

I have merged the latest commits to this pull so it can flawlessly be merged.
Please, consider to merge it soon so we could avoid merge issues.

@lebolo
Copy link

lebolo commented Mar 16, 2015

👍

1 similar comment
@alexsantos
Copy link

👍

@cjbj
Copy link
Member

cjbj commented Mar 16, 2015

Hi @Bigous any merge will be some time off since the devs are busy continuing the other features (and projects) that they had already started and will need time to evaluate your patch. I was told your OCA form should be being processed this week. There are also some other administrative things pending, too. I'll let you know the progress.

@cjbj
Copy link
Member

cjbj commented Mar 20, 2015

@Bigous can you add the signoff on your commit? See https://github.com/oracle/node-oracledb/blob/master/CONTRIBUTING.md

@pkoretic
Copy link

👍
tested this on Ubuntu 14.10 with node 0.10, 0.12 and on Arch Linux with iojs 1.6.1.
It all works as expected in our tests

It would be nice to have it merged soon @Bigous @cjbj :)

@cjbj
Copy link
Member

cjbj commented Mar 24, 2015

@pkoretic thanks for the tests!

@Bigous Bigous mentioned this pull request Mar 27, 2015
Signed-off-by: Richard Natal <bigous@gmail.com>
Signed-off-by: Richard Natal <bigous@gmail.com>
@Bigous
Copy link
Contributor Author

Bigous commented Mar 31, 2015

@cjbj Merged to be easier to accept the pull.

@pkoretic
Copy link

@cjbj any news on this one? :)

@cjbj
Copy link
Member

cjbj commented Apr 14, 2015

@pkoretic our internal approval process is progressing, but is not complete. I think the biggest hurdles have been jumped (famous last words!)

@Bigous
Copy link
Contributor Author

Bigous commented Apr 24, 2015

Hi @cjbj ,
Any news on this one?

@cjbj
Copy link
Member

cjbj commented Apr 24, 2015

@Bigous approvals are still pending. I did some door knocking today to help nudge the issue along.

@Bigous
Copy link
Contributor Author

Bigous commented Apr 27, 2015

Ok, tks Chris

@hertzg
Copy link

hertzg commented May 3, 2015

Any updates?

@cjbj
Copy link
Member

cjbj commented May 3, 2015

@hertzg waiting on just one final approval.

@hertzg
Copy link

hertzg commented May 4, 2015

@cjbj Great! thx for update

Signed-off-by: Richard Natal <bigous@gmail.com>
@Bigous
Copy link
Contributor Author

Bigous commented May 11, 2015

@cjbj , I'm merging my fork with version 0.5 and got some warnings. almost all of them because DPI_SZ_TYPE to unsigned long when calling GetOutBinArray with executeBaton->rowsAffected...
I'll post my merge, but it could be a problem (in original code).

@cjbj
Copy link
Member

cjbj commented May 11, 2015

@Bigous I'll pass that on. Sorry we are still in a holding-pattern on official NAN support.

@fuson
Copy link

fuson commented May 16, 2015

@Bigous, i can't build your fork with this PR on Mac OS X (Node 12.2):

CXX(target) Release/obj.target/oracledb/src/njs/src/njsConnection.o
../src/njs/src/njsConnection.cpp:1254:49: error: conditional expression is ambiguous; 'Localv8::Primitive' can be converted to
'Localv8::String' and vice versa
( binds->ind[index] == -1 ) ? NanNull() :
^ ~~~~~~~~~
../src/njs/src/njsConnection.cpp:1261:48: error: conditional expression is ambiguous; 'Localv8::Primitive' can be converted to
'Localv8::Integer' and vice versa
(binds->ind[index] == -1 ) ? NanNull() :
^ ~~~~~~~~~
../src/njs/src/njsConnection.cpp:1266:48: error: conditional expression is ambiguous; 'Localv8::Primitive' can be converted to
'Localv8::Number' and vice versa
(binds->ind[index] == -1 ) ? NanNull() :
^ ~~~~~~~~~

Signed-off-by: Richard Natal <bigous@gmail.com>
@Bigous
Copy link
Contributor Author

Bigous commented May 18, 2015

Hi @fuson, I have been trying to keep the code as close to the original as possible, but, to solve this ambiguity, I had to change a little bit the code to avoid operator ?: together with NanNull().

I dont have a Mac to test. Could you see if it works for you?

tks.

cjbj added a commit that referenced this pull request May 26, 2015
@cjbj cjbj merged commit e55a108 into oracle:master May 26, 2015
@cjbj
Copy link
Member

cjbj commented May 26, 2015

Yay! Thanks @Bigous. There are still a few compile warnings on some versions of Linux we'll look at.

@hertzg
Copy link

hertzg commented May 26, 2015

Thanks @Bigous & @cjbj

@cjbj
Copy link
Member

cjbj commented May 26, 2015

@hertzg All credit is to @Bigous

@richlim I'm tagging you here since you explicitly mentioned NAN in #85. I hope you will be able to contribute to node-oracledb.

@Bigous
Copy link
Contributor Author

Bigous commented Jun 1, 2015

Hi @cjbj Thanks - you had a lot of effort to merge this one ;) almost a novel!

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

Successfully merging this pull request may close these issues.

8 participants