From: | Shadkam Islam <shadkam(at)wipinfo(dot)soft(dot)net> |
---|---|
To: | pgsql-general(at)postgreSQL(dot)org |
Subject: | Problems with AutoCommit ... |
Date: | 1999-09-08 13:57:02 |
Message-ID: | Pine.LNX.3.96.990908190302.21552B-100000@trishul.wipinfo.soft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi All,
I am having problem in using AutoCommit...
The Environment:
~~~~~~~~~~~~~~~~
Slackware Linux 2.2.6
Perl 5.005_02
Postgres 6.5.1
DBI 1.13
DBD-Pg-0.92
The Connection Code:
~~~~~~~~~~~~~~~~~~~
($DBCONN = DBI->connect("dbi:Pg:dbname=$DBNAME;
host=$DBHOST;
port=$DBPORT",
$DBUSER,
$DBPASS,
{PrintError => 0, AutoCommit=>0}))
or (&GlobalErrorSet(-1)) ;
The Problem :
~~~~~~~~~~~~~
If the AutoCommit value is SET to '0' , The Database query is
failing after 2 or 3 SELECT queries are executed succefully.
Also, UPDATE, INSERT, and DELETE are failing.
If AutoCommit is SET to '1', Then all queries WORKS fine.
Solution Expected:
~~~~~~~~~~~~~~~~~~
1. Solution for the above problem
2. A way to use 'Commit' and 'Rollback' facility in Postgres database
with perl
3. Does DBI supports procedures? If so, how can we do it?
Expecting a favarouble reply
Thanks in Advance
Shadkam
From | Date | Subject | |
---|---|---|---|
Next Message | Natalya S. Makushina | 1999-09-08 14:00:23 | [GENERAL] GEQO and KSQO problem. |
Previous Message | The Hermit Hacker | 1999-09-08 04:30:51 | PostgreSQL User Gallery aka Registration Form ... |