Commit 5326f9c5 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor fix from Keith Sklower.

parent 8e4f925b
......@@ -67,7 +67,7 @@ sub UpdateTable($$$)
my $query_result =
DBQueryFatal("select distinct $oldslot from $table ".
"where ${newslot}='0'");
"where ${newslot}='0' or ${newslot} is null");
while (my ($oldvalue) = $query_result->fetchrow_array()) {
......@@ -94,7 +94,8 @@ sub UpdateTable($$$)
DBQueryFatal("update $table set ${newslot}='${idx}' ".
"where ${oldslot}='${oldvalue}' and ${newslot}='0'");
"where ${oldslot}='${oldvalue}' and ".
" (${newslot}='0' or ${newslot} is null)");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment