Re: Large Objects; ODBC & Transactions - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: Large Objects; ODBC & Transactions
Date
Msg-id 3BEF25B2.2C9DF09B@tpf.co.jp
Whole thread Raw
In response to Large Objects; ODBC & Transactions  ("Mike Miller" <mmiller@pooka.otago.ac.nz>)
List pgsql-odbc
Mike Miller wrote:
>
> First it was ODBC & Transactions; now I've added Large Objects into the
> soup!
>
> I'm using the a modified version of the VB code (POSTGRESQL, LO and VISUAL
> BASIC MINI-HOWTO) by Denis Gasparin found at
> http://odbc.postgresql.org/ftpsite/odbc/pgsql-lo-vb-MiniHowto.txt
>
> When trying to update a table with the code I get the error message :-
>
> Could not begin (in-line) a transaction
>
> *if* I have *already* started a transaction.

You had better use BeginTrans to set autocommit off mode.
It isn't a recommended way to issue "BEGIN" directly.

regards,
Hiroshi Inoue

pgsql-odbc by date:

Previous
From: "Mike Miller"
Date:
Subject: Large Objects; ODBC & Transactions
Next
From: Dave Page
Date:
Subject: Re: Last inserted id