chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TODO list items
[ypp-sc-tools.main.git]
/
yarrg
/
db-idempotent-populate
diff --git
a/yarrg/db-idempotent-populate
b/yarrg/db-idempotent-populate
index 80ded466aefeb4ab89899fae5218dd7da2537e72..9d7bab06a426193a15ed073473d6fb85a0bee203 100755
(executable)
--- a/
yarrg/db-idempotent-populate
+++ b/
yarrg/db-idempotent-populate
@@
-120,6
+120,8
@@
END
;
foreach my $commod (sort keys %commods) {
my $c= $commods{$commod};
;
foreach my $commod (sort keys %commods) {
my $c= $commods{$commod};
+ die "no mass for $commod" unless defined $c->{Mass};
+ die "no colume for $commod" unless defined $c->{Volume};
my @qa= ($c->{Mass}, $c->{Volume}, $commod);
$insert->execute(@qa);
$update->execute(@qa);
my @qa= ($c->{Mass}, $c->{Volume}, $commod);
$insert->execute(@qa);
$update->execute(@qa);