Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update should handle false values like insert does

Looks like we missed this with
7a2a0f3.
  • Loading branch information...
commit b930706e521235d36431c1cadd36b3f97bbdedba 1 parent e4c6ca1
Sam Vilain authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/Tangram/Storage.pm
View
3  lib/Tangram/Storage.pm
@@ -768,7 +768,8 @@ sub _update
my @sql = $engine->get_update_statements($class);
printf $Tangram::TRACE ">-\n%s\n-- with\n /* (%s) */\n...\n",
$sql[$i],
- join(', ', map { $_ || 'NULL' } @state[ @{ $fields[$i] } ] )
+ join(', ', map { defined($_)?$dbh->quote($_):"NULL" }
+ @state[ @{ $fields[$i] } ] )
}
my $sth = $sths->[$i];
Please sign in to comment.
Something went wrong with that request. Please try again.