We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d393405 commit 6e248ddCopy full SHA for 6e248dd
src/connection.cc
@@ -238,7 +238,7 @@ NAN_METHOD(Connection::Ftable) {
238
239
PGresult* res = self->lastResult;
240
241
- int table = PQftable(res, info[0]->Int32Value());
+ int table = PQftable(res, Nan::To<int32_t>(info[0]).FromJust());
242
243
info.GetReturnValue().Set(table);
244
}
@@ -249,7 +249,7 @@ NAN_METHOD(Connection::Ftablecol) {
249
250
251
252
- int tablecol = PQftablecol(res, info[0]->Int32Value());
+ int tablecol = PQftablecol(res, Nan::To<int32_t>(info[0]).FromJust());
253
254
info.GetReturnValue().Set(tablecol);
255
0 commit comments