File Reference : test030.ksh
I have Run the following under test / cache / CacheTable directory
[lakshya@localhost CacheTable]$export DSN=myodbc3
[lakshya@localhost CacheTable]$REL_PATH=.isql $DSN < ${REL_PATH}/createt5.sql
[lakshya@localhost CacheTable]$rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db
[lakshya@localhost CacheTable]$touch /tmp/csql/csqltable.conf /tmp/csql/csql.db
Created a file say x.ksh. The contents of this file is as follows
for((a=5;a<=6;a++))
do
echo "insert into t$a values(16,20);"
echo "insert into t$a values(15,21);"
done>>insertt5t6.sql
After creating this file, Execute this x.ksh file as
[lakshya@localhost CacheTable]$./x.ksh
[lakshya@localhost CacheTable]$isql $DSN < insertt5t6.sql
Started the csqlserver in another SHELL
Executed the command (csql -g -s insertt5t6.sql ) with valgrind tool as
[lakshya@localhost CacheTable]$ valgrind --tool=memcheck --leak-check=full --show-reachable=yes csql -g -s insertt5t6.sql
And i found Conditional jump or move depends on uninitialised value(s)
Error Summary :
==27949== Conditional jump or move depends on uninitialised value(s)
==27949== at 0x4088CEB: SqlOdbcConnection::beginTrans(IsolationLevel, TransSyncMode) (SqlOdbcConnection.cxx:90)
==27949== by 0x409001F: SqlGwConnection::beginTrans(IsolationLevel, TransSyncMode) (SqlGwConnection.cxx:56)
==27949== by 0x8049AEC: main (isql.cxx:107)