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

call of overloaded ‘New(SQLINTEGER&)’ is ambiguous #98

Open
danlakey opened this issue Oct 21, 2015 · 2 comments
Open

call of overloaded ‘New(SQLINTEGER&)’ is ambiguous #98

danlakey opened this issue Oct 21, 2015 · 2 comments

Comments

@danlakey
Copy link

Hello, I'm having issues on the node-gyp build command. I receive the following error message:

./src/odbc.cpp: In static member function ‘static v8::Local<v8::Object> ODBC::GetSQLError(SQLSMALLINT, void*, char*)’:
../src/odbc.cpp:888: error: call of overloaded ‘New(SQLINTEGER&)’ is ambiguous
../node_modules/nan/nan_new.h:270: note: candidates are: v8::Local<v8::Boolean> Nan::New(bool)
../node_modules/nan/nan_new.h:276: note:                 v8::Local<v8::Int32> Nan::New(int32_t)
../node_modules/nan/nan_new.h:282: note:                 v8::Local<v8::Uint32> Nan::New(uint32_t)
../node_modules/nan/nan_new.h:288: note:                 v8::Local<v8::Number> Nan::New(double)
../node_modules/nan/nan_new.h:294: note:                 Nan::MaybeLocal<v8::String> Nan::New(const std::string&) <near match>
../node_modules/nan/nan_new.h:312: note:                 Nan::MaybeLocal<v8::String> Nan::New(const char*) <near match>
../node_modules/nan/nan_new.h:318: note:                 Nan::MaybeLocal<v8::String> Nan::New(const uint16_t*) <near match>
../node_modules/nan/nan_new.h:324: note:                 Nan::MaybeLocal<v8::String> Nan::New(v8::String::ExternalStringResource*) <near match>
../node_modules/nan/nan_new.h:330: note:                 Nan::MaybeLocal<v8::String> Nan::New(Nan::ExternalOneByteStringResource*) <near match>

I've been searching online the past few days and cannot find any helpful information with this similiar error.

I've running CentOS version 6.7
Node v0.10.36
node-gyp v3.0.3
unixODBC v2.3.4

I can successfully connect to my databases via the ODBC drives by using the 'isql' command. Any help on how I can get this odbc-node driver build for my project would be much appreciated. Thank you,

@wankdanker
Copy link
Collaborator

Is there any chance you could upgrade to node v0.10.37? Or use [email protected].

@wankdanker
Copy link
Collaborator

Reason being: I think the issue you are getting is because the version nan we use is not compatible with 0.10.36. But, it is compatible with v0.10.37 (at least it builds for me).

Also, [email protected] does not use nan and is compatible with 0.10.x by itself.

clach04 pushed a commit to clach04/node-odbc__DO_NOT_USE that referenced this issue Dec 17, 2020
Add additional information from SQLDescribCol (columnSize, decimalDigits, nullable) on result sets

Resolves w1nk#98

Signed-off-by: Mark Irish <[email protected]>
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

2 participants