Hi,
I was wondering if anybody else had this problem, we are trying to parse a very messy OBX segment, that involves a bit of procedure work. I have written a transform that has a SQL insert statment.
Everything works fine... except nothing gets comitted to the Database, in fact when I run the SQL-Profiler there is no commit.
Script:
while(obxtree[i] != null)
{
logger.info("Looping: "+ i.toString());
set_id = obxtree[i]['OBX']['OBX.1'].toString();
query = "" ;
logger.info(query);
dbConn.executeUpdate(query);
dbConn.commit();
i=i+1;
logger.info("End Of Loop");
}
logger.info("Survived this one");
dbConn.commit();
dbConn.close();
logger.info("Close -- Exit");
The values are correcty populated... the Profiler picks it up and find the correct SQL being, with Autocommit on and Off nothing gets committed to the server
Server is SQL-2005, Mirth is version 1.3.2
I was wondering if anybody else had this problem, we are trying to parse a very messy OBX segment, that involves a bit of procedure work. I have written a transform that has a SQL insert statment.
Everything works fine... except nothing gets comitted to the Database, in fact when I run the SQL-Profiler there is no commit.
Script:
while(obxtree[i] != null)
{
logger.info("Looping: "+ i.toString());
set_id = obxtree[i]['OBX']['OBX.1'].toString();
query = "" ;
logger.info(query);
dbConn.executeUpdate(query);
dbConn.commit();
i=i+1;
logger.info("End Of Loop");
}
logger.info("Survived this one");
dbConn.commit();
dbConn.close();
logger.info("Close -- Exit");
The values are correcty populated... the Profiler picks it up and find the correct SQL being, with Autocommit on and Off nothing gets committed to the server
Server is SQL-2005, Mirth is version 1.3.2
Comment