From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: GNADE insert problem
Date: Wed, 31 Dec 2003 10:42:45 -0500
Date: 2003-12-31T10:42:45-05:00 [thread overview]
Message-ID: <IcqdnUE88qrrc2-iRVn-ug@comcast.com> (raw)
In-Reply-To: <pan.2003.12.31.12.12.14.788720@snafu.de>
Michael Erdmann wrote:
> Maybe there is some kind to simplifcation requiered for Ada 95 which
> could be provided by GNADE? Anny sutiable interface you want to propose?
...
>
>>My program as a few tasks, but only one of them is making SQL calls
>>(though now I think that maybe the initial connection is done from
>>another task... room for some experimentation). Good to be warned
>>though.
Maybe the best 'simplification' would be to define the SQL
cursor/environment as a per task attribute.
http://www.adaic.org/standards/95lrm/html/RM-C-7-2.html (Actually a
pointer to the (potentially shared) enviroment would probably be the
best implementation.)
That way a user who needed to care could insure that either different
tasks did have different (SQL) environments or shared a single environment.
I don't see any way to get rid of the (mental) pain of those cases where
you do need multiple active SQL cursors, but this way at least, the
simpler cases can be dealt with. Of course, I would implement things so
that there was a "default" environment that all tasks shared unless you
explicitly changed the SQL environment for a task by opening an SQL
session outside the environment task. (Note that the original poster is
doing that, which puts him at best in a currently undefined situation.)
The package that supports this could probably be made optional to
accomodate any compilers that don't support per task attributes.
--
Robert I. Eachus
"The war on terror is a different kind of war, waged capture by capture,
cell by cell, and victory by victory. Our security is assured by our
perseverance and by our sure belief in the success of liberty." --
George W. Bush
next prev parent reply other threads:[~2003-12-31 15:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-19 16:40 GNADE insert problem Jano
2003-12-20 1:55 ` Stephen Leake
2003-12-20 9:47 ` Jano
2003-12-20 18:35 ` Robert I. Eachus
2003-12-21 9:41 ` Jano
2003-12-21 10:37 ` Jano
2003-12-21 20:32 ` Robert I. Eachus
2003-12-31 12:12 ` Michael Erdmann
2003-12-31 15:42 ` Robert I. Eachus [this message]
2004-01-01 9:17 ` Michael Erdmann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox