Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from tojocky/master

corrected bug with converting to Number
  • Loading branch information...
commit 26009948c5cf5ae424db2d4730bdf88302c239e9 2 parents 39aab35 + 42645d2
@mariano authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  query.cc
View
2  query.cc
@@ -1238,7 +1238,7 @@ v8::Local<v8::Object> node_db::Query::row(node_db::Result* result, row_t* curren
value = v8::String::New(currentValue, currentLength)->ToInteger();
break;
case node_db::Result::Column::NUMBER:
- value = v8::Number::New(::atof(currentValue));
+ value = v8::String::New(currentValue, currentLength)->ToNumber();
break;
case node_db::Result::Column::TIME:
{
Please sign in to comment.
Something went wrong with that request. Please try again.