HugoLeitao
Programmer
Hi,
I've the following situation:
Database Tables :
* Clients | Cols: Number (serial) , Name (Char 20)
* History | Cols: ClientNumber (integer),testing (char 10)
---------------------------------------------------------
The column number it's related with the column ClientNumber
in the History table.
MTS:
I've Component X with a function that :
- opens a connection, insert a new client , close the
connection and call setcomplete.
I've a component Y with a function that receives
a client number, opens a connection, execute an insert
statement on table history with the client number, close
the connection and call setcomplete.
Now I'm trying to develop a component that :
- call both functions from the other components
- call setcomplete.
All the components have the transaction property set
to "Requires transaction".
The problem is that when I call the function of the
component Y I catch this error:
"[Informix][Informix ODBC Driver][Informix]
Missing key in referenced table for referential
constraint (informix.historyclient)."
With the SQL server as the backend the second function
is able to see the new Client but with Informix the
component Y doesn't seem to be enlisted in the new
transaction.
Any comment or suggestion ?
Tanks for further help.
Hugo
I've the following situation:
Database Tables :
* Clients | Cols: Number (serial) , Name (Char 20)
* History | Cols: ClientNumber (integer),testing (char 10)
---------------------------------------------------------
The column number it's related with the column ClientNumber
in the History table.
MTS:
I've Component X with a function that :
- opens a connection, insert a new client , close the
connection and call setcomplete.
I've a component Y with a function that receives
a client number, opens a connection, execute an insert
statement on table history with the client number, close
the connection and call setcomplete.
Now I'm trying to develop a component that :
- call both functions from the other components
- call setcomplete.
All the components have the transaction property set
to "Requires transaction".
The problem is that when I call the function of the
component Y I catch this error:
"[Informix][Informix ODBC Driver][Informix]
Missing key in referenced table for referential
constraint (informix.historyclient)."
With the SQL server as the backend the second function
is able to see the new Client but with Informix the
component Y doesn't seem to be enlisted in the new
transaction.
Any comment or suggestion ?
Tanks for further help.
Hugo