Permalink
Browse files

update should handle false values like insert does

Looks like we missed this with
7a2a0f3.
  • Loading branch information...
Sam Vilain
Sam Vilain committed Oct 26, 2006
1 parent e4c6ca1 commit b930706e521235d36431c1cadd36b3f97bbdedba
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Tangram/Storage.pm
View
@@ -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];

0 comments on commit b930706

Please sign in to comment.