Permalink
Browse files

Merge pull request #4 from tojocky/master

corrected bug with converting to Number
  • Loading branch information...
2 parents 39aab35 + 42645d2 commit 26009948c5cf5ae424db2d4730bdf88302c239e9 @mariano committed Nov 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 query.cc
View
@@ -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:
{

0 comments on commit 2600994

Please sign in to comment.