From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: Compiling GNATColl on Windows
Date: Tue, 16 Dec 2014 00:14:07 +0100
Date: 2014-12-16T00:14:07+01:00 [thread overview]
Message-ID: <m6nps6$jmt$1@dont-email.me> (raw)
In-Reply-To: <1ifoukt5d2s2z$.6d9y7y2fiufo$.dlg@40tude.net>
On 2014-12-15 23:37, Dmitry A. Kazakov wrote:
> No need to fiddle with cursors explicitly and nothing to commit, if only
> reading.
hmm, yes. I got the spec from work, where we use Oracle
and Ms-sql-server from win and Aix.
I wanted the pg-interface to be code compatible,
with that, for future use. - If we ever start using pg at work.
The idea is that any interaction with the db, with no transaction,
is a sign of error. Thats why a transaction is needed.
Good or bad, that is the reason, libpq itself need no transaction for
read-only.
> ODBC has a lot of problems, but it usually is simpler than native clients.
I've had problems using a cursor in a cursor with ODBC.
T.Start;
Stm.Set("A",Some_Value);
Stm.Open_Cursor;
Stm.Fetch(End_Of_Set);
If not End_of_set then
Stm.Get("COL1",Some_Variable);
Stm2.Set("COL3", Some_Variable) -- use value from stm in stm2
Stm2.Execute; <-- bang - crash
end if;
Stm.Close_Cursor;
T.Commit;
Turned out I had to enable mars - multiple active recordset
But did not work on unix-odbc from linux with sql-server.
And I do not even dare to try it on AIX.
Native client however, works fine.
But for windows, perhaps odbc is a better choise
--
Björn
next prev parent reply other threads:[~2014-12-15 23:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 13:06 Compiling GNATColl on Windows mhardeman25
2014-12-15 13:25 ` Michael Hardeman
2014-12-15 15:47 ` David Botton
2014-12-15 15:49 ` David Botton
2014-12-15 16:10 ` Michael Hardeman
2014-12-15 21:55 ` Björn Lundin
2014-12-15 22:37 ` Dmitry A. Kazakov
2014-12-15 23:14 ` Björn Lundin [this message]
2014-12-16 8:48 ` Björn Lundin
2014-12-16 10:10 ` Dmitry A. Kazakov
2014-12-16 10:21 ` Björn Lundin
2014-12-15 23:00 ` Björn Lundin
2014-12-15 16:09 ` Michael Hardeman
2014-12-15 19:46 ` Shark8
2014-12-16 17:50 ` Michael Hardeman
2014-12-16 20:27 ` Björn Lundin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox