]> ruin.nu Git - ndwebbie.git/blobdiff - ND.pm
connection to db is done in handler, so should do potential rollback and disconnect...
[ndwebbie.git] / ND.pm
diff --git a/ND.pm b/ND.pm
index 50629e8efab535a072d2558359579659b1f959bd..28bd90ea0a177f5281b9deddd327cd33ec2f4810 100755 (executable)
--- a/ND.pm
+++ b/ND.pm
@@ -46,6 +46,9 @@ sub handler {
        $page = ND::Web::Page->new(PAGE => $page, DBH => $ND::DBH, URI => $ENV{REQUEST_URI});
        $page->render;
 
+       $ND::DBH->rollback unless $ND::DBH->{AutoCommit};
+       $ND::DBH->disconnect;
+
        return Apache2::Const::OK;
 }