Re: AutoCommit and DDL

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Don Drake <dondrake(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: AutoCommit and DDL
Date: 2005-02-27 19:54:34
Message-ID: 20050227195434.GA21745@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sun, Feb 27, 2005 at 11:55:37AM -0600, Don Drake wrote:

> I know it's not failing, I have the server logging the commands and
> there are no errors.
>
> The only change made was turning AutoCommit on.

Have you used any of DBI's tracing capabilities? Could you post a
simple test case? The following works for me with Perl 5.8.6, DBI
1.47, DBD::Pg 1.32, and PostgreSQL 7.4.7 on FreeBSD 4.11-STABLE:

#!/usr/bin/perl

use strict;
use warnings;
use DBI;

my $dbh = DBI->connect("dbi:Pg:dbname=test", "mfuhr", "", {AutoCommit => 0});
$dbh->do("CREATE TABLE foo (x integer)");
$dbh->commit;
$dbh->disconnect;

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message TJ O'Donnell 2005-02-27 23:26:07 SQL error: function round(double precision, integer) does not exist
Previous Message Don Drake 2005-02-27 17:55:37 Re: AutoCommit and DDL