From 566f6f19e6e20837fe4035d3c4a28f0db79ad50c Mon Sep 17 00:00:00 2001 From: kishoramballi Date: Tue, 3 Feb 2009 06:27:12 +0000 Subject: [PATCH] table->close is changed with table->closeScan --- test/dbapi/Connection/conntest10.c | 4 ++-- test/dbapi/Connection/conntest11.c | 6 +++--- test/dbapi/Connection/conntest12.c | 6 +++--- test/dbapi/Connection/conntest13.c | 6 +++--- test/dbapi/Connection/conntest14.c | 2 +- test/dbapi/Connection/conntest15.c | 4 ++-- test/dbapi/Connection/conntest16.c | 4 ++-- test/dbapi/Connection/conntest17.c | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/test/dbapi/Connection/conntest10.c b/test/dbapi/Connection/conntest10.c index bed3f398..d0168997 100644 --- a/test/dbapi/Connection/conntest10.c +++ b/test/dbapi/Connection/conntest10.c @@ -61,9 +61,9 @@ int main() } conn.commit(); - table->close(); + table->closeScan(); dbMgr->closeTable(table); dbMgr->dropTable("t1"); - printf("test passed successfully"); + printf("test passed successfully\n"); return 0; } diff --git a/test/dbapi/Connection/conntest11.c b/test/dbapi/Connection/conntest11.c index 7ae46872..c423b2c6 100644 --- a/test/dbapi/Connection/conntest11.c +++ b/test/dbapi/Connection/conntest11.c @@ -72,7 +72,7 @@ int main() } conn.commit(); - rv=table->close(); + rv=table->closeScan(); if(rv!=OK){ printf("Error in closing the table\n"); return 3;} Condition p1; @@ -101,7 +101,7 @@ int main() // icount++; } conn.commit(); - table->close(); + table->closeScan(); conn.startTransaction(); @@ -128,7 +128,7 @@ int main() //unset the condtion set as we need to delete all rows table->setCondition(NULL); - table->close(); + table->closeScan(); dbMgr->closeTable(table); dbMgr->dropTable("t1"); conn.close(); diff --git a/test/dbapi/Connection/conntest12.c b/test/dbapi/Connection/conntest12.c index ee07ae43..24858d43 100644 --- a/test/dbapi/Connection/conntest12.c +++ b/test/dbapi/Connection/conntest12.c @@ -72,7 +72,7 @@ int main() } conn.commit(); - rv=table->close(); + rv=table->closeScan(); if(rv!=OK){ printf("Error in closing the table\n"); return 3;} Condition p1; @@ -99,7 +99,7 @@ int main() table->deleteTuple(); } conn.commit(); - table->close(); + table->closeScan(); conn.startTransaction(); @@ -126,7 +126,7 @@ int main() //unset the condtion set as we need to delete all rows table->setCondition(NULL); - table->close(); + table->closeScan(); dbMgr->closeTable(table); dbMgr->dropTable("t1"); conn.close(); diff --git a/test/dbapi/Connection/conntest13.c b/test/dbapi/Connection/conntest13.c index 6438aa3c..a43900d2 100644 --- a/test/dbapi/Connection/conntest13.c +++ b/test/dbapi/Connection/conntest13.c @@ -71,7 +71,7 @@ int main() return 5; } } - table->close(); + table->closeScan(); printf("Updated successfully\n"); //Delets the tuple having f1=8 @@ -102,7 +102,7 @@ int main() return 6; } } - table->close(); + table->closeScan(); printf("Deleted successfully"); conn.commit(); @@ -119,7 +119,7 @@ int main() } conn.commit(); - table->close(); + table->closeScan(); dbMgr->closeTable(table); dbMgr->dropTable("t1"); conn.close(); diff --git a/test/dbapi/Connection/conntest14.c b/test/dbapi/Connection/conntest14.c index 04fd6e62..61108d1c 100644 --- a/test/dbapi/Connection/conntest14.c +++ b/test/dbapi/Connection/conntest14.c @@ -59,7 +59,7 @@ int main() printf("\nBinded Tuple value is %d %s", id, name); } - table->close(); + table->closeScan(); dbMgr->closeTable(table); dbMgr->dropTable("t1"); conn.close(); diff --git a/test/dbapi/Connection/conntest15.c b/test/dbapi/Connection/conntest15.c index 4cc7fcec..f951d2a9 100644 --- a/test/dbapi/Connection/conntest15.c +++ b/test/dbapi/Connection/conntest15.c @@ -60,7 +60,7 @@ int main() } printf("Updated tuple value is %d %s",id,name); } - table->close(); + table->closeScan(); conn.rollback(); table->setCondition(NULL); table->execute(); @@ -71,7 +71,7 @@ int main() printf("\nBinded Tuple value is %d %s", id, name); } - table->close(); + table->closeScan(); dbMgr->closeTable(table); dbMgr->dropTable("t1"); conn.close(); diff --git a/test/dbapi/Connection/conntest16.c b/test/dbapi/Connection/conntest16.c index adb3f93c..744f46e1 100644 --- a/test/dbapi/Connection/conntest16.c +++ b/test/dbapi/Connection/conntest16.c @@ -60,7 +60,7 @@ int main() } // printf("Updated tuple value is %d %s",id,name); } - table->close(); + table->closeScan(); conn.rollback(); table->setCondition(NULL); table->execute(); @@ -71,7 +71,7 @@ int main() printf("\nBinded Tuple value is %d %s", id, name); } - table->close(); + table->closeScan(); dbMgr->closeTable(table); dbMgr->dropTable("t1"); conn.close(); diff --git a/test/dbapi/Connection/conntest17.c b/test/dbapi/Connection/conntest17.c index 57306a5b..e9d9e2bb 100644 --- a/test/dbapi/Connection/conntest17.c +++ b/test/dbapi/Connection/conntest17.c @@ -71,7 +71,7 @@ int main() return 5; } } - table->close(); + table->closeScan(); printf("Updated successfully\n"); //Delets the tuple having f1=8 @@ -102,7 +102,7 @@ int main() return 6; } } - table->close(); + table->closeScan(); printf("Deleted successfully"); conn.rollback(); @@ -121,7 +121,7 @@ int main() } conn.commit(); - table->close(); + table->closeScan(); dbMgr->closeTable(table); dbMgr->dropTable("t1"); conn.close(); -- 2.11.4.GIT