return;
}
- # todo: get column names, do $hash{$primkey}{blah} = ...
- while (my @row = $sth->fetchrow_array) {
- # reverse it to make it easier to count.
- }
+ %retval = %{ $sth->fetchrow_hashref() };
$sth->finish;
}
#####
-# Usage: &dbReplace($table, %hash);
+# Usage: &dbReplace($table, $key %hash);
# Note: dbReplace does optional dbQuote.
sub dbReplace {
- my ($table, %hash) = @_;
+ my ($table, $key, %hash) = @_;
my (@keys, @vals);
foreach (keys %hash) {