Re: Large Objects; ODBC & Transactions

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Mike Miller <mmiller(at)pooka(dot)otago(dot)ac(dot)nz>
Cc: "Pgsql-Odbc(at)Postgresql(dot) Org" <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Large Objects; ODBC & Transactions
Date: 2001-11-12 01:28:18
Message-ID: 3BEF25B2.2C9DF09B@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Bruce Momjian 2001-11-12 01:49:57 Re: [ODBC] MD5 support for ODBC
Previous Message Hiroshi Inoue 2001-11-12 01:02:05 Re: [ODBC] MD5 support for ODBC