pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Knigge <Michael.Knigge@SET-Software.de>
To: pgsql-odbc@postgresql.org
Subject: How to force an Option?
Date: Wed, 16 Apr 2008 13:38:57 +0200
Message-ID: <4805E551.7080405@SET-Software.de> (raw)

All,

yesterday we've discovered a little problem with our application within
a bunch of statements, like

BEGIN
SELECT ...
UPDATE ...
SELECT ...
UPDATE ...
COMMIT

we've discovered that the ODBC-Driver issues a ROLBACK when doing a
SQLPrepare() for the second SELECT - and so the first UPDATE will never
hit the database.

After playing around we've discovered that everything is ok if we enable
"Server Side Prepare" or "Disallow Premature".

Now the question is: Is it possible to force this options? Something
like a "SET server_site_prepare = 1;" after the connection is established?

Or is it possible to check if this option is in effect (so I could abort
the application with an error message)? Currently we do a SQLConnect()
so we don't have a Connect-String that could be parsed for an option...


Thank you for any help,
Michael





Message-ID: <4805E551.7080405@SET-Software.de>
Permalink:  ../4805E551.7080405@SET-Software.de/
Also on:    postgresql.org/message-id/4805E551.7080405@SET-Software.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: Michael.Knigge@SET-Software.de
  Subject: Re: How to force an Option?
  In-Reply-To: <4805E551.7080405@SET-Software.de>
  References: <4805E551.7080405@SET-Software.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox