From: | "Campbell, Scott" <scampbell1(at)mtt(dot)ca> |
---|---|
To: | "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org> |
Subject: | problems with transactions |
Date: | 2000-08-31 12:43:52 |
Message-ID: | ED7A447524CCD311A9BF009027DC86ED011E39FD@NSEXCH02 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I'm having problems opening a transaction through perl DBI
When I try to execute "begin work" using the DBI prepare and execute
functions I get an error:
$sth = $dbh->prepare("begin work");
$sth->execute();
returns this error when I run the perl script from a prompt:
please use DBI functions for transaction handling at
/usr/lib/perl5/site_perl/5.
005/i386-linux/DBD/Pg.pm line 114, <STDIN> chunk 2.
Can't call method "execute" on an undefined value
after seeing this I assumed that you just can't use the begin statement
accross the DBI but there has to be a way of opening a transaction (it even
says so in the error I got) ... I'm just not sure how.
can someone please shed some light on this... I've looked through the
archives but didn't find anything constructive.
Thanks
Scott
From | Date | Subject | |
---|---|---|---|
Next Message | Jules Bean | 2000-08-31 13:17:43 | Re: Error with tcp/ip networking |
Previous Message | Robert Kernell | 2000-08-31 12:37:58 | upgrading postgres |