Skip to content

Commit

Permalink
fixed int parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Jan 6, 2010
1 parent b52c738 commit 562d760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
0.0701 2010-01-06
- Fixed SQL author tests.
- Fixed parsing of empty integers returned from SimpleDB.

0.0700 2010-01-05
- Added a count() method to the result set.
Expand Down
2 changes: 1 addition & 1 deletion lib/SimpleDB/Class/SQL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ A string that is composed of an integer + 1000000000 and then padded to have pre

sub parse_int {
my ($self, $value) = @_;
$value ||= 0;
$value ||= '000001000000000';
return $value-1000000000;
}

Expand Down

0 comments on commit 562d760

Please sign in to comment.