chiark / gitweb /
Pass $dbh down through the stack, for better lifetime
[ypp-sc-tools.db-test.git] / yarrg / web / query_commod
index eddc0975d05f067358c6835a81710d97f8039b8d..9cb14ca6870e70abf887b518f2e9698313d67158 100644 (file)
@@ -35,6 +35,7 @@
 </%doc>
 <%args>
 $quri
+$dbh
 $commodstring => '';
 $someresults
 $emsgokorprint
@@ -56,7 +57,8 @@ Enter commodity (abbreviations are OK):<br>
 
 <form action="<% $quri->() |h %>" method="get">
 
-<&| qtextstring, qa => $qa, thingstring => 'commodstring', emsgstore => \$emsg,
+<&| qtextstring, qa => $qa, dbh => $dbh,
+    thingstring => 'commodstring', emsgstore => \$emsg,
     perresult => sub { ($commodname,$commodid)= @_; }
  &>
  size=80