From: Emmanuel Briot <briot.emmanuel@gmail.com>
Subject: Re: Many Database Connections
Date: Thu, 27 Jan 2011 13:37:19 -0800 (PST)
Date: 2011-01-27T13:37:19-08:00 [thread overview]
Message-ID: <88b03959-0d74-487b-9fcc-ab3a0dc6eab9@k14g2000pre.googlegroups.com> (raw)
In-Reply-To: 99d20061-de06-4383-8675-e1abd9803b0d@o10g2000vbg.googlegroups.com
> To clarify this, imagine that I have 2 Databases, DB1 and DB2. I have
> 2 Gnatcoll databases connectors pointing to each one, lets say DB1_Con
> for the connector to DB1, and DB2_Con for the other. I execute the
> query on DB1 by calling Execute (DB1_Con, "INSERT t1 ...."), then call
> the procedure Execute (DB2_Con, "INSERT t2..."). The second call to
> Execute will fail because it tried to insert in DB1 and since DB1 does
> not have a t2 table, it fails!!!
Please provide an actual reproducer, since it all depends how you
create
the connections. For instance, we need to see what you use for the
factory
in Get_Task_Connection (or maybe you do not use that to create the
connection)
Emmanuel
next prev parent reply other threads:[~2011-01-27 21:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-27 17:00 Many Database Connections Elie Zgheib
2011-01-27 21:37 ` Emmanuel Briot [this message]
2011-01-28 12:10 ` iloAda
2011-01-28 15:22 ` Emmanuel Briot
2011-01-31 14:12 ` iloAda
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox