Re: ODBC & v7.0(Rel) Errors with Users and Databases - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: ODBC & v7.0(Rel) Errors with Users and Databases
Date
Msg-id Pine.LNX.4.21.0005162235320.362-100000@localhost.localdomain
Whole thread Raw
In response to ODBC & v7.0(Rel) Errors with Users and Databases  (Dave Page <dpage@vale-housing.co.uk>)
List pgsql-hackers
Dave Page writes:

> ERROR:  DROP DATABASE: May not be called in a transaction block

This command can't be rolled back so you aren't allowed to try. This was
thought as an improvement. In general, a database isn't a database object
so one shouldn't be transacting around with them. (Same goes for users.)

> The ODBC log (and knowledge that it isn't pgAdmin or M$ ADO) shows that the
> ODBC driver is automatically wrapping the query in a transaction. 

I don't know anything about ODBC but it certainly should provide a means
to execute a command without that wrapping block. Is this a special
function or do you just execute some exec("DROP DATABASE") style call?


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Using triggers with non-C functions
Next
From: Peter Eisentraut
Date:
Subject: Re: Proposal for fixing numeric type-resolution issues