Skip to content

Commit

Permalink
Fix Issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCrotaz committed Apr 6, 2016
1 parent e8a80eb commit 7a8517f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/AttributeValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,17 @@ function detectType(val) {
}

if (isstring(val))
return 'S';
{
// in Dynamo strings cannot be empty
if (val.length > 0)
{
return 'S';
}
else
{
return 'NULL';
}
}

if (isnumber(val))
return 'N';
Expand Down

0 comments on commit 7a8517f

Please sign in to comment.