www.fromthevalley.com.au

DBD::Pg Transcations handleing

The default is to have AutoCommit set to 1.

To use transactions, you must have AutoCommit OFF:

      $dbh->{'AutoCommit'} = 0;

To save changes and commit:

      $dbh->commit();

To revert to where autocommit was taken off

       $dbh->rollback();

 Then after your finished remember to set AutoCommit:

    $dbh->{'AutoCommit'} = 1;

HOME |  AJAX |  APACHE |  Bizphone |  CSS |  DNS |  General |  Graphics |  HTML |  Hardware |  Javascript |  Linux |  MAC |  MS SQL |  Mail |  Microsoft |  OFFICE 365 |  Perl |  Postgres |  SEO |  Social Media |  VMware |  Windows 10