Hello, I'm working on writing a feed out to a db2 database. However when I run the code it crashes with the following output:
============================ SIGNAL SIGSEGV ============================The SPL for writing out is:
() as appendTable = ODBCAppend(DeFeedStream)
{
param
connection : "StreamsDB";
access : "FeedAccess";
connectionDocument : "./data/connections.xml";
}
The connection.xml is:
<connection_specifications>
<connection_specification name="StreamsDB" >
<ODBC database="streams" user="USER" password="PASS" />
</connection_specification>
</connection_specifications>
<access_specifications>
<access_specification name="FeedAccess">
<table tablename="MYTABLE" transaction_batchsize="1" rowset_size="1"/>
<uses_connection connection="StreamsDB" />
<native_schema>
<column name="TITLE" type="VARCHAR" length="250"/>
<column name="PRODUCT" type="VARCHAR" length="250"/>
<column name="ISSUE" type="VARCHAR" length="250"/>
<column name="PUBLISHED" type="VARCHAR" length="250"/>
<column name="DESCRIPTION" type="VARCHAR" length="1000"/>
</native_schema>
</access_specification>
</access_specifications>
Thanks for the help
Answer by AbdiD_CAS (1) | Jul 23, 2013 at 03:28 PM
Turns out I was missing a pair of header files in the db2 install folder. The issue wasnt reported until after a full clean of the project and even then it just appeared as if append table method wasn't compiling correctly. I copied them over from a different install of db2 and it worked out fine.