chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
abolish $dbh global in Mason code to shorten db connection lifetime
[ypp-sc-tools.web-live.git]
/
yarrg
/
web
/
pirates
diff --git
a/yarrg/web/pirates
b/yarrg/web/pirates
index 158239dd5a7a98cbcb57088f0b1cb7a8601e23a3..6a3c47889fead82686fa712bb4091c19612b7209 100644
(file)
--- a/
yarrg/web/pirates
+++ b/
yarrg/web/pirates
@@
-54,6
+54,5
@@
$sth->execute();
<%init>
use CommodsWeb;
<%init>
use CommodsWeb;
-db_setocean('Midnight');
-db_connect();
+my $dbh= dbw_connect('Midnight');
</%init>
</%init>