From 3fc5ac24b529bd48b393989feef586231ea35239 Mon Sep 17 00:00:00 2001 From: prabatuty Date: Thu, 4 Nov 2010 10:53:05 +0000 Subject: [PATCH] adding test scripts --- test/CacheTestModules | 25 + test/Makefile | 23 + test/TestModules | 78 ++ test/cache/Durability/create_insert_at_csql.sql | 7 + test/cache/Durability/create_insert_attdb.sql | 7 + test/cache/Durability/csql.conf | 141 +++ test/cache/Durability/delete7_atsite1.sql | 1 + test/cache/Durability/drop_t1.sql | 1 + test/cache/Durability/exp.test001.ksh | 46 + test/cache/Durability/exp.test001.ksh.SunOS | 44 + test/cache/Durability/exp.test001.ksh.psql | 46 + test/cache/Durability/exp.test001.ksh.x86_64 | 46 + test/cache/Durability/exp.test002.ksh | 84 ++ test/cache/Durability/exp.test002.ksh.SunOS | 82 ++ test/cache/Durability/exp.test002.ksh.psql | 84 ++ test/cache/Durability/exp.test002.ksh.x86_64 | 84 ++ test/cache/Durability/exp.test004..ksh.SunOS | 105 ++ test/cache/Durability/exp.test004.ksh | 111 +++ test/cache/Durability/exp.test004.ksh.psql | 110 +++ test/cache/Durability/insert5_atsite1.sql | 6 + test/cache/Durability/noncached_delete_t2.sql | 1 + test/cache/Durability/noncached_insert_t2.sql | 6 + test/cache/Durability/noncached_table_t2.sql | 7 + test/cache/Durability/noncached_update_t2.sql | 1 + test/cache/Durability/select_t1.sql | 1 + test/cache/Durability/test001.ksh | 127 +++ test/cache/Durability/test002.ksh | 261 +++++ test/cache/Durability/test004.ksh | 246 +++++ test/cache/Durability/update5_atsite1.sql | 1 + test/cache/FailOver/Makefile | 106 ++ test/cache/FailOver/csql.conf | 117 +++ test/cache/FailOver/csqldb2input.sql | 5 + test/cache/FailOver/csqlinput.sql | 5 + test/cache/FailOver/csqlinputt3.sql | 11 + test/cache/FailOver/db2inputtest1.sql | 11 + test/cache/FailOver/db2inputtest2.sql | 11 + test/cache/FailOver/deleteconncsqldown.c | 53 + test/cache/FailOver/deleteexeccsqldown.c | 53 + test/cache/FailOver/deleteprepcsqldown.c | 53 + test/cache/FailOver/dropall.sql | 100 ++ test/cache/FailOver/dropt1t2.sql | 2 + test/cache/FailOver/exp.test003.ksh | 33 + test/cache/FailOver/exp.test003.ksh.psql | 33 + test/cache/FailOver/exp.test004a.ksh | 8 + test/cache/FailOver/exp.test004b.ksh | 8 + test/cache/FailOver/exp.test004c.ksh | 8 + test/cache/FailOver/exp.test004d.ksh | 8 + test/cache/FailOver/exp.test006a.ksh | 8 + test/cache/FailOver/exp.test006b.ksh | 8 + test/cache/FailOver/exp.test006c.ksh | 8 + test/cache/FailOver/exp.test006d.ksh | 8 + test/cache/FailOver/exp.test008a.ksh | 8 + test/cache/FailOver/exp.test008b.ksh | 8 + test/cache/FailOver/exp.test008c.ksh | 8 + test/cache/FailOver/exp.test008d.ksh | 8 + test/cache/FailOver/insertconncsqldown.c | 60 ++ test/cache/FailOver/insertconncsqldownora.c | 51 + test/cache/FailOver/insertexeccsqldown.c | 60 ++ test/cache/FailOver/insertexeccsqldownora.c | 51 + test/cache/FailOver/insertprepcsqldown.c | 60 ++ test/cache/FailOver/insertprepcsqldownora.c | 51 + test/cache/FailOver/mysqlinputtest1.sql | 11 + test/cache/FailOver/mysqlinputtest2.sql | 11 + test/cache/FailOver/selectconncsqldown.c | 52 + test/cache/FailOver/selectexeccsqldown.c | 52 + test/cache/FailOver/selectprepcsqldown.c | 52 + test/cache/FailOver/sybaseinputtest1.sql | 11 + test/cache/FailOver/sybaseinputtest2.sql | 11 + test/cache/FailOver/test003.ksh | 66 ++ test/cache/FailOver/test004a.ksh | 103 ++ test/cache/FailOver/test004b.ksh | 112 +++ test/cache/FailOver/test004c.ksh | 105 ++ test/cache/FailOver/test004d.ksh | 109 ++ test/cache/FailOver/test006a.ksh | 103 ++ test/cache/FailOver/test006b.ksh | 121 +++ test/cache/FailOver/test006c.ksh | 121 +++ test/cache/FailOver/test006d.ksh | 107 ++ test/cache/FailOver/test008a.ksh | 112 +++ test/cache/FailOver/test008b.ksh | 118 +++ test/cache/FailOver/test008c.ksh | 119 +++ test/cache/FailOver/test008d.ksh | 105 ++ test/cache/FailOver/updateconncsqldown.c | 53 + test/cache/FailOver/updateconncsqldownora.c | 53 + test/cache/FailOver/updateexeccsqldown.c | 53 + test/cache/FailOver/updateexeccsqldownora.c | 53 + test/cache/FailOver/updateprepcsqldown.c | 53 + test/cache/FailOver/updateprepcsqldownora.c | 53 + test/cache/Gateway/complex.sql | 6 + test/cache/Gateway/csql.conf | 94 ++ test/cache/Gateway/csqldb2inputtest1.sql | 13 + test/cache/Gateway/csqldb2inputtest3a.sql | 13 + test/cache/Gateway/csqlinputtest1.sql | 13 + test/cache/Gateway/csqlinputtest10.sql | 14 + test/cache/Gateway/csqlinputtest12.sql | 11 + test/cache/Gateway/csqlinputtest3.sql | 11 + test/cache/Gateway/csqlinputtest3a.sql | 13 + test/cache/Gateway/db2inputtest1.sql | 11 + test/cache/Gateway/db2inputtest12.sql | 11 + test/cache/Gateway/db2inputtest5.sql | 6 + test/cache/Gateway/db2update.sql | 7 + test/cache/Gateway/db2updatet2.sql | 7 + test/cache/Gateway/db2updatet3.sql | 7 + test/cache/Gateway/delete.sql | 7 + test/cache/Gateway/dropall.sql | 100 ++ test/cache/Gateway/dropt1t2t3.sql | 3 + test/cache/Gateway/exp.test001.ksh | 140 +++ test/cache/Gateway/exp.test001.ksh.SunOS | 138 +++ test/cache/Gateway/exp.test001.ksh.psql | 140 +++ test/cache/Gateway/exp.test001.ksh.x86_64 | 140 +++ test/cache/Gateway/exp.test001n.ksh | 140 +++ test/cache/Gateway/exp.test001n.ksh.SunOS | 138 +++ test/cache/Gateway/exp.test001n.ksh.psql | 140 +++ test/cache/Gateway/exp.test001n.ksh.x86_64 | 140 +++ test/cache/Gateway/exp.test002.ksh | 65 ++ test/cache/Gateway/exp.test002.ksh.SunOS | 63 ++ test/cache/Gateway/exp.test002.ksh.psql | 65 ++ test/cache/Gateway/exp.test002.ksh.x86_64 | 65 ++ test/cache/Gateway/exp.test002n.ksh | 65 ++ test/cache/Gateway/exp.test002n.ksh.SunOS | 63 ++ test/cache/Gateway/exp.test002n.ksh.psql | 65 ++ test/cache/Gateway/exp.test002n.ksh.x86_64 | 65 ++ test/cache/Gateway/exp.test003.ksh | 86 ++ test/cache/Gateway/exp.test003.ksh.SunOS | 84 ++ test/cache/Gateway/exp.test003.ksh.x86_64 | 86 ++ test/cache/Gateway/exp.test003n.ksh | 86 ++ test/cache/Gateway/exp.test003n.ksh.SunOS | 84 ++ test/cache/Gateway/exp.test003n.ksh.x86_64 | 86 ++ test/cache/Gateway/exp.test004.ksh | 36 + test/cache/Gateway/exp.test004.ksh.SunOS | 34 + test/cache/Gateway/exp.test004.ksh.psql | 36 + test/cache/Gateway/exp.test004.ksh.x86_64 | 36 + test/cache/Gateway/exp.test004n.ksh | 36 + test/cache/Gateway/exp.test004n.ksh.SunOS | 34 + test/cache/Gateway/exp.test004n.ksh.psql | 36 + test/cache/Gateway/exp.test004n.ksh.x86_64 | 36 + test/cache/Gateway/exp.test005.ksh | 98 ++ test/cache/Gateway/exp.test005.ksh.psql | 98 ++ test/cache/Gateway/exp.test005n.ksh | 98 ++ test/cache/Gateway/exp.test005n.ksh.psql | 98 ++ test/cache/Gateway/exp.test006.ksh | 63 ++ test/cache/Gateway/exp.test006.ksh.psql | 63 ++ test/cache/Gateway/exp.test006n.ksh | 63 ++ test/cache/Gateway/exp.test006n.ksh.psql | 63 ++ test/cache/Gateway/exp.test007.ksh | 11 + test/cache/Gateway/exp.test007.ksh.psql | 11 + test/cache/Gateway/exp.test007n.ksh | 11 + test/cache/Gateway/exp.test007n.ksh.SunOS | 11 + test/cache/Gateway/exp.test007n.ksh.psql | 11 + test/cache/Gateway/exp.test008.ksh | 9 + test/cache/Gateway/exp.test008n.ksh | 9 + test/cache/Gateway/exp.test009.ksh | 9 + test/cache/Gateway/exp.test009.ksh.psql | 9 + test/cache/Gateway/exp.test009n.ksh | 9 + test/cache/Gateway/exp.test010.ksh | 80 ++ test/cache/Gateway/exp.test010.ksh.SunOS | 78 ++ test/cache/Gateway/exp.test010.ksh.psql | 80 ++ test/cache/Gateway/exp.test010.ksh.x86_64 | 80 ++ test/cache/Gateway/exp.test010n.ksh | 80 ++ test/cache/Gateway/exp.test010n.ksh.SunOS | 78 ++ test/cache/Gateway/exp.test010n.ksh.psql | 80 ++ test/cache/Gateway/exp.test010n.ksh.x86_64 | 80 ++ test/cache/Gateway/exp.test011.ksh | 39 + test/cache/Gateway/exp.test011.ksh.SunOS | 38 + test/cache/Gateway/exp.test011.ksh.psql | 39 + test/cache/Gateway/exp.test011.ksh.x86_64 | 39 + test/cache/Gateway/exp.test011n.ksh | 39 + test/cache/Gateway/exp.test011n.ksh.SunOS | 38 + test/cache/Gateway/exp.test011n.ksh.psql | 39 + test/cache/Gateway/exp.test011n.ksh.x86_64 | 39 + test/cache/Gateway/exp.test012a.ksh | 29 + test/cache/Gateway/exp.test012a.ksh.psql | 29 + test/cache/Gateway/exp.test012an.ksh | 29 + test/cache/Gateway/exp.test012an.ksh.SunOS | 29 + test/cache/Gateway/exp.test012an.ksh.psql | 29 + test/cache/Gateway/exp.test012b.ksh | 47 + test/cache/Gateway/exp.test012b.ksh.psql | 47 + test/cache/Gateway/exp.test012bn.ksh | 47 + test/cache/Gateway/exp.test012bn.ksh.SunOS | 47 + test/cache/Gateway/exp.test012bn.ksh.psql | 47 + test/cache/Gateway/exp.test013.ksh | 23 + test/cache/Gateway/exp.test013.ksh.psql | 23 + test/cache/Gateway/exp.test013n.ksh | 23 + test/cache/Gateway/insert.sql | 1 + test/cache/Gateway/insertdb2.sql | 1 + test/cache/Gateway/join.sql | 1 + test/cache/Gateway/mysqlinputtest1.sql | 11 + test/cache/Gateway/mysqlinputtest12.sql | 11 + test/cache/Gateway/mysqlinputtest5.sql | 6 + test/cache/Gateway/mysqlinputtest8.sql | 6 + test/cache/Gateway/select.sql | 3 + test/cache/Gateway/selectstar.sql | 1 + test/cache/Gateway/selectstart2.sql | 1 + test/cache/Gateway/selectstart3.sql | 1 + test/cache/Gateway/sybaseinputtest1.sql | 11 + test/cache/Gateway/sybaseinputtest12.sql | 11 + test/cache/Gateway/sybaseinputtest5.sql | 6 + test/cache/Gateway/syntaxerr.sql | 2 + test/cache/Gateway/test001.ksh | 123 +++ test/cache/Gateway/test001n.ksh | 129 +++ test/cache/Gateway/test002.ksh | 113 +++ test/cache/Gateway/test002n.ksh | 113 +++ test/cache/Gateway/test003.ksh | 104 ++ test/cache/Gateway/test003n.ksh | 107 ++ test/cache/Gateway/test004.ksh | 88 ++ test/cache/Gateway/test004n.ksh | 89 ++ test/cache/Gateway/test005.ksh | 82 ++ test/cache/Gateway/test005n.ksh | 87 ++ test/cache/Gateway/test006.ksh | 67 ++ test/cache/Gateway/test006n.ksh | 71 ++ test/cache/Gateway/test007.ksh | 71 ++ test/cache/Gateway/test007n.ksh | 72 ++ test/cache/Gateway/test008.ksh | 79 ++ test/cache/Gateway/test008n.ksh | 82 ++ test/cache/Gateway/test009.ksh | 82 ++ test/cache/Gateway/test009n.ksh | 86 ++ test/cache/Gateway/test010.ksh | 87 ++ test/cache/Gateway/test010n.ksh | 91 ++ test/cache/Gateway/test011.ksh | 71 ++ test/cache/Gateway/test011n.ksh | 74 ++ test/cache/Gateway/test012a.ksh | 95 ++ test/cache/Gateway/test012an.ksh | 103 ++ test/cache/Gateway/test012b.ksh | 118 +++ test/cache/Gateway/test012bn.ksh | 116 +++ test/cache/Gateway/test013.ksh | 90 ++ test/cache/Gateway/test013n.ksh | 92 ++ test/cache/Gateway/update.sql | 7 + test/cache/Gateway/updatet2.sql | 7 + test/cache/Gateway/updatet3.sql | 7 + test/cache/Makefile | 18 + test/cache/Recovery/create.sql | 1100 +++++++++++++++++++++ test/cache/Recovery/createt1.sql | 12 + test/cache/Recovery/csql.conf | 117 +++ test/cache/Recovery/drop.sql | 1 + test/cache/Recovery/dropall.sql | 100 ++ test/cache/Recovery/exp.test002.ksh | 1200 +++++++++++++++++++++++ test/cache/Recovery/exp.test003.ksh | 13 + test/cache/Recovery/exp.test004.ksh | 13 + test/cache/Recovery/insert.sql | 10 + test/cache/Recovery/test001.ksh | 64 ++ test/cache/Recovery/test002.ksh | 70 ++ test/cache/Recovery/test003.ksh | 71 ++ test/cache/Recovery/test004.ksh | 85 ++ test/cache/Recovery/test005.ksh | 72 ++ test/cache/Recovery/test006.ksh | 72 ++ test/csql.conf | 142 +++ test/execCacheTests.ksh | 435 ++++++++ test/execTests.ksh | 279 ++++++ test/genReport.ksh | 50 + test/setMultiDsn.ksh | 36 + 249 files changed, 16273 insertions(+) create mode 100644 test/CacheTestModules create mode 100644 test/Makefile create mode 100644 test/TestModules create mode 100644 test/cache/Durability/create_insert_at_csql.sql create mode 100644 test/cache/Durability/create_insert_attdb.sql create mode 100644 test/cache/Durability/csql.conf create mode 100644 test/cache/Durability/delete7_atsite1.sql create mode 100644 test/cache/Durability/drop_t1.sql create mode 100644 test/cache/Durability/exp.test001.ksh create mode 100644 test/cache/Durability/exp.test001.ksh.SunOS create mode 100644 test/cache/Durability/exp.test001.ksh.psql create mode 100644 test/cache/Durability/exp.test001.ksh.x86_64 create mode 100644 test/cache/Durability/exp.test002.ksh create mode 100644 test/cache/Durability/exp.test002.ksh.SunOS create mode 100644 test/cache/Durability/exp.test002.ksh.psql create mode 100644 test/cache/Durability/exp.test002.ksh.x86_64 create mode 100644 test/cache/Durability/exp.test004..ksh.SunOS create mode 100644 test/cache/Durability/exp.test004.ksh create mode 100644 test/cache/Durability/exp.test004.ksh.psql create mode 100644 test/cache/Durability/insert5_atsite1.sql create mode 100644 test/cache/Durability/noncached_delete_t2.sql create mode 100644 test/cache/Durability/noncached_insert_t2.sql create mode 100644 test/cache/Durability/noncached_table_t2.sql create mode 100644 test/cache/Durability/noncached_update_t2.sql create mode 100644 test/cache/Durability/select_t1.sql create mode 100755 test/cache/Durability/test001.ksh create mode 100755 test/cache/Durability/test002.ksh create mode 100755 test/cache/Durability/test004.ksh create mode 100644 test/cache/Durability/update5_atsite1.sql create mode 100644 test/cache/FailOver/Makefile create mode 100644 test/cache/FailOver/csql.conf create mode 100644 test/cache/FailOver/csqldb2input.sql create mode 100644 test/cache/FailOver/csqlinput.sql create mode 100644 test/cache/FailOver/csqlinputt3.sql create mode 100644 test/cache/FailOver/db2inputtest1.sql create mode 100644 test/cache/FailOver/db2inputtest2.sql create mode 100644 test/cache/FailOver/deleteconncsqldown.c create mode 100644 test/cache/FailOver/deleteexeccsqldown.c create mode 100644 test/cache/FailOver/deleteprepcsqldown.c create mode 100644 test/cache/FailOver/dropall.sql create mode 100644 test/cache/FailOver/dropt1t2.sql create mode 100644 test/cache/FailOver/exp.test003.ksh create mode 100644 test/cache/FailOver/exp.test003.ksh.psql create mode 100644 test/cache/FailOver/exp.test004a.ksh create mode 100644 test/cache/FailOver/exp.test004b.ksh create mode 100644 test/cache/FailOver/exp.test004c.ksh create mode 100644 test/cache/FailOver/exp.test004d.ksh create mode 100644 test/cache/FailOver/exp.test006a.ksh create mode 100644 test/cache/FailOver/exp.test006b.ksh create mode 100644 test/cache/FailOver/exp.test006c.ksh create mode 100644 test/cache/FailOver/exp.test006d.ksh create mode 100644 test/cache/FailOver/exp.test008a.ksh create mode 100644 test/cache/FailOver/exp.test008b.ksh create mode 100644 test/cache/FailOver/exp.test008c.ksh create mode 100644 test/cache/FailOver/exp.test008d.ksh create mode 100644 test/cache/FailOver/insertconncsqldown.c create mode 100644 test/cache/FailOver/insertconncsqldownora.c create mode 100644 test/cache/FailOver/insertexeccsqldown.c create mode 100644 test/cache/FailOver/insertexeccsqldownora.c create mode 100644 test/cache/FailOver/insertprepcsqldown.c create mode 100644 test/cache/FailOver/insertprepcsqldownora.c create mode 100644 test/cache/FailOver/mysqlinputtest1.sql create mode 100644 test/cache/FailOver/mysqlinputtest2.sql create mode 100644 test/cache/FailOver/selectconncsqldown.c create mode 100644 test/cache/FailOver/selectexeccsqldown.c create mode 100644 test/cache/FailOver/selectprepcsqldown.c create mode 100644 test/cache/FailOver/sybaseinputtest1.sql create mode 100644 test/cache/FailOver/sybaseinputtest2.sql create mode 100755 test/cache/FailOver/test003.ksh create mode 100755 test/cache/FailOver/test004a.ksh create mode 100755 test/cache/FailOver/test004b.ksh create mode 100755 test/cache/FailOver/test004c.ksh create mode 100755 test/cache/FailOver/test004d.ksh create mode 100755 test/cache/FailOver/test006a.ksh create mode 100755 test/cache/FailOver/test006b.ksh create mode 100755 test/cache/FailOver/test006c.ksh create mode 100755 test/cache/FailOver/test006d.ksh create mode 100755 test/cache/FailOver/test008a.ksh create mode 100755 test/cache/FailOver/test008b.ksh create mode 100755 test/cache/FailOver/test008c.ksh create mode 100755 test/cache/FailOver/test008d.ksh create mode 100644 test/cache/FailOver/updateconncsqldown.c create mode 100644 test/cache/FailOver/updateconncsqldownora.c create mode 100644 test/cache/FailOver/updateexeccsqldown.c create mode 100644 test/cache/FailOver/updateexeccsqldownora.c create mode 100644 test/cache/FailOver/updateprepcsqldown.c create mode 100644 test/cache/FailOver/updateprepcsqldownora.c create mode 100644 test/cache/Gateway/complex.sql create mode 100644 test/cache/Gateway/csql.conf create mode 100644 test/cache/Gateway/csqldb2inputtest1.sql create mode 100644 test/cache/Gateway/csqldb2inputtest3a.sql create mode 100644 test/cache/Gateway/csqlinputtest1.sql create mode 100644 test/cache/Gateway/csqlinputtest10.sql create mode 100644 test/cache/Gateway/csqlinputtest12.sql create mode 100644 test/cache/Gateway/csqlinputtest3.sql create mode 100644 test/cache/Gateway/csqlinputtest3a.sql create mode 100644 test/cache/Gateway/db2inputtest1.sql create mode 100644 test/cache/Gateway/db2inputtest12.sql create mode 100644 test/cache/Gateway/db2inputtest5.sql create mode 100644 test/cache/Gateway/db2update.sql create mode 100644 test/cache/Gateway/db2updatet2.sql create mode 100644 test/cache/Gateway/db2updatet3.sql create mode 100644 test/cache/Gateway/delete.sql create mode 100644 test/cache/Gateway/dropall.sql create mode 100644 test/cache/Gateway/dropt1t2t3.sql create mode 100644 test/cache/Gateway/exp.test001.ksh create mode 100644 test/cache/Gateway/exp.test001.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test001.ksh.psql create mode 100644 test/cache/Gateway/exp.test001.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test001n.ksh create mode 100644 test/cache/Gateway/exp.test001n.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test001n.ksh.psql create mode 100644 test/cache/Gateway/exp.test001n.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test002.ksh create mode 100644 test/cache/Gateway/exp.test002.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test002.ksh.psql create mode 100644 test/cache/Gateway/exp.test002.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test002n.ksh create mode 100644 test/cache/Gateway/exp.test002n.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test002n.ksh.psql create mode 100644 test/cache/Gateway/exp.test002n.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test003.ksh create mode 100644 test/cache/Gateway/exp.test003.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test003.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test003n.ksh create mode 100644 test/cache/Gateway/exp.test003n.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test003n.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test004.ksh create mode 100644 test/cache/Gateway/exp.test004.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test004.ksh.psql create mode 100644 test/cache/Gateway/exp.test004.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test004n.ksh create mode 100644 test/cache/Gateway/exp.test004n.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test004n.ksh.psql create mode 100644 test/cache/Gateway/exp.test004n.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test005.ksh create mode 100644 test/cache/Gateway/exp.test005.ksh.psql create mode 100644 test/cache/Gateway/exp.test005n.ksh create mode 100644 test/cache/Gateway/exp.test005n.ksh.psql create mode 100644 test/cache/Gateway/exp.test006.ksh create mode 100644 test/cache/Gateway/exp.test006.ksh.psql create mode 100644 test/cache/Gateway/exp.test006n.ksh create mode 100644 test/cache/Gateway/exp.test006n.ksh.psql create mode 100644 test/cache/Gateway/exp.test007.ksh create mode 100644 test/cache/Gateway/exp.test007.ksh.psql create mode 100644 test/cache/Gateway/exp.test007n.ksh create mode 100644 test/cache/Gateway/exp.test007n.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test007n.ksh.psql create mode 100644 test/cache/Gateway/exp.test008.ksh create mode 100644 test/cache/Gateway/exp.test008n.ksh create mode 100644 test/cache/Gateway/exp.test009.ksh create mode 100644 test/cache/Gateway/exp.test009.ksh.psql create mode 100644 test/cache/Gateway/exp.test009n.ksh create mode 100644 test/cache/Gateway/exp.test010.ksh create mode 100644 test/cache/Gateway/exp.test010.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test010.ksh.psql create mode 100644 test/cache/Gateway/exp.test010.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test010n.ksh create mode 100644 test/cache/Gateway/exp.test010n.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test010n.ksh.psql create mode 100644 test/cache/Gateway/exp.test010n.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test011.ksh create mode 100644 test/cache/Gateway/exp.test011.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test011.ksh.psql create mode 100644 test/cache/Gateway/exp.test011.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test011n.ksh create mode 100644 test/cache/Gateway/exp.test011n.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test011n.ksh.psql create mode 100644 test/cache/Gateway/exp.test011n.ksh.x86_64 create mode 100644 test/cache/Gateway/exp.test012a.ksh create mode 100644 test/cache/Gateway/exp.test012a.ksh.psql create mode 100644 test/cache/Gateway/exp.test012an.ksh create mode 100644 test/cache/Gateway/exp.test012an.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test012an.ksh.psql create mode 100644 test/cache/Gateway/exp.test012b.ksh create mode 100644 test/cache/Gateway/exp.test012b.ksh.psql create mode 100644 test/cache/Gateway/exp.test012bn.ksh create mode 100644 test/cache/Gateway/exp.test012bn.ksh.SunOS create mode 100644 test/cache/Gateway/exp.test012bn.ksh.psql create mode 100644 test/cache/Gateway/exp.test013.ksh create mode 100644 test/cache/Gateway/exp.test013.ksh.psql create mode 100644 test/cache/Gateway/exp.test013n.ksh create mode 100644 test/cache/Gateway/insert.sql create mode 100644 test/cache/Gateway/insertdb2.sql create mode 100644 test/cache/Gateway/join.sql create mode 100644 test/cache/Gateway/mysqlinputtest1.sql create mode 100644 test/cache/Gateway/mysqlinputtest12.sql create mode 100644 test/cache/Gateway/mysqlinputtest5.sql create mode 100644 test/cache/Gateway/mysqlinputtest8.sql create mode 100644 test/cache/Gateway/select.sql create mode 100644 test/cache/Gateway/selectstar.sql create mode 100644 test/cache/Gateway/selectstart2.sql create mode 100644 test/cache/Gateway/selectstart3.sql create mode 100644 test/cache/Gateway/sybaseinputtest1.sql create mode 100644 test/cache/Gateway/sybaseinputtest12.sql create mode 100644 test/cache/Gateway/sybaseinputtest5.sql create mode 100644 test/cache/Gateway/syntaxerr.sql create mode 100755 test/cache/Gateway/test001.ksh create mode 100755 test/cache/Gateway/test001n.ksh create mode 100755 test/cache/Gateway/test002.ksh create mode 100755 test/cache/Gateway/test002n.ksh create mode 100755 test/cache/Gateway/test003.ksh create mode 100755 test/cache/Gateway/test003n.ksh create mode 100755 test/cache/Gateway/test004.ksh create mode 100755 test/cache/Gateway/test004n.ksh create mode 100755 test/cache/Gateway/test005.ksh create mode 100755 test/cache/Gateway/test005n.ksh create mode 100755 test/cache/Gateway/test006.ksh create mode 100755 test/cache/Gateway/test006n.ksh create mode 100755 test/cache/Gateway/test007.ksh create mode 100755 test/cache/Gateway/test007n.ksh create mode 100755 test/cache/Gateway/test008.ksh create mode 100755 test/cache/Gateway/test008n.ksh create mode 100755 test/cache/Gateway/test009.ksh create mode 100755 test/cache/Gateway/test009n.ksh create mode 100755 test/cache/Gateway/test010.ksh create mode 100755 test/cache/Gateway/test010n.ksh create mode 100755 test/cache/Gateway/test011.ksh create mode 100755 test/cache/Gateway/test011n.ksh create mode 100755 test/cache/Gateway/test012a.ksh create mode 100755 test/cache/Gateway/test012an.ksh create mode 100755 test/cache/Gateway/test012b.ksh create mode 100755 test/cache/Gateway/test012bn.ksh create mode 100755 test/cache/Gateway/test013.ksh create mode 100755 test/cache/Gateway/test013n.ksh create mode 100644 test/cache/Gateway/update.sql create mode 100644 test/cache/Gateway/updatet2.sql create mode 100644 test/cache/Gateway/updatet3.sql create mode 100644 test/cache/Makefile create mode 100644 test/cache/Recovery/create.sql create mode 100644 test/cache/Recovery/createt1.sql create mode 100644 test/cache/Recovery/csql.conf create mode 100644 test/cache/Recovery/drop.sql create mode 100644 test/cache/Recovery/dropall.sql create mode 100644 test/cache/Recovery/exp.test002.ksh create mode 100644 test/cache/Recovery/exp.test003.ksh create mode 100644 test/cache/Recovery/exp.test004.ksh create mode 100644 test/cache/Recovery/insert.sql create mode 100755 test/cache/Recovery/test001.ksh create mode 100755 test/cache/Recovery/test002.ksh create mode 100755 test/cache/Recovery/test003.ksh create mode 100755 test/cache/Recovery/test004.ksh create mode 100755 test/cache/Recovery/test005.ksh create mode 100755 test/cache/Recovery/test006.ksh create mode 100644 test/csql.conf create mode 100755 test/execCacheTests.ksh create mode 100755 test/execTests.ksh create mode 100755 test/genReport.ksh create mode 100755 test/setMultiDsn.ksh diff --git a/test/CacheTestModules b/test/CacheTestModules new file mode 100644 index 00000000..5e04c66e --- /dev/null +++ b/test/CacheTestModules @@ -0,0 +1,25 @@ +#List of cache module directories which needs to be run by cache test executor +#Note: To exclude modules, comment out using # +adapter/Connect +adapter/Parameter +adapter/Select +sqlgw/Parameter +sqlgw/Select +odbc/Adapter +odbc/Gateway +jdbc/Gateway +jdbc/Adapter +jdbc/network/Adapter +jdbc/network/Gateway +cache/Recovery +cache/DDL +cache/Gateway +cache/FailOver +cache/CacheTable +cache/CacheStatement +cache/Bidirectional +cache/CacheVerify +cache/Durability +cache/MultiDsn/Connection +cache/MultiDsn/Gateway +cache/MultiDsn/CacheTableOptions diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 00000000..9692407b --- /dev/null +++ b/test/Makefile @@ -0,0 +1,23 @@ +OSNAME = $(shell uname -s) +MAKE=gmake + +all: buildall + +buildall: + @for i in *; \ + do \ + if [ -d $$i ];\ + then cd $$i; $(MAKE); cd ..;\ + fi;\ + done + +clean: + @for i in *; \ + do \ + if [ -d $$i ];\ + then cd $$i; $(MAKE) clean; cd ..;\ + fi;\ + done +runall: buildall + ./execTests.ksh + ./genReport.ksh diff --git a/test/TestModules b/test/TestModules new file mode 100644 index 00000000..08cc31dd --- /dev/null +++ b/test/TestModules @@ -0,0 +1,78 @@ +#List of test module directories which needs to be run by test executor +#Note: To exclude modules, comment out using # +dbapi/Connection +dbapi/Index +dbapi/DataType +dbapi/Table +dbapi/TableDef +dbapi/DatabaseManager +dbapi/UserManager +dbapi/Predicate +dbapi/Threads +system/config +system/Allocator +system/proc +system/lock +system/trans +durability/checkpoint +durability/recovery +durability/redologs +tools/catalog +tools/csql +tools/copystmt +tools/UserStmt +tools/TableGT32Field +tools/csqldump +tools/Pagesize +jdbc/Connection +jdbc/Statement +jdbc/Parameters +jdbc/ParameterMetadata +jdbc/ResultSetMetaData +jdbc/DatabaseMetadata +jdbc/network/Connection +jdbc/network/DatabaseMetadata +jdbc/network/ParameterMetadata +jdbc/network/ResultSetMetaData +jdbc/network/Statement +sqlapi/Connect +sqlapi/Parameter +sqlapi/Select +#sqlapi/Csql/Connect +#sqlapi/Csql/DDLStmt +#sqlapi/Csql/DMLStmt +#sqlapi/Csql/Isolation +#sqlapi/Csql/ParamStmt +#sqlapi/Csql/Transaction +#sqlapi/Adapter/Connect +#sqlapi/Adapter/DDLStmt +#sqlapi/Adapter/DMLStmt +#sqlapi/Adapter/Isolation +#sqlapi/Adapter/ParamStmt +#sqlapi/Adapter/Transaction +#sqlapi/Gateway/Connect +#sqlapi/Gateway/DDLStmt +#sqlapi/Gateway/DMLStmt +#sqlapi/Gateway/Isolation +#sqlapi/Gateway/ParamStmt +#sqlapi/Gateway/Transaction +sql/Join +sql/OuterJoin +sql/Aggregate +sql/Limit +sql/Order +sql/Distinct +sql/Datatype +sql/Predicate +sql/Alter +sql/ScalarFunction +sql/StmtCache +#sql/Optimizer +sql/Transaction +odbc/Connect +odbc/NonSelectDML +odbc/Parameters +odbc/Select +odbc/Transaction +odbc/Metadata +phptests diff --git a/test/cache/Durability/create_insert_at_csql.sql b/test/cache/Durability/create_insert_at_csql.sql new file mode 100644 index 00000000..04b8cfda --- /dev/null +++ b/test/cache/Durability/create_insert_at_csql.sql @@ -0,0 +1,7 @@ +CREATE TABLE t2(f1 int,f2 char(20),f3 int,primary key(f1)); +INSERT INTO t2 VALUES(1,'AAAAA',10); +INSERT INTO t2 VALUES(2,'BBBBB',20); +INSERT INTO t2 VALUES(3,'CCCCC',30); +INSERT INTO t2 VALUES(4,'DDDDD',40); +INSERT INTO t2 VALUES(5,'EEEEE',50); +COMMIT; diff --git a/test/cache/Durability/create_insert_attdb.sql b/test/cache/Durability/create_insert_attdb.sql new file mode 100644 index 00000000..963d9897 --- /dev/null +++ b/test/cache/Durability/create_insert_attdb.sql @@ -0,0 +1,7 @@ +CREATE TABLE t1(f1 int,f2 char(20),f3 int,primary key(f1)); +INSERT INTO t1 VALUES(1,'Bijay',10); +INSERT INTO t1 VALUES(2,'Jiten',20); +INSERT INTO t1 VALUES(3,'Praba',30); +INSERT INTO t1 VALUES(4,'Kisor',40); +INSERT INTO t1 VALUES(5,'Nihar',50); +COMMIT; diff --git a/test/cache/Durability/csql.conf b/test/cache/Durability/csql.conf new file mode 100644 index 00000000..a582805a --- /dev/null +++ b/test/cache/Durability/csql.conf @@ -0,0 +1,141 @@ +# CSQL System Configuration File + +#####################################Server Section######################## + +# Site ID for this CSQL server +SITE_ID=1 + +#Important: For Server section parameters, make sure that the value is same for the +# server process and all the csql client process which connects to it. otherwise, +# behavior is undefined + +# Page size. Each database is logically divided into pages and allocation happens +# in this unit of pages. Increasing this value will reduce frequent allocation of pages. +PAGE_SIZE= 8192 + +#Total number of client process which can connect and work with the +# database concurrently +MAX_PROCS = 100 + +# Maximum size of the system database. +MAX_SYS_DB_SIZE=1048576 + +#Maximum size of the user database file. +MAX_DB_SIZE=10485760 + +#Shared memory key to be used by the system to create and locate system database. +SYS_DB_KEY=2222 + +#Shared memory key to be used by the system to create and locate user database. +USER_DB_KEY=3333 + +#Log level 0->no logging 1->Fine 2->Finer 3->Finest +LOG_LEVEL=0 + +#Give full path for the log file where important system actions are stored. +LOG_FILE=/tmp/csql/log/log.out + +#The virtual memory start address at which the shared memory segment +# will be created and attached. +MAP_ADDRESS=400000000 + +# Whether to enable durability +DURABILITY=false + +# Whether to enable memory map architecture for user database +MMAP=false + +# Specifies the durability mode for redo log generation +# Valid values are +# 1 ->uses standard redo logging with O_APPEND mode +# 2 ->uses standard logging with serialization +# 3 ->uses O_SYNC flag +# 4 ->uses O_DIRECT flag + +DURABLE_MODE=1 + +#Give full path for the database file where table and record information will +#be stored for durability +DATABASE_FILE=/tmp/csql/db + +#Important: For Server section parameters, make sure that the value is same for the server process and all the csql client process which connects to it. otherwise, behavior is undefined + +# Give full path for the std error file to store all the errors during database operations +STDERR_FILE=stderr + +#####################################Client Section######################## + +#Mutex timeout interval seconds +MUTEX_TIMEOUT_SECS=0 +MUTEX_TIMEOUT_USECS=5000 +MUTEX_TIMEOUT_RETRIES=10 + +#Lock timeout interval seconds +LOCK_TIMEOUT_SECS=0 +LOCK_TIMEOUT_USECS=5000 +LOCK_TIMEOUT_RETRIES=10 + +#####################################Cache Section######################## + +#Whether to enable caching of tables from target database +CACHE_TABLE=false + +#DSN Name to connect to the target database. +#This should be present in ~/odbc.ini file +DSN=myodbc3 + +# Whethere to enable bidirectional updates for cached tables. +ENABLE_BIDIRECTIONAL_CACHE=false + +CACHE_RECEIVER_WAIT_SECS=10 + +#Mode of operation SYNC or ASYNC +CACHE_MODE=SYNC + +##########################SqlNetworkServer Section######################## + +# Whether to enable SqlNetwork server +CSQL_SQL_SERVER=false + +#Set port for Network access +PORT=5678 + +# Max number of seconds that the network layer waits to receive a pkt +NETWORK_RESPONSE_TIMEOUT=3 + +# Max number of seconds that the network layer waits to connect to sql server +NETWORK_CONNECT_TIMEOUT=5 + +#Whether to enable Replication across the sites +REPLICATION=false + +#No of sites to replicate +REPLICATION_SITES=16 + +#Give full path for the file where all the table information is stored +TABLE_CONFIG_FILE=/tmp/csql/csqltable.conf + +#Give full path of the file where all the DSN information is stored +DS_CONFIG_FILE=/tmp/csql/csqlds.conf + +#Give full path for the file where all the peer site information is stored +NETWORK_CONFIG_FILE=/tmp/csql/csqlnw.conf + +# Give full path for conflict Resolution file +CONFL_RESOL_FILE=/tmp/csql/conflResoFile.txt + +# MSGKEY for creating msg queue for MsgQueue Server +MSG_KEY=2525 + +# Maximum message that the message queue server is able to handle for +# asynchronous updates. This value is is default value of 'kernel.msgmax' +# parameter. +ASYNC_MSGMAX=8192 + +# Maximum number of messages that the message queue server will hold for a site +# that is down in the replication group. +MAX_QUEUE_LOGS=100 + +# Shared memory key for id generators +ID_SHM_KEY=1947 +#####################################End Section######################## diff --git a/test/cache/Durability/delete7_atsite1.sql b/test/cache/Durability/delete7_atsite1.sql new file mode 100644 index 00000000..7dbb40f0 --- /dev/null +++ b/test/cache/Durability/delete7_atsite1.sql @@ -0,0 +1 @@ +DELETE FROM t1 WHERE f1<=7; diff --git a/test/cache/Durability/drop_t1.sql b/test/cache/Durability/drop_t1.sql new file mode 100644 index 00000000..39c7e154 --- /dev/null +++ b/test/cache/Durability/drop_t1.sql @@ -0,0 +1 @@ +DROP TABLE t1; diff --git a/test/cache/Durability/exp.test001.ksh b/test/cache/Durability/exp.test001.ksh new file mode 100644 index 00000000..a4eef4f6 --- /dev/null +++ b/test/cache/Durability/exp.test001.ksh @@ -0,0 +1,46 @@ +INSERTING 5 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++-----------+---------------------+-----------+ +| f1 | f2 | f3 | ++-----------+---------------------+-----------+ +| 1 | Bijay | 10 | +| 2 | Jiten | 20 | +| 3 | Praba | 30 | +| 4 | Kisor | 40 | +| 5 | Nihar | 50 | ++-----------+---------------------+-----------+ +SQLRowCount returns 5 +5 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +Statement Executed +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> DROP TABLE t1; +SQLRowCount returns 0 +SQL> Statement Executed diff --git a/test/cache/Durability/exp.test001.ksh.SunOS b/test/cache/Durability/exp.test001.ksh.SunOS new file mode 100644 index 00000000..831887b5 --- /dev/null +++ b/test/cache/Durability/exp.test001.ksh.SunOS @@ -0,0 +1,44 @@ +INSERTING 5 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +-----------+---------------------+-----------+ +| f1 | f2 | f3 | ++-----------+---------------------+-----------+ +| 1 | Bijay | 10 | +| 2 | Jiten | 20 | +| 3 | Praba | 30 | +| 4 | Kisor | 40 | +| 5 | Nihar | 50 | ++-----------+---------------------+-----------+ +SQLRowCount returns 5 +5 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +Statement Executed +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQLRowCount returns 0 +SQL> Statement Executed diff --git a/test/cache/Durability/exp.test001.ksh.psql b/test/cache/Durability/exp.test001.ksh.psql new file mode 100644 index 00000000..0729fe9d --- /dev/null +++ b/test/cache/Durability/exp.test001.ksh.psql @@ -0,0 +1,46 @@ +INSERTING 5 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++------------+---------------------+------------+ +| f1 | f2 | f3 | ++------------+---------------------+------------+ +| 1 | Bijay | 10 | +| 2 | Jiten | 20 | +| 3 | Praba | 30 | +| 4 | Kisor | 40 | +| 5 | Nihar | 50 | ++------------+---------------------+------------+ +SQLRowCount returns 5 +5 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +Statement Executed +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> DROP TABLE t1; +SQLRowCount returns 0 +SQL> Statement Executed diff --git a/test/cache/Durability/exp.test001.ksh.x86_64 b/test/cache/Durability/exp.test001.ksh.x86_64 new file mode 100644 index 00000000..4aa916cd --- /dev/null +++ b/test/cache/Durability/exp.test001.ksh.x86_64 @@ -0,0 +1,46 @@ +INSERTING 5 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SELECT * FROM t1; ++-----------+---------------------+-----------+ +| f1 | f2 | f3 | ++-----------+---------------------+-----------+ +| 1 | Bijay | 10 | +| 2 | Jiten | 20 | +| 3 | Praba | 30 | +| 4 | Kisor | 40 | +| 5 | Nihar | 50 | ++-----------+---------------------+-----------+ +SQLRowCount returns 5 +5 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +Statement Executed +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> DROP TABLE t1; +SQLRowCount returns 0 +SQL> Statement Executed diff --git a/test/cache/Durability/exp.test002.ksh b/test/cache/Durability/exp.test002.ksh new file mode 100644 index 00000000..715f135b --- /dev/null +++ b/test/cache/Durability/exp.test002.ksh @@ -0,0 +1,84 @@ +INSERTING 5 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++-----------+---------------------+-----------+ +| f1 | f2 | f3 | ++-----------+---------------------+-----------+ +| 1 | Bijay | 10 | +| 2 | Jiten | 20 | +| 3 | Praba | 30 | +| 4 | Kisor | 40 | +| 5 | Nihar | 50 | ++-----------+---------------------+-----------+ +SQLRowCount returns 5 +5 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +Statement Executed +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +INSERTING 5 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +INSERTING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +UPDATING 5 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 5 +UPDATING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 5 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +DELETING 7 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 7 +DELETING 7 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 7 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> DROP TABLE t1; +SQLRowCount returns 0 +SQL> Statement Executed diff --git a/test/cache/Durability/exp.test002.ksh.SunOS b/test/cache/Durability/exp.test002.ksh.SunOS new file mode 100644 index 00000000..864988b9 --- /dev/null +++ b/test/cache/Durability/exp.test002.ksh.SunOS @@ -0,0 +1,82 @@ +INSERTING 5 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +-----------+---------------------+-----------+ +| f1 | f2 | f3 | ++-----------+---------------------+-----------+ +| 1 | Bijay | 10 | +| 2 | Jiten | 20 | +| 3 | Praba | 30 | +| 4 | Kisor | 40 | +| 5 | Nihar | 50 | ++-----------+---------------------+-----------+ +SQLRowCount returns 5 +5 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +Statement Executed +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +INSERTING 5 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +INSERTING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +UPDATING 5 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 5 +UPDATING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 5 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +DELETING 7 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 7 +DELETING 7 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 7 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQLRowCount returns 0 +SQL> Statement Executed diff --git a/test/cache/Durability/exp.test002.ksh.psql b/test/cache/Durability/exp.test002.ksh.psql new file mode 100644 index 00000000..d55871ee --- /dev/null +++ b/test/cache/Durability/exp.test002.ksh.psql @@ -0,0 +1,84 @@ +INSERTING 5 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++------------+---------------------+------------+ +| f1 | f2 | f3 | ++------------+---------------------+------------+ +| 1 | Bijay | 10 | +| 2 | Jiten | 20 | +| 3 | Praba | 30 | +| 4 | Kisor | 40 | +| 5 | Nihar | 50 | ++------------+---------------------+------------+ +SQLRowCount returns 5 +5 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +Statement Executed +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +INSERTING 5 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +INSERTING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +UPDATING 5 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 5 +UPDATING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 5 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +DELETING 7 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 7 +DELETING 7 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 7 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> DROP TABLE t1; +SQLRowCount returns 0 +SQL> Statement Executed diff --git a/test/cache/Durability/exp.test002.ksh.x86_64 b/test/cache/Durability/exp.test002.ksh.x86_64 new file mode 100644 index 00000000..2a3d9ede --- /dev/null +++ b/test/cache/Durability/exp.test002.ksh.x86_64 @@ -0,0 +1,84 @@ +INSERTING 5 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SELECT * FROM t1; ++-----------+---------------------+-----------+ +| f1 | f2 | f3 | ++-----------+---------------------+-----------+ +| 1 | Bijay | 10 | +| 2 | Jiten | 20 | +| 3 | Praba | 30 | +| 4 | Kisor | 40 | +| 5 | Nihar | 50 | ++-----------+---------------------+-----------+ +SQLRowCount returns 5 +5 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +Statement Executed +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +INSERTING 5 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +INSERTING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +UPDATING 5 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 5 +UPDATING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 5 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine +DELETING 7 RECORDS IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 7 +DELETING 7 RECORDS AT NON CACHED TABLE t2 AT CSQL +Statement Executed: Rows Affected = 7 +Server Killed + +Durablity = TRUE +Server Started +Checking Durability +Durability Works Fine ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> DROP TABLE t1; +SQLRowCount returns 0 +SQL> Statement Executed diff --git a/test/cache/Durability/exp.test004..ksh.SunOS b/test/cache/Durability/exp.test004..ksh.SunOS new file mode 100644 index 00000000..35456e0f --- /dev/null +++ b/test/cache/Durability/exp.test004..ksh.SunOS @@ -0,0 +1,105 @@ +INSERTING 1 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQLRowCount returns 0 +SQL> SQLRowCount returns 1 +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +-----------+ +| f1 | ++-----------+ +| 1 | ++-----------+ +SQLRowCount returns 1 +1 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +--------------------------------------------------------- + t1.f1 +--------------------------------------------------------- + 1 + +INSERTING 1 RECORD IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +AFTER INSERT AT CSQL DATA IN CSQL +--------------------------------------------------------- + t1.f1 +--------------------------------------------------------- + 1 + 2 + +AFTER INSERT AT CSQL DATA IN TDB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +-----------+ +| f1 | ++-----------+ +| 1 | +| 2 | ++-----------+ +SQLRowCount returns 2 +2 rows fetched +SQL> Server Killed + +Durablity = TRUE +Cache_table = FALSE +Server Started +Checking Durability +Durability Works Fine +INSERTING ANOTHER RECORD IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +AFTER INSERT AT CSQL DATA IN CSQL +--------------------------------------------------------- + t1.f1 +--------------------------------------------------------- + 1 + 2 + 3 + +AFTER INSERT AT CSQL DATA IN TDB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +-----------+ +| f1 | ++-----------+ +| 1 | +| 2 | +| 3 | ++-----------+ +SQLRowCount returns 3 +3 rows fetched +SQL> Statement Executed ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQLRowCount returns 0 +SQL> \ No newline at end of file diff --git a/test/cache/Durability/exp.test004.ksh b/test/cache/Durability/exp.test004.ksh new file mode 100644 index 00000000..d1407e72 --- /dev/null +++ b/test/cache/Durability/exp.test004.ksh @@ -0,0 +1,111 @@ +INSERTING 1 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> CREATE TABLE t1(f1 int); +SQLRowCount returns 0 +SQL> INSERT INTO t1 values(1); +SQLRowCount returns 1 +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++-----------+ +| f1 | ++-----------+ +| 1 | ++-----------+ +SQLRowCount returns 1 +1 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +--------------------------------------------------------- + t1.f1 +--------------------------------------------------------- + 1 + +INSERTING 1 RECORD IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +AFTER INSERT AT CSQL DATA IN CSQL +--------------------------------------------------------- + t1.f1 +--------------------------------------------------------- + 1 + 2 + +AFTER INSERT AT CSQL DATA IN TDB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++-----------+ +| f1 | ++-----------+ +| 1 | +| 2 | ++-----------+ +SQLRowCount returns 2 +2 rows fetched +SQL> Server Killed + +Durablity = TRUE +Cache_table = FALSE +Server Started +Checking Durability +Durability Works Fine +INSERTING ANOTHER RECORD IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +AFTER INSERT AT CSQL DATA IN CSQL +--------------------------------------------------------- + t1.f1 +--------------------------------------------------------- + 1 + 2 + 3 + +AFTER INSERT AT CSQL DATA IN TDB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++-----------+ +| f1 | ++-----------+ +| 1 | +| 2 | +| 3 | ++-----------+ +SQLRowCount returns 3 +3 rows fetched +SQL> Statement Executed ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> DROP TABLE t1; +SQLRowCount returns 0 +SQL> \ No newline at end of file diff --git a/test/cache/Durability/exp.test004.ksh.psql b/test/cache/Durability/exp.test004.ksh.psql new file mode 100644 index 00000000..1304d777 --- /dev/null +++ b/test/cache/Durability/exp.test004.ksh.psql @@ -0,0 +1,110 @@ +INSERTING 1 RECORDS IN TARGET DB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> CREATE TABLE t1(f1 int); +SQLRowCount returns 0 +SQL> INSERT INTO t1 values(1); +SQLRowCount returns 1 +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++------------+ +| f1 | ++------------+ +| 1 | ++------------+ +SQLRowCount returns 1 +1 rows fetched +SQL> CACHING THROUGH SITE1 +cachetable -U root -P manager -t t1 +--------------------------------------------------------- + t1.f1 +--------------------------------------------------------- + 1 + +INSERTING 1 RECORD IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +AFTER INSERT AT CSQL DATA IN CSQL +--------------------------------------------------------- + t1.f1 +--------------------------------------------------------- + 1 + 2 + +AFTER INSERT AT CSQL DATA IN TDB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++------------+ +| f1 | ++------------+ +| 1 | +| 2 | ++------------+ +SQLRowCount returns 2 +2 rows fetched +SQL> Server Killed + +Durablity = TRUE +Cache_table = FALSE +Server Started +Checking Durability +Durability Works Fine +INSERTING ANOTHER RECORD IN CACHED TABLE t1 AT CSQL +Statement Executed: Rows Affected = 1 +AFTER INSERT AT CSQL DATA IN CSQL +--------------------------------------------------------- + t1.f1 +--------------------------------------------------------- + 1 + 2 + 3 + +AFTER INSERT AT CSQL DATA IN TDB ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> SELECT * FROM t1; ++------------+ +| f1 | ++------------+ +| 1 | +| 2 | ++------------+ +SQLRowCount returns 2 +2 rows fetched +SQL> Statement Executed ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> DROP TABLE t1; +SQLRowCount returns 0 +SQL> diff --git a/test/cache/Durability/insert5_atsite1.sql b/test/cache/Durability/insert5_atsite1.sql new file mode 100644 index 00000000..bfa42348 --- /dev/null +++ b/test/cache/Durability/insert5_atsite1.sql @@ -0,0 +1,6 @@ +INSERT INTO t1 values(6,'Suman',101); +INSERT INTO t1 values(7,'Rasmi',102); +INSERT INTO t1 values(8,'Rajes',103); +INSERT INTO t1 values(9,'Sanjy',104); +INSERT INTO t1 values(10,'Jayas',105); + diff --git a/test/cache/Durability/noncached_delete_t2.sql b/test/cache/Durability/noncached_delete_t2.sql new file mode 100644 index 00000000..eec88609 --- /dev/null +++ b/test/cache/Durability/noncached_delete_t2.sql @@ -0,0 +1 @@ +DELETE FROM t2 WHERE f1<=7; diff --git a/test/cache/Durability/noncached_insert_t2.sql b/test/cache/Durability/noncached_insert_t2.sql new file mode 100644 index 00000000..6155da64 --- /dev/null +++ b/test/cache/Durability/noncached_insert_t2.sql @@ -0,0 +1,6 @@ +INSERT INTO t2 VALUES(6,'FFFFF',60); +INSERT INTO t2 VALUES(7,'GGGGG',70); +INSERT INTO t2 VALUES(8,'HHHHH',80); +INSERT INTO t2 VALUES(9,'IIIII',90); +INSERT INTO t2 VALUES(10,'JJJJJ',100); +COMMIT; diff --git a/test/cache/Durability/noncached_table_t2.sql b/test/cache/Durability/noncached_table_t2.sql new file mode 100644 index 00000000..c445a0ab --- /dev/null +++ b/test/cache/Durability/noncached_table_t2.sql @@ -0,0 +1,7 @@ +CREATE TABLE t2(f1 int,f2 char(20),f3 int,primary key(f1)); +INSERT INTO t2 VALUES(10,'Bijay10',101); +INSERT INTO t2 VALUES(20,'Jiten10',202); +INSERT INTO t2 VALUES(30,'Praba10',303); +INSERT INTO t2 VALUES(40,'Kisor10',404); +INSERT INTO t2 VALUES(50,'Nihar10',505); +COMMIT; diff --git a/test/cache/Durability/noncached_update_t2.sql b/test/cache/Durability/noncached_update_t2.sql new file mode 100644 index 00000000..62cef223 --- /dev/null +++ b/test/cache/Durability/noncached_update_t2.sql @@ -0,0 +1 @@ +UPDATE t2 SET f3=60 WHERE f1<=5; diff --git a/test/cache/Durability/select_t1.sql b/test/cache/Durability/select_t1.sql new file mode 100644 index 00000000..2935dbef --- /dev/null +++ b/test/cache/Durability/select_t1.sql @@ -0,0 +1 @@ +SELECT * FROM t1; diff --git a/test/cache/Durability/test001.ksh b/test/cache/Durability/test001.ksh new file mode 100755 index 00000000..56e74bf1 --- /dev/null +++ b/test/cache/Durability/test001.ksh @@ -0,0 +1,127 @@ +#!/bin/ksh +# Test Case +# Create table t1 in Target DB and insert 5 records in TDB. +# Cache t1 table using cachetable -t option +# Create table t2 at CSQL and insert 5 records +# Both Cached and Non-Cached tables should be durable + +CSQL_CONF=${PWD}/cache/Durability/csql.conf +REL_PATH=. +if [ -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/Durability +fi + +rm -f /tmp/csql.conf +cp $CSQL_CONFIG_FILE /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo CACHE_TABLE=true >>$CSQL_CONFIG_FILE +echo DURABILITY=true >>$CSQL_CONFIG_FILE +echo DSN=$DSN >>$CSQL_CONFIG_FILE +echo SYS_DB_KEY=2288 >>$CSQL_CONFIG_FILE +echo USER_DB_KEY=3377 >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf /tmp/csql/csqltable.conf +touch /tmp/csql/csqlds.conf /tmp/csql/csqltable.conf + +rm -rf /tmp/csql/db/* +mkdir -p /tmp/csql/db + +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +echo INSERTING 5 RECORDS IN TARGET DB +isql $DS < ${REL_PATH}/create_insert_attdb.sql >/dev/null 2>&1 +if [ $? -ne 0 ] + then + isql $DS < ${REL_PATH}/drop_t1.sql + exit 1; +fi + +isql $DS < ${REL_PATH}/select_t1.sql +if [ $? -ne 0 ] + then + isql $DS < ${REL_PATH}/drop_t1.sql + exit 2; +fi + +# Setup Environment For site +# RUN CSQL SERVER at site +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 10 + +echo "CACHING THROUGH SITE1" +echo "cachetable -U root -P manager -t t1" +$CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + exit 3; +fi + +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/create_insert_at_csql.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + exit 4; +fi + +$CSQL_INSTALL_ROOT/bin/csqldump -X >before.sql + +kill -9 $pid +ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 +echo "Server Killed" + +echo "" +echo "Durablity = TRUE" +echo "Server Started" +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 10 +echo "Checking Durability" +$CSQL_INSTALL_ROOT/bin/csqldump -X >after.sql +diff before.sql after.sql +if [ $? -eq 0 ] + then + echo Durability Works Fine + else + echo Durability Does Not work fine +fi + +$CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u +if [ $? -ne 0 ] + then + kill -9 $pid1 + rm -f before.sql after.sql + rm -M 2288 -M 3377 -M 1947 -Q 2525 + exit 5; +fi + +isql $DS < ${REL_PATH}/drop_t1.sql +if [ $? -ne 0 ] + then + kill -9 $pid1 + rm -f before.sql after.sql + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + exit 6; +fi + +echo "drop table t2;" >${REL_PATH}/drop_t2.sql +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drop_t2.sql + +rm -f ${REL_PATH}/drop_t2.sql +rm -f before.sql after.sql +rm -rf /tmp/site +kill -9 $pid +ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 +exit 0; diff --git a/test/cache/Durability/test002.ksh b/test/cache/Durability/test002.ksh new file mode 100755 index 00000000..1788f399 --- /dev/null +++ b/test/cache/Durability/test002.ksh @@ -0,0 +1,261 @@ +#!/bin/ksh +# Test Case +# Create table t1 in Target DB and insert 5 records in TDB. +# Cache t1 table using cachetable -t option. +# Create table t2 at CSQL and insert 5 records. +# Do all DML Operations in both cached as well as non-cached tables. +# Both Cached and Non-Cached tables should be durable, and The data Should be Consistent +# +CSQL_CONF=${PWD}/cache/Durability/csql.conf +REL_PATH=. +if [ -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/Durability +fi + +rm -f /tmp/csql.conf +cp $CSQL_CONFIG_FILE /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo CACHE_TABLE=true >>$CSQL_CONFIG_FILE +echo DURABILITY=true >>$CSQL_CONFIG_FILE +echo DSN=$DSN >>$CSQL_CONFIG_FILE +echo SYS_DB_KEY=2288 >>$CSQL_CONFIG_FILE +echo USER_DB_KEY=3377 >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf /tmp/csql/csqltable.conf +touch /tmp/csql/csqlds.conf /tmp/csql/csqltable.conf + +rm -rf /tmp/csql/db/* +mkdir -p /tmp/csql/db + +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +# CSQL Configuration +echo INSERTING 5 RECORDS IN TARGET DB +isql $DS < ${REL_PATH}/create_insert_attdb.sql >/dev/null 2>&1 +if [ $? -ne 0 ] + then + isql $DS < ${REL_PATH}/drop_t1.sql + exit 1; +fi + +isql $DS < ${REL_PATH}/select_t1.sql +if [ $? -ne 0 ] + then + isql $DS < ${REL_PATH}/drop_t1.sql + exit 2; +fi + +# RUN CSQL SERVER at site +$CSQL_INSTALL_ROOT/bin/csqlserver > /dev/null 2>&1 & +pid=$! +sleep 10 + +echo "CACHING THROUGH SITE1" +echo "cachetable -U root -P manager -t t1" +$CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + exit 3; +fi + +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/create_insert_at_csql.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + exit 4; +fi + +$CSQL_INSTALL_ROOT/bin/csqldump >before.sql + +kill -9 $pid +ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 +echo "Server Killed" + +echo "" +echo "Durablity = TRUE" +echo "Server Started" +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 10 +echo "Checking Durability" +$CSQL_INSTALL_ROOT/bin/csqldump >after.sql +diff before.sql after.sql +if [ $? -eq 0 ] + then + echo Durability Works Fine + else + echo Durability Does Not work fine +fi +#Insertion in cached table at csql +echo INSERTING 5 RECORDS IN CACHED TABLE t1 AT CSQL +$CSQL_INSTALL_ROOT/bin/csql -g -u root -p manager -s ${REL_PATH}/insert5_atsite1.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + exit 5; +fi + +echo INSERTING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/noncached_insert_t2.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + exit 6; +fi + +$CSQL_INSTALL_ROOT/bin/csqldump >before.sql + +kill -9 $pid +ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 +echo "Server Killed" +echo "" +echo "Durablity = TRUE" +echo "Server Started" +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 10 +echo "Checking Durability" +$CSQL_INSTALL_ROOT/bin/csqldump >after.sql +diff before.sql after.sql +if [ $? -eq 0 ] + then + echo Durability Works Fine + else + echo Durability Does Not work fine +fi + +#Updation in cached table at csql +echo UPDATING 5 RECORDS IN CACHED TABLE t1 AT CSQL +$CSQL_INSTALL_ROOT/bin/csql -g -u root -p manager -s ${REL_PATH}/update5_atsite1.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + exit 7; +fi + +echo UPDATING 5 RECORDS AT NON CACHED TABLE t2 AT CSQL +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/noncached_update_t2.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + exit 8; +fi + +$CSQL_INSTALL_ROOT/bin/csqldump >before.sql + +kill -9 $pid +ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 +echo "Server Killed" + +echo "" +echo "Durablity = TRUE" +echo "Server Started" +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 10 +echo "Checking Durability" +$CSQL_INSTALL_ROOT/bin/csqldump >after.sql +diff before.sql after.sql +if [ $? -eq 0 ] + then + echo Durability Works Fine + else + echo Durability Does Not work fine +fi + +#Deletion in cached table at csql +echo DELETING 7 RECORDS IN CACHED TABLE t1 AT CSQL +$CSQL_INSTALL_ROOT/bin/csql -g -u root -p manager -s ${REL_PATH}/delete7_atsite1.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + exit 9; +fi + +echo DELETING 7 RECORDS AT NON CACHED TABLE t2 AT CSQL +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/noncached_delete_t2.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + exit 10; +fi + +$CSQL_INSTALL_ROOT/bin/csqldump >before.sql + +kill -9 $pid +ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 +echo "Server Killed" + +echo "" +echo "Durablity = TRUE" +echo "Server Started" +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 10 +echo "Checking Durability" +$CSQL_INSTALL_ROOT/bin/csqldump >after.sql +diff before.sql after.sql +if [ $? -eq 0 ] + then + echo Durability Works Fine + else + echo Durability Does Not work fine +fi + +#export CSQL_CONFIG_FILE=/tmp/site/csql.conf +$CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u +if [ $? -ne 0 ] + then + kill -9 $pid1 + rm -f before.sql after.sql + rm -M 2288 -M 3377 -M 1947 -Q 2525 + exit 11; +fi + +isql $DS < ${REL_PATH}/drop_t1.sql +if [ $? -ne 0 ] + then + kill -9 $pid1 + rm -f before.sql after.sql + ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 + exit 12; +fi + +echo "drop table t2;" >${REL_PATH}/drop_t2.sql +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drop_t2.sql + +rm -f ${REL_PATH}/drop_t2.sql +rm -f before.sql after.sql +rm -rf /tmp/site +kill -9 $pid +ipcrm -M 2288 -M 3377 -M 1947 -Q 2525 +exit 0; diff --git a/test/cache/Durability/test004.ksh b/test/cache/Durability/test004.ksh new file mode 100755 index 00000000..0d24d1c2 --- /dev/null +++ b/test/cache/Durability/test004.ksh @@ -0,0 +1,246 @@ +#!/bin/ksh +# Test Case +# Create table t1 in Target DB and insert 1 records in TDB. +# Set DURABILITY=true and CACHE_TABLE=true in csql.conf. Start csqlserver +# Cache t1 table in SYNC mode at CSQL +# Insert 1 record at CSQL. +# It Should be Propagated to TDB. +# Kill The Server +# Set CACHE_TABLE=false in csql.conf. Start csqlserver with same configuration +# The Previous Table Should be Durable here. +# Insert 1 record at CSQL. +# The Insertion Happens at CSQL should not be propagated to TDB +# +CSQL_CONF=${PWD}/cache/Durability/csql.conf +REL_PATH=. +if [ -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/Durability +fi + +rm -f /tmp/csql.conf +cp $CSQL_CONFIG_FILE /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo SYS_DB_KEY=3399 >> $CSQL_CONFIG_FILE +echo USER_DB_KEY=4499 >> $CSQL_CONFIG_FILE +echo CACHE_TABLE=true >>$CSQL_CONFIG_FILE +echo DURABILITY=true >>$CSQL_CONFIG_FILE + + +# CSQL Configuration +rm -rf /tmp/csql +mkdir -p /tmp/csql +mkdir -p /tmp/csql/log +mkdir -p /tmp/csql/db +rm -f /tmp/csql/csqlds.conf /tmp/csql/csqltable.conf +touch /tmp/csql/csqlds.conf /tmp/csql/csqltable.conf +touch /tmp/csql/csqlnw.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +echo INSERTING 1 RECORDS IN TARGET DB +echo "CREATE TABLE t1(f1 int);" >${REL_PATH}/creat_ins_attdb.sql +echo "INSERT INTO t1 values(1);" >>${REL_PATH}/creat_ins_attdb.sql +isql $DS < ${REL_PATH}/creat_ins_attdb.sql +if [ $? -ne 0 ] + then + isql $DS < ${REL_PATH}/drop_t1.sql + exit 1; +fi + +isql $DS < ${REL_PATH}/select_t1.sql +if [ $? -ne 0 ] + then + isql $DS < ${REL_PATH}/drop_t1.sql + rm -rf ${REL_PATH}/creat_ins_attdb.sql + exit 2; +fi + +# RUN CSQL SERVER at CSQL +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 10 + +echo "CACHING THROUGH SITE1" +echo "cachetable -U root -P manager -t t1" +$CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + rm -rf ${REL_PATH}/creat_ins_attdb.sql + exit 3; +fi + +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/select_t1.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + rm -rf ${REL_PATH}/creat_ins_attdb.sql + rm -rf ${REL_PATH}/ins1_atCSQL.sql + exit 4; +fi + +#Insertion in cached table at csql +echo INSERTING 1 RECORD IN CACHED TABLE t1 AT CSQL +echo "INSERT INTO t1 VALUES(2);" >${REL_PATH}/ins1_atCSQL.sql +$CSQL_INSTALL_ROOT/bin/csql -g -u root -p manager -s ${REL_PATH}/ins1_atCSQL.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + rm -rf ${REL_PATH}/creat_ins_attdb.sql + rm -rf ${REL_PATH}/ins1_atCSQL.sql + exit 5; +fi + +echo AFTER INSERT AT CSQL DATA IN CSQL +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/select_t1.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + rm -rf ${REL_PATH}/creat_ins_attdb.sql + rm -rf ${REL_PATH}/ins1_atCSQL.sql + exit 12; +fi + +echo AFTER INSERT AT CSQL DATA IN TDB +isql $DS < ${REL_PATH}/select_t1.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + rm -rf ${REL_PATH}/creat_ins_attdb.sql + rm -rf ${REL_PATH}/ins1_atCSQL.sql + exit 6; +fi + +$CSQL_INSTALL_ROOT/bin/csqldump -X >before.sql +kill -9 $pid +ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 +echo "Server Killed" + +echo "" +echo "Durablity = TRUE" +echo "Cache_table = FALSE" +echo CACHE_TABLE=false >>$CSQL_CONFIG_FILE +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +echo "Server Started" +pid=$! +sleep 2 +echo "Checking Durability" +$CSQL_INSTALL_ROOT/bin/csqldump -X >after.sql +diff before.sql after.sql +if [ $? -eq 0 ] + then + echo Durability Works Fine + else + echo Durability Does Not work fine +fi + +#Insertion in cached table at csql +echo INSERTING ANOTHER RECORD IN CACHED TABLE t1 AT CSQL +echo "INSERT INTO t1 VALUES(3);" >${REL_PATH}/ins_another_atCSQL.sql +$CSQL_INSTALL_ROOT/bin/csql -g -u root -p manager -s ${REL_PATH}/ins_another_atCSQL.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/csql -s ${REL_PATH}/drop_t1.sql + rm -f ${REL_PATH}/creat_ins_attdb.sql + rm -f ${REL_PATH}/ins1_atCSQL.sql + rm -f ${REL_PATH}/ins_another_atCSQL.sql + exit 7; +fi + +echo AFTER INSERT AT CSQL DATA IN CSQL +$CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/select_t1.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/cachetable -U root -P manager -t t1 -u + rm -rf ${REL_PATH}/creat_ins_attdb.sql + rm -rf ${REL_PATH}/ins1_atCSQL.sql + rm -f ${REL_PATH}/ins_another_atCSQL.sql + exit 8; +fi + +echo AFTER INSERT AT CSQL DATA IN TDB +isql $DS < ${REL_PATH}/select_t1.sql +if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 + isql $DS < ${REL_PATH}/drop_t1.sql + $CSQL_INSTALL_ROOT/bin/csql -s ${REL_PATH}/drop_t1.sql + rm -f ${REL_PATH}/creat_ins_attdb.sql + rm -f ${REL_PATH}/ins1_atCSQL.sql + rm -f ${REL_PATH}/ins_another_atCSQL.sql + exit 9; +fi + +echo CACHE_TABLE=true >>$CSQL_CONFIG_FILE + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -u +if [ $? -ne 0 ] + then + kill -9 $pid1 + rm -f before.sql after.sql + rm -f ${REL_PATH}/creat_ins_attdb.sql + rm -f ${REL_PATH}/ins1_atCSQL.sql + rm -f ${REL_PATH}/ins_another_atCSQL.sql + rm -M 3399 -M 4499 -M 1947 -Q 2525 + exit 10; +fi + +$CSQL_INSTALL_ROOT/bin/csql -s ${REL_PATH}/drop_t1.sql +if [ $? -ne 0 ] + then + kill -9 $pid1 + rm -f before.sql after.sql + rm -f ${REL_PATH}/creat_ins_attdb.sql + rm -f ${REL_PATH}/ins1_atCSQL.sql + rm -f ${REL_PATH}/ins_another_atCSQL.sql + rm -M 3399 -M 4499 -M 1947 -Q 2525 + exit 10; +fi + +isql $DS < ${REL_PATH}/drop_t1.sql +if [ $? -ne 0 ] + then + kill -9 $pid1 + rm -f before.sql after.sql + rm -f ${REL_PATH}/creat_ins_attdb.sql + rm -f ${REL_PATH}/ins1_atCSQL.sql + rm -f ${REL_PATH}/ins_another_atCSQL.sql + ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 + exit 11; +fi + +rm -f before.sql after.sql +rm -f ${REL_PATH}/creat_ins_attdb.sql +rm -f ${REL_PATH}/ins1_atCSQL.sql +rm -f ${REL_PATH}/ins_another_atCSQL.sql +kill -9 $pid +ipcrm -M 3399 -M 4499 -M 1947 -Q 2525 +exit 0; diff --git a/test/cache/Durability/update5_atsite1.sql b/test/cache/Durability/update5_atsite1.sql new file mode 100644 index 00000000..27fd111d --- /dev/null +++ b/test/cache/Durability/update5_atsite1.sql @@ -0,0 +1 @@ +UPDATE t1 SET f3=60 WHERE f1<=5; diff --git a/test/cache/FailOver/Makefile b/test/cache/FailOver/Makefile new file mode 100644 index 00000000..221b0c97 --- /dev/null +++ b/test/cache/FailOver/Makefile @@ -0,0 +1,106 @@ +OSNAME = $(shell uname -s) +PlatForm=notsupported +ifeq ($(OSNAME), SunOS) + CPlus = CC + CPlusFlags = -O2 -w $(COMPILER_FLAG) + SYSLIBS=-ldl -lnsl -lsocket -lposix4 + PlatForm=supported +endif +ifeq ($(OSNAME), Linux) + CPlus = g++ + CPlusFlags = -g -w + SYSLIBS= -rdynamic -lrt -lpthread -lcrypt + PlatForm=supported +endif +ifeq ($(OSNAME), FreeBSD) + CPlus = g++ + CPlusFlags = -g -w + SYSLIBS= -rdynamic -lrt -lpthread -lcrypt + PlatForm=supported +endif + + +INCL= -I$(CSQL_INSTALL_ROOT)/install/include -I../../../include +LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcacheload -lcsqlgw -lcsqlnw -lcsqlodbcadapter -lcsqlsqlnw -lcsql -lcsqlsql -lcsqlsqllog + + +TARGETS = \ + insertconncsqldown selectconncsqldown updateconncsqldown updateconncsqldownora deleteconncsqldown \ + insertprepcsqldown insertprepcsqldownora insertconncsqldownora selectprepcsqldown updateprepcsqldown deleteprepcsqldown \ + updateprepcsqldownora insertexeccsqldown insertexeccsqldownora selectexeccsqldown updateexeccsqldown deleteexeccsqldown \ + updateexeccsqldownora +# insertprepmysqldown selectprepmysqldown updateprepmysqldown deleteprepmysqldown +# insertexecmysqldown selectexecmysqldown updateexecmysqldown deleteexecmysqldown +# insertconnmysqldown selectconnmysqldown updateconnmysqldown deleteconnmysqldown + + +ifeq ($(PlatForm), supported) +all: $(TARGETS) +else +all: + echo "CSQL is not supported on $(OSNAME) platform" +endif + +insertconncsqldown: insertconncsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +insertconncsqldownora: insertconncsqldownora.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +selectconncsqldown: selectconncsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +updateconncsqldown: updateconncsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +updateconncsqldownora: updateconncsqldownora.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +deleteconncsqldown: deleteconncsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#insertconnmysqldown: insertconnmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#selectconnmysqldown: selectconnmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#updateconnmysqldown: updateconnmysqldown.c +## $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#deleteconnmysqldown: deleteconnmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +insertprepcsqldown: insertprepcsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +insertprepcsqldownora: insertprepcsqldownora.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +selectprepcsqldown: selectprepcsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +updateprepcsqldown: updateprepcsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +updateprepcsqldownora: updateprepcsqldownora.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +deleteprepcsqldown: deleteprepcsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#insertprepmysqldown: insertprepmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#selectprepmysqldown: selectprepmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#updateprepmysqldown: updateprepmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#deleteprepmysqldown: deleteprepmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +insertexeccsqldown: insertexeccsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +insertexeccsqldownora: insertexeccsqldownora.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +selectexeccsqldown: selectexeccsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +updateexeccsqldown: updateexeccsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +updateexeccsqldownora: updateexeccsqldownora.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +deleteexeccsqldown: deleteexeccsqldown.c + $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#insertexecmysqldown: insertexecmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#selectexecmysqldown: selectexecmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#updateexecmysqldown: updateexecmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) +#deleteexecmysqldown: deleteexecmysqldown.c +# $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS) + +clean: + rm -f *.o ${TARGETS} diff --git a/test/cache/FailOver/csql.conf b/test/cache/FailOver/csql.conf new file mode 100644 index 00000000..b0785fd2 --- /dev/null +++ b/test/cache/FailOver/csql.conf @@ -0,0 +1,117 @@ +# CSQL System Configuration File + +#####################################Server Section######################## +#Important: For Server section parameters, make sure that the value is same for the +# server process and all the csql client process which connects to it. otherwise, +# behavior is undefined + +# Page size. Each database is logically divided into pages and allocation happens +# in this unit of pages. Increasing this value will reduce frequent allocation of pages. +PAGE_SIZE= 8192 + +#Total number of client process which can connect and work with the +# database concurrently +MAX_PROCS = 100 + +# Maximum size of the system database. +MAX_SYS_DB_SIZE=1048576 + +#Maximum size of the user database file. +MAX_DB_SIZE=10485760 + +#Shared memory key to be used by the system to create and locate system database. +SYS_DB_KEY=1199 + +#Shared memory key to be used by the system to create and locate user database. +USER_DB_KEY=2277 + +#Log level 0->no logging 1->Fine 2->Finer 3->Finest +LOG_LEVEL=0 + +#Give full path for the log file where important system actions are stored. +LOG_FILE=/tmp/csql/log/log.out + +#The virtual memory start address at which the shared memory segment +# will be created and attached. +MAP_ADDRESS=400000000 + +# Whether to enable durability +DURABILITY=false + +# Can be set true only when DURABILITY is true +MMAP=false + +#Give full path for the database file where table and record information will +#be stored for durability +DATABASE_FILE=/tmp/csql/db + +#Important: For Server section parameters, make sure that the value is same for the +# server process and all the csql client process which connects to it. otherwise, +# behavior is undefined +#####################################Client Section######################## + +#Mutex timeout interval seconds +MUTEX_TIMEOUT_SECS=0 +MUTEX_TIMEOUT_USECS=5000 +MUTEX_TIMEOUT_RETRIES=10 + +#Lock timeout interval seconds +LOCK_TIMEOUT_SECS=0 +LOCK_TIMEOUT_USECS=5000 +LOCK_TIMEOUT_RETRIES=10 + +#####################################Cache Section######################## + +#Whether to enable caching of tables from target database +CACHE_TABLE=true + +#Set cache id for multiple bidirectional cache node for single data source +SITE_ID=1 + +# Name of Target Database (mysql ,postgres, oracle etc...) +#TARGET_DATABASE=mysql + +#DSN Name to connect to the target database. +#This should be present in ~/odbc.ini file +DSN=myodbc3 + +#DBUSER= +#PASSWORD= + +ENABLE_BIDIRECTIONAL_CACHE=false + +CACHE_RECEIVER_WAIT_SECS=10 + +#Mode of operation SYNC or ASYNC +CACHE_MODE=SYNC + +##########################SqlNetworkServer Section######################## + +# Whether to enable SqlNetwork server +CSQL_SQL_SERVER=false + +#Set port for Network access +PORT=5678 + +#Whether to enable Replication across the sites +REPLICATION=false + +#No of sites to replicate +REPLICATION_SITES=16 + +#Give full path for the file where all the table information is stored +TABLE_CONFIG_FILE=/tmp/csql/csqltable.conf + +#Give full path of the file where all the DSN information is stored +DS_CONFIG_FILE=/tmp/csql/csqlds.conf + +#Give full path for the file where all the peer site information is stored +NETWORK_CONFIG_FILE=/tmp/csql/csqlnw.conf + +# MSGKEY for creating msg queue for MsgQueue Server +MSG_KEY=2525 + +ID_SHM_KEY=1947 +#####################################End Section######################## + + diff --git a/test/cache/FailOver/csqldb2input.sql b/test/cache/FailOver/csqldb2input.sql new file mode 100644 index 00000000..80c239ed --- /dev/null +++ b/test/cache/FailOver/csqldb2input.sql @@ -0,0 +1,5 @@ +select * from t1; +insert into t1 values(100, 1000, 1000000, 'vijay', 102.718, 111111100.000999, '1915-12-25', '00:00:01', '1980-12-25 00:00:01'); +update t1 set f1 = 500 , f9 = '2008-08-08 08:08:08' where f1 = 5; +delete from t1 where f1 = 8; +select * from t1; diff --git a/test/cache/FailOver/csqlinput.sql b/test/cache/FailOver/csqlinput.sql new file mode 100644 index 00000000..7a8c3ba0 --- /dev/null +++ b/test/cache/FailOver/csqlinput.sql @@ -0,0 +1,5 @@ +select * from t1; +insert into t1 values(100, 1000, 1000000, 'vijay', 102.718, 111111100.000999, '1915/12/25', '00:00:01', '1980/12/25 00:00:01'); +update t1 set f1 = 500 , f9 = '2008/08/08 08:08:08' where f1 = 5; +delete from t1 where f1 = 8; +select * from t1; diff --git a/test/cache/FailOver/csqlinputt3.sql b/test/cache/FailOver/csqlinputt3.sql new file mode 100644 index 00000000..e604cede --- /dev/null +++ b/test/cache/FailOver/csqlinputt3.sql @@ -0,0 +1,11 @@ +CREATE TABLE t3 (f1 SMALLINT, f2 INT , f3 BIGINT , f4 CHAR (20), f5 FLOAT , f6 DOUBLE , f7 DATE , f8 TIME , f9 TIMESTAMP, primary key (f1) ); +INSERT INTO t3 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t3 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t3 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t3 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t3 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t3 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t3 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t3 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t3 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t3 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/FailOver/db2inputtest1.sql b/test/cache/FailOver/db2inputtest1.sql new file mode 100644 index 00000000..16ef22c0 --- /dev/null +++ b/test/cache/FailOver/db2inputtest1.sql @@ -0,0 +1,11 @@ +CREATE TABLE t1 (f1 SMALLINT not null primary key, f2 INT , f3 BIGINT , f4 CHAR (10), f5 REAL , f6 FLOAT , f7 DATE , f8 TIME , f9 TIMESTAMP ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915-12-25', '11:42:35', '1971-12-25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926-05-16', '12:32:14', '1972-05-16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937-08-15', '13:45:36', '1973-08-15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946-12-25', '14:42:35', '1974-12-25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955-12-25', '15:42:35', '1975-12-25 15:42:35'); +INSERT INTO t1 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965-12-25', '16:42:35', '1976-12-25 16:42:35'); +INSERT INTO t1 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975-12-25', '17:42:35', '1977-12-25 17:42:35'); +INSERT INTO t1 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985-12-25', '18:42:35', '1978-12-25 18:42:35'); +INSERT INTO t1 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995-12-25', '19:42:35', '1979-12-25 19:42:35'); +INSERT INTO t1 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915-12-25', '20:42:35', '1980-12-25 20:42:35'); diff --git a/test/cache/FailOver/db2inputtest2.sql b/test/cache/FailOver/db2inputtest2.sql new file mode 100644 index 00000000..98a925fb --- /dev/null +++ b/test/cache/FailOver/db2inputtest2.sql @@ -0,0 +1,11 @@ +CREATE TABLE t2 (f1 SMALLINT not null primary key, f2 INT , f3 BIGINT , f4 CHAR (20), f5 REAL , f6 FLOAT , f7 DATE , f8 TIME , f9 TIMESTAMP ); +INSERT INTO t2 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915-12-25', '11:42:35', '1971-12-25 11:42:35'); +INSERT INTO t2 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926-05-16', '12:32:14', '1972-05-16 12:32:14'); +INSERT INTO t2 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937-08-15', '13:45:36', '1973-08-15 13:45:36'); +INSERT INTO t2 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946-12-25', '14:42:35', '1974-12-25 14:42:35'); +INSERT INTO t2 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955-12-25', '15:42:35', '1975-12-25 15:42:35'); +INSERT INTO t2 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965-12-25', '16:42:35', '1976-12-25 16:42:35'); +INSERT INTO t2 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975-12-25', '17:42:35', '1977-12-25 17:42:35'); +INSERT INTO t2 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985-12-25', '18:42:35', '1978-12-25 18:42:35'); +INSERT INTO t2 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995-12-25', '19:42:35', '1979-12-25 19:42:35'); +INSERT INTO t2 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915-12-25', '20:42:35', '1980-12-25 20:42:35'); diff --git a/test/cache/FailOver/deleteconncsqldown.c b/test/cache/FailOver/deleteconncsqldown.c new file mode 100644 index 00000000..8d8f51e9 --- /dev/null +++ b/test/cache/FailOver/deleteconncsqldown.c @@ -0,0 +1,53 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + strcpy(statement,"delete from t1 where f1 = 10;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + sleep(15); + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: delete t1(cached table) success\n"); + + strcpy(statement,"delete from t2 where f1 = 10;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: delete from t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: delete from t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"delete from t3 where f1 = 10;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: delete from t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: delete from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: delete from t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/deleteexeccsqldown.c b/test/cache/FailOver/deleteexeccsqldown.c new file mode 100644 index 00000000..1591f198 --- /dev/null +++ b/test/cache/FailOver/deleteexeccsqldown.c @@ -0,0 +1,53 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + strcpy(statement,"delete from t1 where f1 = 10;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + sleep(15); + con->commit(); + stmt->free(); + printf("csql down: delete from t1(cached table) success\n"); + + strcpy(statement,"delete from t2 where f1 = 10;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: delete from t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: delete from t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"delete from t3 where f1 = 10;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: delete from t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: delete from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: delete from t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/deleteprepcsqldown.c b/test/cache/FailOver/deleteprepcsqldown.c new file mode 100644 index 00000000..8b322d8c --- /dev/null +++ b/test/cache/FailOver/deleteprepcsqldown.c @@ -0,0 +1,53 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + strcpy(statement,"delete from t1 where f1 = 10;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + sleep(15); + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: delete from t1(cached table) success\n"); + + strcpy(statement,"delete from t2 where f1 = 10;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: delete from t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: delete from t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"delete from t3 where f1 = 10;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: delete from t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: delete from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: delete from t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/dropall.sql b/test/cache/FailOver/dropall.sql new file mode 100644 index 00000000..79906a97 --- /dev/null +++ b/test/cache/FailOver/dropall.sql @@ -0,0 +1,100 @@ +drop table t1; +drop table t2; +drop table t3; +drop table t4; +drop table t5; +drop table t6; +drop table t7; +drop table t8; +drop table t9; +drop table t10; +drop table t11; +drop table t12; +drop table t13; +drop table t14; +drop table t15; +drop table t16; +drop table t17; +drop table t18; +drop table t19; +drop table t20; +drop table t21; +drop table t22; +drop table t23; +drop table t24; +drop table t25; +drop table t26; +drop table t27; +drop table t28; +drop table t29; +drop table t30; +drop table t31; +drop table t32; +drop table t33; +drop table t34; +drop table t35; +drop table t36; +drop table t37; +drop table t38; +drop table t39; +drop table t40; +drop table t41; +drop table t42; +drop table t43; +drop table t44; +drop table t45; +drop table t46; +drop table t47; +drop table t48; +drop table t49; +drop table t50; +drop table t51; +drop table t52; +drop table t53; +drop table t54; +drop table t55; +drop table t56; +drop table t57; +drop table t58; +drop table t59; +drop table t60; +drop table t61; +drop table t62; +drop table t63; +drop table t64; +drop table t65; +drop table t66; +drop table t67; +drop table t68; +drop table t69; +drop table t70; +drop table t71; +drop table t72; +drop table t73; +drop table t74; +drop table t75; +drop table t76; +drop table t77; +drop table t78; +drop table t79; +drop table t80; +drop table t81; +drop table t82; +drop table t83; +drop table t84; +drop table t85; +drop table t86; +drop table t87; +drop table t88; +drop table t89; +drop table t90; +drop table t91; +drop table t92; +drop table t93; +drop table t94; +drop table t95; +drop table t96; +drop table t97; +drop table t98; +drop table t99; +drop table t100; diff --git a/test/cache/FailOver/dropt1t2.sql b/test/cache/FailOver/dropt1t2.sql new file mode 100644 index 00000000..9c354ab0 --- /dev/null +++ b/test/cache/FailOver/dropt1t2.sql @@ -0,0 +1,2 @@ +drop table t1; +drop table t2; diff --git a/test/cache/FailOver/exp.test003.ksh b/test/cache/FailOver/exp.test003.ksh new file mode 100644 index 00000000..729fd48f --- /dev/null +++ b/test/cache/FailOver/exp.test003.ksh @@ -0,0 +1,33 @@ +table t1 inserted into target db +csql server is down +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 500 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 2008/8/8 8:8:8.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 100 1000 1000000 vijay 102.718002 111111100.000999 1915/12/25 0:0:1.0 1980/12/25 0:0:1.0 + diff --git a/test/cache/FailOver/exp.test003.ksh.psql b/test/cache/FailOver/exp.test003.ksh.psql new file mode 100644 index 00000000..ceefcc2a --- /dev/null +++ b/test/cache/FailOver/exp.test003.ksh.psql @@ -0,0 +1,33 @@ +table t1 inserted into target db +csql server is down +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.141000 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567000 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.700000 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718000 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718000 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718000 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718000 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718000 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718000 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718000 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.141000 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567000 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.700000 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718000 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 6 1962 666666666 suresh 162.718000 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718000 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 9 1956 999999999 sharan 192.718000 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718000 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 100 1000 1000000 vijay 102.718000 111111100.000999 1915/12/25 0:0:1.0 1980/12/25 0:0:1.0 + 500 2005 555555555 ganesh 152.718000 555555555.555555 1955/12/25 15:42:35.0 2008/8/8 8:8:8.0 + diff --git a/test/cache/FailOver/exp.test004a.ksh b/test/cache/FailOver/exp.test004a.ksh new file mode 100644 index 00000000..9d413ba0 --- /dev/null +++ b/test/cache/FailOver/exp.test004a.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: select from t1(cached table) success +csql down: select from t2(not cached mysql table) success +csql down: select from t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test004b.ksh b/test/cache/FailOver/exp.test004b.ksh new file mode 100644 index 00000000..b3ba12f3 --- /dev/null +++ b/test/cache/FailOver/exp.test004b.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: insert into t1(cached table) success +csql down: insert into t2(not cached mysql table) success +csql down: insert into t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test004c.ksh b/test/cache/FailOver/exp.test004c.ksh new file mode 100644 index 00000000..c058669c --- /dev/null +++ b/test/cache/FailOver/exp.test004c.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: update t1(cached table) success +csql down: update t2(not cached mysql table) success +csql down: update t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test004d.ksh b/test/cache/FailOver/exp.test004d.ksh new file mode 100644 index 00000000..0be6faf1 --- /dev/null +++ b/test/cache/FailOver/exp.test004d.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: delete t1(cached table) success +csql down: delete from t2(not cached mysql table) success +csql down: delete from t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test006a.ksh b/test/cache/FailOver/exp.test006a.ksh new file mode 100644 index 00000000..9d413ba0 --- /dev/null +++ b/test/cache/FailOver/exp.test006a.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: select from t1(cached table) success +csql down: select from t2(not cached mysql table) success +csql down: select from t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test006b.ksh b/test/cache/FailOver/exp.test006b.ksh new file mode 100644 index 00000000..b3ba12f3 --- /dev/null +++ b/test/cache/FailOver/exp.test006b.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: insert into t1(cached table) success +csql down: insert into t2(not cached mysql table) success +csql down: insert into t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test006c.ksh b/test/cache/FailOver/exp.test006c.ksh new file mode 100644 index 00000000..5333fcfb --- /dev/null +++ b/test/cache/FailOver/exp.test006c.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: update t1(cached table) success +csql down: update t2(not cached mysql table) success +csql down: update from t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test006d.ksh b/test/cache/FailOver/exp.test006d.ksh new file mode 100644 index 00000000..fab52ab9 --- /dev/null +++ b/test/cache/FailOver/exp.test006d.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: delete from t1(cached table) success +csql down: delete from t2(not cached mysql table) success +csql down: delete from t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test008a.ksh b/test/cache/FailOver/exp.test008a.ksh new file mode 100644 index 00000000..9d413ba0 --- /dev/null +++ b/test/cache/FailOver/exp.test008a.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: select from t1(cached table) success +csql down: select from t2(not cached mysql table) success +csql down: select from t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test008b.ksh b/test/cache/FailOver/exp.test008b.ksh new file mode 100644 index 00000000..b3ba12f3 --- /dev/null +++ b/test/cache/FailOver/exp.test008b.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: insert into t1(cached table) success +csql down: insert into t2(not cached mysql table) success +csql down: insert into t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test008c.ksh b/test/cache/FailOver/exp.test008c.ksh new file mode 100644 index 00000000..5333fcfb --- /dev/null +++ b/test/cache/FailOver/exp.test008c.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: update t1(cached table) success +csql down: update t2(not cached mysql table) success +csql down: update from t3(not cached csql table) failed diff --git a/test/cache/FailOver/exp.test008d.ksh b/test/cache/FailOver/exp.test008d.ksh new file mode 100644 index 00000000..fab52ab9 --- /dev/null +++ b/test/cache/FailOver/exp.test008d.ksh @@ -0,0 +1,8 @@ +table t1(to be cached) inserted into target db +table t1 cached into csql +table t2(not cached) inserted into target db +table t3 inserted into csql db +csql server is down +csql down: delete from t1(cached table) success +csql down: delete from t2(not cached mysql table) success +csql down: delete from t3(not cached csql table) failed diff --git a/test/cache/FailOver/insertconncsqldown.c b/test/cache/FailOver/insertconncsqldown.c new file mode 100644 index 00000000..d46a175b --- /dev/null +++ b/test/cache/FailOver/insertconncsqldown.c @@ -0,0 +1,60 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + sleep (15); + if(0==strcmp(getenv("DSN"),"db2")) + strcpy(statement,"insert into t1 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33');"); + else + strcpy(statement,"insert into t1 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33');"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: insert into t1(cached table) success\n"); + + if(0==strcmp(getenv("DSN"),"db2")) + strcpy(statement,"insert into t2 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33');"); + else + strcpy(statement,"insert into t2 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: insert into t2(not cached mysql table) success\n"); + con->commit(); + + if(0==strcmp(getenv("DSN"),"db2")) + strcpy(statement,"insert into t3 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33');"); + else + strcpy(statement,"insert into t3 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: insert into t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/insertconncsqldownora.c b/test/cache/FailOver/insertconncsqldownora.c new file mode 100644 index 00000000..522f1199 --- /dev/null +++ b/test/cache/FailOver/insertconncsqldownora.c @@ -0,0 +1,51 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + sleep (2); + strcpy(statement,"insert into t1 values(11,'ZZZ');"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: insert into t1(cached table) success\n"); + + strcpy(statement,"insert into t2 values(110,'XXX');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: insert into t2(not cached mysql table) success\n"); + con->commit(); + + strcpy(statement,"insert into t3 values(11,'YYY');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t3(not cached csql table) failed\n"); stmt->free(); delete stmt; con->disconnect(); delete con; return 6; } + printf("csql down: insert into t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/insertexeccsqldown.c b/test/cache/FailOver/insertexeccsqldown.c new file mode 100644 index 00000000..07b09ac0 --- /dev/null +++ b/test/cache/FailOver/insertexeccsqldown.c @@ -0,0 +1,60 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + if(0==strcmp(getenv("DSN"),"db2")) + strcpy(statement,"insert into t1 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33');"); + else + strcpy(statement,"insert into t1 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33');"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + sleep (15); + con->commit(); + stmt->free(); + printf("csql down: insert into t1(cached table) success\n"); + + if(0==strcmp(getenv("DSN"),"db2")) + strcpy(statement,"insert into t2 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33');"); + else + strcpy(statement,"insert into t2 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: insert into t2(not cached mysql table) success\n"); + con->commit(); + + if(0==strcmp(getenv("DSN"),"db2")) + strcpy(statement,"insert into t3 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33');"); + else + strcpy(statement,"insert into t3 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: insert into t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/insertexeccsqldownora.c b/test/cache/FailOver/insertexeccsqldownora.c new file mode 100644 index 00000000..bfd32e89 --- /dev/null +++ b/test/cache/FailOver/insertexeccsqldownora.c @@ -0,0 +1,51 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + strcpy(statement,"insert into t1 values(100,'KKK');"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + sleep (2); + con->commit(); + stmt->free(); + printf("csql down: insert into t1(cached table) success\n"); + + strcpy(statement,"insert into t2 values(100,'KKK');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: insert into t2(not cached mysql table) success\n"); + con->commit(); + + strcpy(statement,"insert into t3 values(100,'KKK');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t3(not cached csql table) failed\n"); stmt->free(); delete stmt;con->disconnect(); delete con; return 6; } + printf("csql down: insert into t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + con->disconnect(); + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/insertprepcsqldown.c b/test/cache/FailOver/insertprepcsqldown.c new file mode 100644 index 00000000..83c6e4d0 --- /dev/null +++ b/test/cache/FailOver/insertprepcsqldown.c @@ -0,0 +1,60 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + if(0==strcmp(getenv("DSN"),"db2")) + strcpy(statement,"insert into t1 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33');"); + else + strcpy(statement,"insert into t1 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33');"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + sleep (15); + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: insert into t1(cached table) success\n"); + + if(0==strcmp(getenv("DSN"),"db2")) + strcpy(statement,"insert into t2 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33');"); + else + strcpy(statement,"insert into t2 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: insert into t2(not cached mysql table) success\n"); + con->commit(); + + if(0==strcmp(getenv("DSN"),"db2")) + strcpy(statement,"insert into t3 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33');"); + else + strcpy(statement,"insert into t3 values(11, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: insert into t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/insertprepcsqldownora.c b/test/cache/FailOver/insertprepcsqldownora.c new file mode 100644 index 00000000..f00a2465 --- /dev/null +++ b/test/cache/FailOver/insertprepcsqldownora.c @@ -0,0 +1,51 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + strcpy(statement,"insert into t1 values(60,'GGG');"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + sleep (2); + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: insert into t1(cached table) success\n"); + + strcpy(statement,"insert into t2 values(60,'GGG');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: insert into t2(not cached mysql table) success\n"); + con->commit(); + + strcpy(statement,"insert into t3 values(60,'GGG');"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: insert into t3(not cached csql table) failed\n"); stmt->free(); delete stmt; con->disconnect();delete con; return 6; } + printf("csql down: insert into t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + con->disconnect(); + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/mysqlinputtest1.sql b/test/cache/FailOver/mysqlinputtest1.sql new file mode 100644 index 00000000..4e2436f5 --- /dev/null +++ b/test/cache/FailOver/mysqlinputtest1.sql @@ -0,0 +1,11 @@ +CREATE TABLE t1 (f1 SMALLINT primary key, f2 INT , f3 BIGINT , f4 CHAR (10), f5 FLOAT , f6 float8 , f7 DATE , f8 TIME , f9 TIMESTAMP ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t1 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t1 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t1 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t1 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t1 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/FailOver/mysqlinputtest2.sql b/test/cache/FailOver/mysqlinputtest2.sql new file mode 100644 index 00000000..d9085781 --- /dev/null +++ b/test/cache/FailOver/mysqlinputtest2.sql @@ -0,0 +1,11 @@ +CREATE TABLE t2 (f1 SMALLINT primary key, f2 INT , f3 BIGINT , f4 CHAR (20), f5 FLOAT , f6 float8 , f7 DATE , f8 TIME , f9 TIMESTAMP ); +INSERT INTO t2 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t2 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t2 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t2 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t2 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t2 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t2 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t2 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t2 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t2 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/FailOver/selectconncsqldown.c b/test/cache/FailOver/selectconncsqldown.c new file mode 100644 index 00000000..85980a73 --- /dev/null +++ b/test/cache/FailOver/selectconncsqldown.c @@ -0,0 +1,52 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + sleep(15); + strcpy(statement,"select * from t1;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: select from t1(cached table) success\n"); + + strcpy(statement,"select * from t2;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: select from t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: select from t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"select * from t3;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: select from t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: select from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: select from t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/selectexeccsqldown.c b/test/cache/FailOver/selectexeccsqldown.c new file mode 100644 index 00000000..b89b8d9a --- /dev/null +++ b/test/cache/FailOver/selectexeccsqldown.c @@ -0,0 +1,52 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + strcpy(statement,"select * from t1;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + sleep(15); + con->commit(); + stmt->free(); + printf("csql down: select from t1(cached table) success\n"); + + strcpy(statement,"select * from t2;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: select from t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: select from t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"select * from t3;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: select from t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: select from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: select from t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/selectprepcsqldown.c b/test/cache/FailOver/selectprepcsqldown.c new file mode 100644 index 00000000..07ed8ddc --- /dev/null +++ b/test/cache/FailOver/selectprepcsqldown.c @@ -0,0 +1,52 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + strcpy(statement,"select * from t1;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + sleep(15); + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: select from t1(cached table) success\n"); + + strcpy(statement,"select * from t2;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: select from t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: select from t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"select * from t3;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: select from t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: select from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: select from t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/sybaseinputtest1.sql b/test/cache/FailOver/sybaseinputtest1.sql new file mode 100644 index 00000000..3a52c806 --- /dev/null +++ b/test/cache/FailOver/sybaseinputtest1.sql @@ -0,0 +1,11 @@ +CREATE TABLE t1 (f1 SMALLINT primary key, f2 INT , f3 BIGINT , f4 CHAR (10), f5 REAL , f6 FLOAT , f7 DATE , f8 TIME , f9 DATETIME ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t1 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t1 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t1 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t1 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t1 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/FailOver/sybaseinputtest2.sql b/test/cache/FailOver/sybaseinputtest2.sql new file mode 100644 index 00000000..8a885825 --- /dev/null +++ b/test/cache/FailOver/sybaseinputtest2.sql @@ -0,0 +1,11 @@ +CREATE TABLE t2 (f1 SMALLINT primary key, f2 INT , f3 BIGINT , f4 CHAR (20), f5 REAL , f6 FLOAT , f7 DATE , f8 TIME , f9 DATETIME ); +INSERT INTO t2 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t2 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t2 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t2 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t2 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t2 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t2 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t2 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t2 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t2 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/FailOver/test003.ksh b/test/cache/FailOver/test003.ksh new file mode 100755 index 00000000..0d8fb2e0 --- /dev/null +++ b/test/cache/FailOver/test003.ksh @@ -0,0 +1,66 @@ +#!/bin/ksh + +# 3. SELECT/INSERT/UPDATE/DELETE on MySQL table, when csqlserver is down should pass. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinput.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE + +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +isql $DS < $REL_PATH/dropt1t2.sql > /dev/null 2>&1 + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi +if [ $? -ne 0 ] +then + exit 2; +fi + +echo "table t1 inserted into target db" +# edit /tmp/csql/csqltable.conf +echo "csql server is down" +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oracsqlinput.oracle +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqldb2input.sql + else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinput.sql + fi +fi + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +rm -f /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +touch /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +exit 0; diff --git a/test/cache/FailOver/test004a.ksh b/test/cache/FailOver/test004a.ksh new file mode 100755 index 00000000..a481b283 --- /dev/null +++ b/test/cache/FailOver/test004a.ksh @@ -0,0 +1,103 @@ +#!/bin/ksh + +# 4a) After connect, csql goes down, then all select operations should go to MySQL directly for cached tables and MySQL tables. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi + +echo "table t2(not cached) inserted into target db" + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi + +echo "table t3 inserted into csql db" + +$REL_PATH/selectconncsqldown & +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 4; +fi + +rm -f /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +touch /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +exit 0; diff --git a/test/cache/FailOver/test004b.ksh b/test/cache/FailOver/test004b.ksh new file mode 100755 index 00000000..a78db38c --- /dev/null +++ b/test/cache/FailOver/test004b.ksh @@ -0,0 +1,112 @@ +#!/bin/ksh + +# 4b. After connect, csql goes down, then all insert operations should go to MySQL directly for cached tables and MySQL tables. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm --f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi + +echo "table t2(not cached) inserted into target db" + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 + +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi + +echo "table t3 inserted into csql db" + +if [ $DSN = "oracle" ] +then + ${REL_PATH}/insertconncsqldownora & +else + ${REL_PATH}/insertconncsqldown & +fi + +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 4; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/test004c.ksh b/test/cache/FailOver/test004c.ksh new file mode 100755 index 00000000..8f33dcc7 --- /dev/null +++ b/test/cache/FailOver/test004c.ksh @@ -0,0 +1,105 @@ +#!/bin/ksh + +# 4.After connect, csql goes down, then all update operations should go to MySQL directly for cached tables and MySQL tables. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +echo "table t1 cached into csql" +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi +echo "table t2(not cached) inserted into target db" + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi +echo "table t3 inserted into csql db" + +if [ $DSN = "oracle" ] +then + ${REL_PATH}/updateconncsqldownora & +else + ${REL_PATH}/updateconncsqldown & +fi + +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 4; +fi + +rm -f /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +touch /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +exit 0; diff --git a/test/cache/FailOver/test004d.ksh b/test/cache/FailOver/test004d.ksh new file mode 100755 index 00000000..55b602b1 --- /dev/null +++ b/test/cache/FailOver/test004d.ksh @@ -0,0 +1,109 @@ +#!/bin/ksh + +# 4.After connect, csql goes down, then all insert operations should go to MySQL directly for cached tables and MySQL tables. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 1; +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi + +echo "table t2(not cached) inserted into target db" + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>& 1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi +echo "table t3 inserted into csql db" + +$REL_PATH/deleteconncsqldown & +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 4; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/test006a.ksh b/test/cache/FailOver/test006a.ksh new file mode 100755 index 00000000..5b7a0ea4 --- /dev/null +++ b/test/cache/FailOver/test006a.ksh @@ -0,0 +1,103 @@ +#!/bin/ksh + +# 6a. After connect and prepare, csql goes down. it should do select for cached tables and MySQL in MySQL directly +# non cached csql tables will fail. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi + +echo "table t2(not cached) inserted into target db" +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi +echo "table t3 inserted into csql db" + +$REL_PATH/selectprepcsqldown & +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 4; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/test006b.ksh b/test/cache/FailOver/test006b.ksh new file mode 100755 index 00000000..3a0cf770 --- /dev/null +++ b/test/cache/FailOver/test006b.ksh @@ -0,0 +1,121 @@ +#!/bin/ksh + +# 6.After connect and prepare, csql goes down. it should do insert for cached tables and MySQL in MySQL directly +# non cached csql tables will fail. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 1; +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 4; +fi + +echo "table t2(not cached) inserted into target db" + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi +echo "table t3 inserted into csql db" + +if [ $DSN = "oracle" ] +then + ${REL_PATH}/insertprepcsqldownora & +else + ${REL_PATH}/insertprepcsqldown & +fi +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 5; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/test006c.ksh b/test/cache/FailOver/test006c.ksh new file mode 100755 index 00000000..bffa0dfa --- /dev/null +++ b/test/cache/FailOver/test006c.ksh @@ -0,0 +1,121 @@ +#!/bin/ksh + +# 6c. After connect and prepare, csql goes down. it should do update for cached tables and MySQL in MySQL directly +# non cached csql tables will fail. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 1; +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + exit 4; +fi + +echo "table t2(not cached) inserted into target db" +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi + +echo "table t3 inserted into csql db" + +if [ $DSN = "oracle" ] +then + ${REL_PATH}/updateprepcsqldownora & +else + ${REL_PATH}/updateprepcsqldown & +fi + +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 5; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/test006d.ksh b/test/cache/FailOver/test006d.ksh new file mode 100755 index 00000000..6641f60d --- /dev/null +++ b/test/cache/FailOver/test006d.ksh @@ -0,0 +1,107 @@ +#!/bin/ksh + +# 6d. After connect and prepare, csql goes down. it should do delete for cached tables and MySQL in MySQL directly +# non cached csql tables will fail. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + exit 3; +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 4; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + exit 5; +fi + +echo "table t2(not cached) inserted into target db" +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +echo "table t3 inserted into csql db" + +$REL_PATH/deleteprepcsqldown & +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 6; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/test008a.ksh b/test/cache/FailOver/test008a.ksh new file mode 100755 index 00000000..04ae576d --- /dev/null +++ b/test/cache/FailOver/test008a.ksh @@ -0,0 +1,112 @@ +#!/bin/ksh + +# 8.After connect, prepare, execute, CSQL goes down.fetch() should return records from MySQL for cached and MySQL table. +# fetch() on csql non-cached table will fail. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + exit 1; + fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi +if [ $? -ne 0 ] +then + exit 4; +fi + +echo "table t2(not cached) inserted into target db" + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi + +echo "table t3 inserted into csql db" + +$REL_PATH/selectexeccsqldown & +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 5; +fi +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/test008b.ksh b/test/cache/FailOver/test008b.ksh new file mode 100755 index 00000000..a337f93e --- /dev/null +++ b/test/cache/FailOver/test008b.ksh @@ -0,0 +1,118 @@ +#!/bin/ksh + +# 8d. After connect, prepare, execute, CSQL goes down.fetch() should return records from MySQL for cached and MySQL table. +# fetch() on csql non-cached table will fail. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi +if [ $? -ne 0 ] +then + exit 4; +fi +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 5; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi +if [ $? -ne 0 ] +then + exit 6; +fi +echo "table t2(not cached) inserted into target db" + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi + +echo "table t3 inserted into csql db" + +if [ $DSN = "oracle" ] +then + ${REL_PATH}/insertexeccsqldownora & +else + ${REL_PATH}/insertexeccsqldown & +fi + +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 7; +fi +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/test008c.ksh b/test/cache/FailOver/test008c.ksh new file mode 100755 index 00000000..100d92d9 --- /dev/null +++ b/test/cache/FailOver/test008c.ksh @@ -0,0 +1,119 @@ +#!/bin/ksh + +# 8c. After connect, prepare, execute, CSQL goes down.fetch() should return records from MySQL for cached and MySQL table. +# fetch() on csql non-cached table will fail. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + exit 3; +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 4; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + exit 5; +fi + +echo "table t2(not cached) inserted into target db" +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +fi +echo "table t3 inserted into csql db" + +if [ $DSN = "oracle" ] +then + ${REL_PATH}/updateexeccsqldownora & +else + ${REL_PATH}/updateexeccsqldown & +fi +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 6; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/test008d.ksh b/test/cache/FailOver/test008d.ksh new file mode 100755 index 00000000..0306da21 --- /dev/null +++ b/test/cache/FailOver/test008d.ksh @@ -0,0 +1,105 @@ +#!/bin/ksh + +# 8d. After connect, prepare, execute, CSQL goes down.fetch() should return records from MySQL for cached and MySQL table. +# fetch() on csql non-cached table will fail. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/FailOver/csql.conf +input=${PWD}/cache/FailOver/csqlinputt3.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/FailOver +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + exit 3; +fi + +echo "table t1(to be cached) inserted into target db" +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 4; +fi + +echo "table t1 cached into csql" + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest2.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest2.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + exit 5; +fi + +echo "table t2(not cached) inserted into target db" +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputt3.sql >/dev/null 2>&1 +echo "table t3 inserted into csql db" + +$REL_PATH/deleteexeccsqldown & +bgproc=$! +kill -9 $pid +ipcrm -M 1199 -M 2277 +echo "csql server is down" +wait $bgproc +isql $DS < $REL_PATH/dropt1t2.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 6; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/FailOver/updateconncsqldown.c b/test/cache/FailOver/updateconncsqldown.c new file mode 100644 index 00000000..e73c0902 --- /dev/null +++ b/test/cache/FailOver/updateconncsqldown.c @@ -0,0 +1,53 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + sleep(15); + + strcpy(statement,"update t1 set f4='poonam' where f1 = 4;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: update t1(cached table) success\n"); + + strcpy(statement,"update t2 set f4='poonam' where f1 = 4;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: update t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"update t3 set f4='poonam' where f1 = 4;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: update t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: update t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/updateconncsqldownora.c b/test/cache/FailOver/updateconncsqldownora.c new file mode 100644 index 00000000..8c47aab8 --- /dev/null +++ b/test/cache/FailOver/updateconncsqldownora.c @@ -0,0 +1,53 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + sleep(15); + + strcpy(statement,"update t1 set f2='FFF' where f1 = 50;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: update t1(cached table) success\n"); + + strcpy(statement,"update t2 set f2='FFF' where f1 = 50;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: update t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"update t3 set f2='FFF' where f1 = 50;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: update t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: update t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/updateexeccsqldown.c b/test/cache/FailOver/updateexeccsqldown.c new file mode 100644 index 00000000..efbb6cba --- /dev/null +++ b/test/cache/FailOver/updateexeccsqldown.c @@ -0,0 +1,53 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + strcpy(statement,"update t1 set f4='poonam' where f1 = 4;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + sleep(15); + con->commit(); + stmt->free(); + printf("csql down: update t1(cached table) success\n"); + + strcpy(statement,"update t2 set f4='poonam' where f1 = 4;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: update t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"update t3 set f4='poonam' where f1 = 4;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: update t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: update t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/updateexeccsqldownora.c b/test/cache/FailOver/updateexeccsqldownora.c new file mode 100644 index 00000000..6a9627d9 --- /dev/null +++ b/test/cache/FailOver/updateexeccsqldownora.c @@ -0,0 +1,53 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + strcpy(statement,"update t1 set f2='NNN' where f1 = 40;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + sleep(15); + con->commit(); + stmt->free(); + printf("csql down: update t1(cached table) success\n"); + + strcpy(statement,"update t2 set f2='NNN' where f1 = 40;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: update t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"update t3 set f2='NNN' where f1 = 40;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: update t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: update t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/updateprepcsqldown.c b/test/cache/FailOver/updateprepcsqldown.c new file mode 100644 index 00000000..81508621 --- /dev/null +++ b/test/cache/FailOver/updateprepcsqldown.c @@ -0,0 +1,53 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + strcpy(statement,"update t1 set f4='poonam' where f1 = 4;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + sleep(15); + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: update t1(cached table) success\n"); + + strcpy(statement,"update t2 set f4='poonam' where f1 = 4;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: update t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"update t3 set f4='poonam' where f1 = 4;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: update t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: update t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/FailOver/updateprepcsqldownora.c b/test/cache/FailOver/updateprepcsqldownora.c new file mode 100644 index 00000000..b21367ec --- /dev/null +++ b/test/cache/FailOver/updateprepcsqldownora.c @@ -0,0 +1,53 @@ +#include +#include +#include +int main() +{ + DbRetVal rv = OK; + AbsSqlConnection *con = SqlFactory :: createConnection(CSqlGateway); + rv = con->connect("root","manager"); + if(rv!=OK)return 1; + + AbsSqlStatement *stmt = SqlFactory :: createStatement(CSqlGateway); + stmt->setConnection(con); + char statement[200]; + + strcpy(statement,"update t1 set f2='MMM' where f1 = 40;"); + int rows=0; + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 1; } + sleep(15); + rv = stmt->execute(rows); + if(rv!=OK) { delete stmt; delete con; return 2; } + con->commit(); + stmt->free(); + printf("csql down: update t1(cached table) success\n"); + + strcpy(statement,"update t2 set f2='MMM' where f1 = 40;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { delete stmt; delete con; return 3; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update t2(not cached mysql table) failed\n"); delete stmt; delete con; return 4; } + printf("csql down: update t2(not cached mysql table) success\n"); + con->commit(); + stmt->free(); + + strcpy(statement,"update t3 set f2='MMM' where f1 = 40;"); + con->beginTrans(); + rv = stmt->prepare(statement); + if(rv!=OK) { printf("csql down: update t3(not cached csql table) failed\n"); delete stmt; delete con; return 5; } + rv = stmt->execute(rows); + if(rv!=OK) { printf("csql down: update from t3(not cached csql table) failed\n"); delete stmt; delete con; return 6; } + printf("csql down: update t3(not cached csql table) success\n"); + con->commit(); + + stmt->free(); + + delete stmt; + delete con; + return 0; +} + + diff --git a/test/cache/Gateway/complex.sql b/test/cache/Gateway/complex.sql new file mode 100644 index 00000000..a3abb947 --- /dev/null +++ b/test/cache/Gateway/complex.sql @@ -0,0 +1,6 @@ +select lower(f4) from t1; +select upper(f4) from t1; +select length(f4) from t1; +select substr(f4, 1, 4) from t1; +select lpad(f4, 10 , '*') from t1; +select rpad(f4, 10 , '*') from t1; diff --git a/test/cache/Gateway/csql.conf b/test/cache/Gateway/csql.conf new file mode 100644 index 00000000..832d84b5 --- /dev/null +++ b/test/cache/Gateway/csql.conf @@ -0,0 +1,94 @@ +# CSQL System Configuration File + +#####################################Server Section######################## +#Important: For Server section parameters, make sure that the value is same for the +# server process and all the csql client process which connects to it. otherwise, +# behavior is undefined + +# Page size. Each database is logically divided into pages and allocation happens +# in this unit of pages. Increasing this value will reduce frequent allocation of pages. +PAGE_SIZE= 8192 + +#Total number of client process which can connect and work with the +# database concurrently +MAX_PROCS = 100 + +# Maximum size of the system database. +MAX_SYS_DB_SIZE=1048576 + +#Maximum size of the user database file. +MAX_DB_SIZE=10485760 + +#Shared memory key to be used by the system to create and locate system database. +SYS_DB_KEY=1199 + +#Shared memory key to be used by the system to create and locate user database. +USER_DB_KEY=2277 + +#Give full path for the log file where important system actions are stored. +LOG_FILE=/tmp/csql/log/log.out + +#The virtual memory start address at which the shared memory segment +# will be created and attached. +MAP_ADDRESS=400000000 + +#Give full path for the database file where table and record information will +#be stored for durability +DATABASE_FILE=/tmp/csql/db + +#Important: For Server section parameters, make sure that the value is same for the +# server process and all the csql client process which connects to it. otherwise, +# behavior is undefined +#####################################Client Section######################## + +#Mutex timeout interval seconds +MUTEX_TIMEOUT_SECS=0 +MUTEX_TIMEOUT_USECS=5000 +MUTEX_TIMEOUT_RETRIES=10 + +#Lock timeout interval seconds +LOCK_TIMEOUT_SECS=0 +LOCK_TIMEOUT_USECS=5000 +LOCK_TIMEOUT_RETRIES=10 + +#####################################Cache Section######################## + +#Whether to enable caching of tables from target database +CACHE_TABLE=true + +#DSN Name to connect to the target database. +#This should be present in ~/odbc.ini file +DSN=myodbc3 + +ENABLE_BIDIRECTIONAL_CACHE=false + +CACHE_RECEIVER_WAIT_SECS=10 + +#Give full path for the file where all the cached table information is stored +TABLE_CONFIG_FILE=/tmp/csql/csqltable.conf + +##########################SqlNetworkServer Section######################## + +# Whether to enable SqlNetwork server +CSQL_SQL_SERVER=false + +# Set port for Network access +PORT=5678 + +# Whether to enable Replication across the sites +REPLICATION=false + +# No of sites to replicate +REPLICATION_SITES=16 + +# Give full path for the file where all the peer site information is stored +NETWORK_CONFIG_FILE=/tmp/csql/csqlnw.conf + +#Give full path of the file where all the DSN information is stored +DS_CONFIG_FILE=/tmp/csql/csqlds.conf + +# MSGKEY for creating msg queue for MsgQueue Server +MSG_KEY=2525 + +ID_SHM_KEY=1947 +#####################################End Section######################## diff --git a/test/cache/Gateway/csqldb2inputtest1.sql b/test/cache/Gateway/csqldb2inputtest1.sql new file mode 100644 index 00000000..f176323e --- /dev/null +++ b/test/cache/Gateway/csqldb2inputtest1.sql @@ -0,0 +1,13 @@ +INSERT INTO t1 VALUES(11, 2010,121212121, 'Prasad', 112.718, 111111111.222222, '2005-12-25', '21:42:35', '2005-12-25 21:42:35'); +INSERT INTO t1 VALUES(12, 2069,131313131, 'jiten', 122.718, 222222222.333333, '2025-12-25', '22:42:35', '2025-12-25 22:42:35'); +INSERT INTO t1 VALUES(13, 1857,141414141, 'hiten', 132.718, 333333333.444444, '2035-12-25', '23:42:35', '2035-12-25 23:42:35'); +INSERT INTO t1 VALUES(14, 1545,151515151, 'methane', 126.718, 444444444.555555, '2045-12-25', '00:42:35', '2032-12-25 00:42:35'); +INSERT INTO t1 VALUES(15, 1889,161616161, 'ethane', 211.718, 555555555.222222, '2065-12-25', '01:42:35', '2005-12-25 01:42:35'); +INSERT INTO t1 VALUES(16, 1789,171717171, 'sanjay', 222.718, 666666666.777777, '2010-12-25', '02:42:35', '2010-12-25 02:42:35'); +INSERT INTO t1 VALUES(17, 2032,181818181, 'vikrant', 233.718, 777777777.888888, '2020-12-25', '03:42:35', '2020-12-25 03:42:35'); +INSERT INTO t1 VALUES(18, 2038,444455555, 'nishant', 244.718, 888888888.999999, '2040-12-25', '04:42:35', '2031-12-25 04:42:35'); +INSERT INTO t1 VALUES(19, 2048,777755555, 'Sushant', 277.718, 333333333.999999, '2023-12-25', '05:42:35', '2011-12-25 04:42:35'); +INSERT INTO t1 VALUES(20, 1994,666633333, 'vishnu', 255.718, 333333333.666666, '2030-12-25', '06:42:35', '2030-12-25 05:42:35'); + + + diff --git a/test/cache/Gateway/csqldb2inputtest3a.sql b/test/cache/Gateway/csqldb2inputtest3a.sql new file mode 100644 index 00000000..f176323e --- /dev/null +++ b/test/cache/Gateway/csqldb2inputtest3a.sql @@ -0,0 +1,13 @@ +INSERT INTO t1 VALUES(11, 2010,121212121, 'Prasad', 112.718, 111111111.222222, '2005-12-25', '21:42:35', '2005-12-25 21:42:35'); +INSERT INTO t1 VALUES(12, 2069,131313131, 'jiten', 122.718, 222222222.333333, '2025-12-25', '22:42:35', '2025-12-25 22:42:35'); +INSERT INTO t1 VALUES(13, 1857,141414141, 'hiten', 132.718, 333333333.444444, '2035-12-25', '23:42:35', '2035-12-25 23:42:35'); +INSERT INTO t1 VALUES(14, 1545,151515151, 'methane', 126.718, 444444444.555555, '2045-12-25', '00:42:35', '2032-12-25 00:42:35'); +INSERT INTO t1 VALUES(15, 1889,161616161, 'ethane', 211.718, 555555555.222222, '2065-12-25', '01:42:35', '2005-12-25 01:42:35'); +INSERT INTO t1 VALUES(16, 1789,171717171, 'sanjay', 222.718, 666666666.777777, '2010-12-25', '02:42:35', '2010-12-25 02:42:35'); +INSERT INTO t1 VALUES(17, 2032,181818181, 'vikrant', 233.718, 777777777.888888, '2020-12-25', '03:42:35', '2020-12-25 03:42:35'); +INSERT INTO t1 VALUES(18, 2038,444455555, 'nishant', 244.718, 888888888.999999, '2040-12-25', '04:42:35', '2031-12-25 04:42:35'); +INSERT INTO t1 VALUES(19, 2048,777755555, 'Sushant', 277.718, 333333333.999999, '2023-12-25', '05:42:35', '2011-12-25 04:42:35'); +INSERT INTO t1 VALUES(20, 1994,666633333, 'vishnu', 255.718, 333333333.666666, '2030-12-25', '06:42:35', '2030-12-25 05:42:35'); + + + diff --git a/test/cache/Gateway/csqlinputtest1.sql b/test/cache/Gateway/csqlinputtest1.sql new file mode 100644 index 00000000..a75e185b --- /dev/null +++ b/test/cache/Gateway/csqlinputtest1.sql @@ -0,0 +1,13 @@ +INSERT INTO t1 VALUES(11, 2010,121212121, 'Prasad', 112.718, 111111111.222222, '2005/12/25', '21:42:35', '2005/12/25 21:42:35'); +INSERT INTO t1 VALUES(12, 2069,131313131, 'jiten', 122.718, 222222222.333333, '2025/12/25', '22:42:35', '2025/12/25 22:42:35'); +INSERT INTO t1 VALUES(13, 1857,141414141, 'hiten', 132.718, 333333333.444444, '2035/12/25', '23:42:35', '2035/12/25 23:42:35'); +INSERT INTO t1 VALUES(14, 1545,151515151, 'methane', 126.718, 444444444.555555, '2045/12/25', '00:42:35', '2032/12/25 00:42:35'); +INSERT INTO t1 VALUES(15, 1889,161616161, 'ethane', 211.718, 555555555.222222, '2065/12/25', '01:42:35', '2005/12/25 01:42:35'); +INSERT INTO t1 VALUES(16, 1789,171717171, 'sanjay', 222.718, 666666666.777777, '2010/12/25', '02:42:35', '2010/12/25 02:42:35'); +INSERT INTO t1 VALUES(17, 2032,181818181, 'vikrant', 233.718, 777777777.888888, '2020/12/25', '03:42:35', '2020/12/25 03:42:35'); +INSERT INTO t1 VALUES(18, 2038,444455555, 'nishant', 244.718, 888888888.999999, '2040/12/25', '04:42:35', '2031/12/25 04:42:35'); +INSERT INTO t1 VALUES(19, 2048,777755555, 'Sushant', 277.718, 333333333.999999, '2023/12/25', '05:42:35', '2011/12/25 04:42:35'); +INSERT INTO t1 VALUES(20, 1994,666633333, 'vishnu', 255.718, 333333333.666666, '2030/12/25', '06:42:35', '2030/12/25 05:42:35'); + + + diff --git a/test/cache/Gateway/csqlinputtest10.sql b/test/cache/Gateway/csqlinputtest10.sql new file mode 100644 index 00000000..b70cecf5 --- /dev/null +++ b/test/cache/Gateway/csqlinputtest10.sql @@ -0,0 +1,14 @@ +CREATE TABLE t1 (f1 SMALLINT, f2 INT, f3 BIGINT, f4 CHAR (20), f5 FLOAT, f6 DOUBLE, f7 DATE, f8 TIME, f9 TIMESTAMP, primary key(f1)); +INSERT INTO t1 VALUES(11, 2010,121212121, 'Prasad', 112.718, 111111111.222222, '2005/12/25', '21:42:35', '2005/12/25 21:42:35'); +INSERT INTO t1 VALUES(12, 2069,131313131, 'jiten', 122.718, 222222222.333333, '2025/12/25', '22:42:35', '2025/12/25 22:42:35'); +INSERT INTO t1 VALUES(13, 1857,141414141, 'hiten', 132.718, 333333333.444444, '2035/12/25', '23:42:35', '2035/12/25 23:42:35'); +INSERT INTO t1 VALUES(14, 1545,151515151, 'methane', 126.718, 444444444.555555, '2045/12/25', '00:42:35', '2032/12/25 00:42:35'); +INSERT INTO t1 VALUES(15, 1889,161616161, 'ethane', 211.718, 555555555.222222, '2065/12/25', '01:42:35', '2005/12/25 01:42:35'); +INSERT INTO t1 VALUES(16, 1789,171717171, 'sanjay', 222.718, 666666666.777777, '2010/12/25', '02:42:35', '2010/12/25 02:42:35'); +INSERT INTO t1 VALUES(17, 2032,181818181, 'vikrant', 233.718, 777777777.888888, '2020/12/25', '03:42:35', '2020/12/25 03:42:35'); +INSERT INTO t1 VALUES(18, 2038,444455555, 'nishant', 244.718, 888888888.999999, '2040/12/25', '04:42:35', '2031/12/25 04:42:35'); +INSERT INTO t1 VALUES(19, 2048,777755555, 'Sushant', 277.718, 333333333.999999, '2023/12/25', '05:42:35', '2011/12/25 04:42:35'); +INSERT INTO t1 VALUES(20, 1994,666633333, 'vishnu', 255.718, 333333333.666666, '2030/12/25', '06:42:35', '2030/12/25 05:42:35'); + + + diff --git a/test/cache/Gateway/csqlinputtest12.sql b/test/cache/Gateway/csqlinputtest12.sql new file mode 100644 index 00000000..9fb24b58 --- /dev/null +++ b/test/cache/Gateway/csqlinputtest12.sql @@ -0,0 +1,11 @@ +CREATE TABLE t3 (t3f1 SMALLINT, t3f2 INT , t3f3 BIGINT , t3f4 CHAR (20), t3f5 FLOAT , t3f6 DOUBLE , t3f7 DATE , t3f8 TIME , t3f9 TIMESTAMP, primary key (t3f1) ); +INSERT INTO t3 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t3 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t3 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t3 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t3 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t3 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t3 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t3 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t3 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t3 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/Gateway/csqlinputtest3.sql b/test/cache/Gateway/csqlinputtest3.sql new file mode 100644 index 00000000..1323dda9 --- /dev/null +++ b/test/cache/Gateway/csqlinputtest3.sql @@ -0,0 +1,11 @@ +CREATE TABLE t1 (f1 SMALLINT, f2 INT , f3 BIGINT , f4 CHAR (10), f5 FLOAT , f6 DOUBLE , f7 DATE , f8 TIME , f9 TIMESTAMP, primary key (f1) ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t1 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t1 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t1 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t1 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t1 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/Gateway/csqlinputtest3a.sql b/test/cache/Gateway/csqlinputtest3a.sql new file mode 100644 index 00000000..a75e185b --- /dev/null +++ b/test/cache/Gateway/csqlinputtest3a.sql @@ -0,0 +1,13 @@ +INSERT INTO t1 VALUES(11, 2010,121212121, 'Prasad', 112.718, 111111111.222222, '2005/12/25', '21:42:35', '2005/12/25 21:42:35'); +INSERT INTO t1 VALUES(12, 2069,131313131, 'jiten', 122.718, 222222222.333333, '2025/12/25', '22:42:35', '2025/12/25 22:42:35'); +INSERT INTO t1 VALUES(13, 1857,141414141, 'hiten', 132.718, 333333333.444444, '2035/12/25', '23:42:35', '2035/12/25 23:42:35'); +INSERT INTO t1 VALUES(14, 1545,151515151, 'methane', 126.718, 444444444.555555, '2045/12/25', '00:42:35', '2032/12/25 00:42:35'); +INSERT INTO t1 VALUES(15, 1889,161616161, 'ethane', 211.718, 555555555.222222, '2065/12/25', '01:42:35', '2005/12/25 01:42:35'); +INSERT INTO t1 VALUES(16, 1789,171717171, 'sanjay', 222.718, 666666666.777777, '2010/12/25', '02:42:35', '2010/12/25 02:42:35'); +INSERT INTO t1 VALUES(17, 2032,181818181, 'vikrant', 233.718, 777777777.888888, '2020/12/25', '03:42:35', '2020/12/25 03:42:35'); +INSERT INTO t1 VALUES(18, 2038,444455555, 'nishant', 244.718, 888888888.999999, '2040/12/25', '04:42:35', '2031/12/25 04:42:35'); +INSERT INTO t1 VALUES(19, 2048,777755555, 'Sushant', 277.718, 333333333.999999, '2023/12/25', '05:42:35', '2011/12/25 04:42:35'); +INSERT INTO t1 VALUES(20, 1994,666633333, 'vishnu', 255.718, 333333333.666666, '2030/12/25', '06:42:35', '2030/12/25 05:42:35'); + + + diff --git a/test/cache/Gateway/db2inputtest1.sql b/test/cache/Gateway/db2inputtest1.sql new file mode 100644 index 00000000..bd97bebf --- /dev/null +++ b/test/cache/Gateway/db2inputtest1.sql @@ -0,0 +1,11 @@ +CREATE TABLE t1 (f1 SMALLINT NOT NULL primary key, f2 INT , f3 BIGINT , f4 CHAR (10), f5 REAL , f6 FLOAT , f7 DATE , f8 TIME , f9 TIMESTAMP ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915-12-25', '11:42:35', '1971-12-25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926-05-16', '12:32:14', '1972-05-16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937-08-15', '13:45:36', '1973-08-15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946-12-25', '14:42:35', '1974-12-25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955-12-25', '15:42:35', '1975-12-25 15:42:35'); +INSERT INTO t1 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965-12-25', '16:42:35', '1976-12-25 16:42:35'); +INSERT INTO t1 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975-12-25', '17:42:35', '1977-12-25 17:42:35'); +INSERT INTO t1 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985-12-25', '18:42:35', '1978-12-25 18:42:35'); +INSERT INTO t1 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995-12-25', '19:42:35', '1979-12-25 19:42:35'); +INSERT INTO t1 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915-12-25', '20:42:35', '1980-12-25 20:42:35'); diff --git a/test/cache/Gateway/db2inputtest12.sql b/test/cache/Gateway/db2inputtest12.sql new file mode 100644 index 00000000..ec76ed42 --- /dev/null +++ b/test/cache/Gateway/db2inputtest12.sql @@ -0,0 +1,11 @@ +CREATE TABLE t2 (t2f1 SMALLINT NOT NULL primary key, t2f2 INT , t2f3 BIGINT , t2f4 CHAR (20), t2f5 REAL , t2f6 FLOAT , t2f7 DATE , t2f8 TIME , t2f9 TIMESTAMP ); +INSERT INTO t2 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915-12-25', '11:42:35', '1971-12-25 11:42:35'); +INSERT INTO t2 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926-05-16', '12:32:14', '1972-05-16 12:32:14'); +INSERT INTO t2 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937-08-15', '13:45:36', '1973-08-15 13:45:36'); +INSERT INTO t2 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946-12-25', '14:42:35', '1974-12-25 14:42:35'); +INSERT INTO t2 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955-12-25', '15:42:35', '1975-12-25 15:42:35'); +INSERT INTO t2 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965-12-25', '16:42:35', '1976-12-25 16:42:35'); +INSERT INTO t2 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975-12-25', '17:42:35', '1977-12-25 17:42:35'); +INSERT INTO t2 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985-12-25', '18:42:35', '1978-12-25 18:42:35'); +INSERT INTO t2 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995-12-25', '19:42:35', '1979-12-25 19:42:35'); +INSERT INTO t2 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915-12-25', '20:42:35', '1980-12-25 20:42:35'); diff --git a/test/cache/Gateway/db2inputtest5.sql b/test/cache/Gateway/db2inputtest5.sql new file mode 100644 index 00000000..be36c423 --- /dev/null +++ b/test/cache/Gateway/db2inputtest5.sql @@ -0,0 +1,6 @@ +CREATE TABLE t1 (f1 SMALLINT NOT NULL primary key, f2 INT , f3 BIGINT , f4 CHAR (10), f5 REAL , f6 FLOAT , f7 DATE , f8 TIME , f9 TIMESTAMP ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'venkatesha', 113.141, 111111111.111111, '1915-12-25', '11:42:35', '1971-12-25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'gopal', 114.567, 222222222.222222, '1926-05-16', '12:32:14', '1972-05-16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'ram', 122.700, 333333333.333333, '1937-08-15', '13:45:36', '1973-08-15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'anil', 142.718, 444444444.444444, '1946-12-25', '14:42:35', '1974-12-25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955-12-25', '15:42:35', '1975-12-25 15:42:35'); diff --git a/test/cache/Gateway/db2update.sql b/test/cache/Gateway/db2update.sql new file mode 100644 index 00000000..ebd59c08 --- /dev/null +++ b/test/cache/Gateway/db2update.sql @@ -0,0 +1,7 @@ +update t1 set f2=1995, f9 = '1971-12-25 11:42:35' where f1 = 2; +update t1 set f3=333666999, f9 = '1973-08-15 13:45:36' where f1 = 3; +update t1 set f4='poonam', f9 = '1974-12-25 14:42:35' where f1 = 4; +update t1 set f7='1978-09-12', f9 = '1977-12-25 17:42:35' where f1 = 7; +update t1 set f8='12:34:56', f9 = '1978-12-25 18:42:35' where f1 =8; +update t1 set f9='1978-09-12 12:34:56', f9 = '1979-12-25 19:42:35' where f1 = 9; + diff --git a/test/cache/Gateway/db2updatet2.sql b/test/cache/Gateway/db2updatet2.sql new file mode 100644 index 00000000..2f663290 --- /dev/null +++ b/test/cache/Gateway/db2updatet2.sql @@ -0,0 +1,7 @@ +update t2 set t2f2=1995, t2f9 = '1971-12-25 11:42:35' where t2f1 = 2; +update t2 set t2f3=333666999, t2f9 = '1973-08-15 13:45:36' where t2f1 = 3; +update t2 set t2f4='poonam', t2f9 = '1974-12-25 14:42:35' where t2f1 = 4; +update t2 set t2f7='1978-09-12', t2f9 = '1977-12-25 17:42:35' where t2f1 = 7; +update t2 set t2f8='12:34:56', t2f9 = '1978-12-25 18:42:35' where t2f1 =8; +update t2 set t2f9='1978-09-12 12:34:56', t2f9 = '1979-12-25 19:42:35' where t2f1 = 9; + diff --git a/test/cache/Gateway/db2updatet3.sql b/test/cache/Gateway/db2updatet3.sql new file mode 100644 index 00000000..fbdf864d --- /dev/null +++ b/test/cache/Gateway/db2updatet3.sql @@ -0,0 +1,7 @@ +update t3 set t3f2=1995, t3f9 = '1971-12-25 11:42:35' where t3f1 = 2; +update t3 set t3f3=333666999, t3f9 = '1973-08-15 13:45:36' where t3f1 = 3; +update t3 set t3f4='poonam', t3f9 = '1974-12-25 14:42:35' where t3f1 = 4; +update t3 set t3f7='1978-09-12', t3f9 = '1977-12-25 17:42:35' where t3f1 = 7; +update t3 set t3f8='12:34:56', t3f9 = '1978-12-25 18:42:35' where t3f1 =8; +update t3 set t3f9='1978-09-12 12:34:56', t3f9 = '1979-12-25 19:42:35' where t3f1 = 9; + diff --git a/test/cache/Gateway/delete.sql b/test/cache/Gateway/delete.sql new file mode 100644 index 00000000..f2a7f3a1 --- /dev/null +++ b/test/cache/Gateway/delete.sql @@ -0,0 +1,7 @@ +delete from t1 where f2=1994; +delete from t1 where f3=777755555; +delete from t1 where f4='nishant'; +delete from t1 where f7='2065-12-25'; +delete from t1 where f8='00:42:35'; +delete from t1 where f9='2035-12-25 23:42:35'; + diff --git a/test/cache/Gateway/dropall.sql b/test/cache/Gateway/dropall.sql new file mode 100644 index 00000000..79906a97 --- /dev/null +++ b/test/cache/Gateway/dropall.sql @@ -0,0 +1,100 @@ +drop table t1; +drop table t2; +drop table t3; +drop table t4; +drop table t5; +drop table t6; +drop table t7; +drop table t8; +drop table t9; +drop table t10; +drop table t11; +drop table t12; +drop table t13; +drop table t14; +drop table t15; +drop table t16; +drop table t17; +drop table t18; +drop table t19; +drop table t20; +drop table t21; +drop table t22; +drop table t23; +drop table t24; +drop table t25; +drop table t26; +drop table t27; +drop table t28; +drop table t29; +drop table t30; +drop table t31; +drop table t32; +drop table t33; +drop table t34; +drop table t35; +drop table t36; +drop table t37; +drop table t38; +drop table t39; +drop table t40; +drop table t41; +drop table t42; +drop table t43; +drop table t44; +drop table t45; +drop table t46; +drop table t47; +drop table t48; +drop table t49; +drop table t50; +drop table t51; +drop table t52; +drop table t53; +drop table t54; +drop table t55; +drop table t56; +drop table t57; +drop table t58; +drop table t59; +drop table t60; +drop table t61; +drop table t62; +drop table t63; +drop table t64; +drop table t65; +drop table t66; +drop table t67; +drop table t68; +drop table t69; +drop table t70; +drop table t71; +drop table t72; +drop table t73; +drop table t74; +drop table t75; +drop table t76; +drop table t77; +drop table t78; +drop table t79; +drop table t80; +drop table t81; +drop table t82; +drop table t83; +drop table t84; +drop table t85; +drop table t86; +drop table t87; +drop table t88; +drop table t89; +drop table t90; +drop table t91; +drop table t92; +drop table t93; +drop table t94; +drop table t95; +drop table t96; +drop table t97; +drop table t98; +drop table t99; +drop table t100; diff --git a/test/cache/Gateway/dropt1t2t3.sql b/test/cache/Gateway/dropt1t2t3.sql new file mode 100644 index 00000000..3e9ecdb1 --- /dev/null +++ b/test/cache/Gateway/dropt1t2t3.sql @@ -0,0 +1,3 @@ +drop table t1; +drop table t2; +drop table t3; diff --git a/test/cache/Gateway/exp.test001.ksh b/test/cache/Gateway/exp.test001.ksh new file mode 100644 index 00000000..7ff0f7e0 --- /dev/null +++ b/test/cache/Gateway/exp.test001.ksh @@ -0,0 +1,140 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test001.ksh.SunOS b/test/cache/Gateway/exp.test001.ksh.SunOS new file mode 100644 index 00000000..ebf1100e --- /dev/null +++ b/test/cache/Gateway/exp.test001.ksh.SunOS @@ -0,0 +1,138 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test001.ksh.psql b/test/cache/Gateway/exp.test001.ksh.psql new file mode 100644 index 00000000..a9b68178 --- /dev/null +++ b/test/cache/Gateway/exp.test001.ksh.psql @@ -0,0 +1,140 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35 | +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35 | +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35 | +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35 | +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35 | +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35 | +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35 | +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35 | +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35 | +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35 | +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35 | +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35 | +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35 | +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35 | +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test001.ksh.x86_64 b/test/cache/Gateway/exp.test001.ksh.x86_64 new file mode 100644 index 00000000..ced3ba4b --- /dev/null +++ b/test/cache/Gateway/exp.test001.ksh.x86_64 @@ -0,0 +1,140 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test001n.ksh b/test/cache/Gateway/exp.test001n.ksh new file mode 100644 index 00000000..7ff0f7e0 --- /dev/null +++ b/test/cache/Gateway/exp.test001n.ksh @@ -0,0 +1,140 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test001n.ksh.SunOS b/test/cache/Gateway/exp.test001n.ksh.SunOS new file mode 100644 index 00000000..ebf1100e --- /dev/null +++ b/test/cache/Gateway/exp.test001n.ksh.SunOS @@ -0,0 +1,138 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test001n.ksh.psql b/test/cache/Gateway/exp.test001n.ksh.psql new file mode 100644 index 00000000..a9b68178 --- /dev/null +++ b/test/cache/Gateway/exp.test001n.ksh.psql @@ -0,0 +1,140 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35 | +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35 | +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35 | +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35 | +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35 | +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35 | +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35 | +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35 | +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35 | +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35 | +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35 | +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35 | +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35 | +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35 | +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test001n.ksh.x86_64 b/test/cache/Gateway/exp.test001n.ksh.x86_64 new file mode 100644 index 00000000..ced3ba4b --- /dev/null +++ b/test/cache/Gateway/exp.test001n.ksh.x86_64 @@ -0,0 +1,140 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test002.ksh b/test/cache/Gateway/exp.test002.ksh new file mode 100644 index 00000000..3564afe5 --- /dev/null +++ b/test/cache/Gateway/exp.test002.ksh @@ -0,0 +1,65 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test002.ksh.SunOS b/test/cache/Gateway/exp.test002.ksh.SunOS new file mode 100644 index 00000000..426a13cc --- /dev/null +++ b/test/cache/Gateway/exp.test002.ksh.SunOS @@ -0,0 +1,63 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test002.ksh.psql b/test/cache/Gateway/exp.test002.ksh.psql new file mode 100644 index 00000000..0449f4b1 --- /dev/null +++ b/test/cache/Gateway/exp.test002.ksh.psql @@ -0,0 +1,65 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35 | +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35 | +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35 | +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35 | +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35 | +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35 | +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35 | +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35 | +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35 | +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35 | +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35 | +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35 | +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35 | +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35 | +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test002.ksh.x86_64 b/test/cache/Gateway/exp.test002.ksh.x86_64 new file mode 100644 index 00000000..1575bf37 --- /dev/null +++ b/test/cache/Gateway/exp.test002.ksh.x86_64 @@ -0,0 +1,65 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test002n.ksh b/test/cache/Gateway/exp.test002n.ksh new file mode 100644 index 00000000..3564afe5 --- /dev/null +++ b/test/cache/Gateway/exp.test002n.ksh @@ -0,0 +1,65 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test002n.ksh.SunOS b/test/cache/Gateway/exp.test002n.ksh.SunOS new file mode 100644 index 00000000..426a13cc --- /dev/null +++ b/test/cache/Gateway/exp.test002n.ksh.SunOS @@ -0,0 +1,63 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test002n.ksh.psql b/test/cache/Gateway/exp.test002n.ksh.psql new file mode 100644 index 00000000..0449f4b1 --- /dev/null +++ b/test/cache/Gateway/exp.test002n.ksh.psql @@ -0,0 +1,65 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35 | +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35 | +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35 | +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35 | +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35 | +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35 | +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35 | +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35 | +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35 | +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35 | +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35 | +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35 | +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35 | +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35 | +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test002n.ksh.x86_64 b/test/cache/Gateway/exp.test002n.ksh.x86_64 new file mode 100644 index 00000000..1575bf37 --- /dev/null +++ b/test/cache/Gateway/exp.test002n.ksh.x86_64 @@ -0,0 +1,65 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 13 | 1857 | 141414141 | hiten | 132.718 | 333333333.444444 | 2035-12-25| 23:42:35| 2035-12-25 23:42:35| +| 14 | 1545 | 151515151 | methane | 126.718 | 444444444.555555 | 2045-12-25| 00:42:35| 2032-12-25 00:42:35| +| 15 | 1889 | 161616161 | ethane | 211.718 | 555555555.222222 | 2065-12-25| 01:42:35| 2005-12-25 01:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| +| 18 | 2038 | 444455555 | nishant | 244.718 | 888888888.999999 | 2040-12-25| 04:42:35| 2031-12-25 04:42:35| +| 19 | 2048 | 777755555 | Sushant | 277.718 | 333333333.999999 | 2023-12-25| 05:42:35| 2011-12-25 04:42:35| +| 20 | 1994 | 666633333 | vishnu | 255.718 | 333333333.666666 | 2030-12-25| 06:42:35| 2030-12-25 05:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 20 +20 rows fetched +SQL> +---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1995 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1971-12-25 11:42:35| +| 3 | 2008 | 333666999 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | poonam | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1978-09-12| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 12:34:56| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| +| 11 | 2010 | 121212121 | Prasad | 112.718 | 111111111.222222 | 2005-12-25| 21:42:35| 2005-12-25 21:42:35| +| 12 | 2069 | 131313131 | jiten | 122.718 | 222222222.333333 | 2025-12-25| 22:42:35| 2025-12-25 22:42:35| +| 16 | 1789 | 171717171 | sanjay | 222.718 | 666666666.777777 | 2010-12-25| 02:42:35| 2010-12-25 02:42:35| +| 17 | 2032 | 181818181 | vikrant | 233.718 | 777777777.888888 | 2020-12-25| 03:42:35| 2020-12-25 03:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 14 +14 rows fetched +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test003.ksh b/test/cache/Gateway/exp.test003.ksh new file mode 100644 index 00000000..105e1406 --- /dev/null +++ b/test/cache/Gateway/exp.test003.ksh @@ -0,0 +1,86 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +[ISQL]ERROR: Could not SQLExecute +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +[ISQL]ERROR: Could not SQLExecute +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test003.ksh.SunOS b/test/cache/Gateway/exp.test003.ksh.SunOS new file mode 100644 index 00000000..ecf54174 --- /dev/null +++ b/test/cache/Gateway/exp.test003.ksh.SunOS @@ -0,0 +1,84 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +[ISQL]ERROR: Could not SQLExecute ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + +[ISQL]ERROR: Could not SQLExecute ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test003.ksh.x86_64 b/test/cache/Gateway/exp.test003.ksh.x86_64 new file mode 100644 index 00000000..618ea54b --- /dev/null +++ b/test/cache/Gateway/exp.test003.ksh.x86_64 @@ -0,0 +1,86 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; +[ISQL]ERROR: Could not SQLExecute +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; +[ISQL]ERROR: Could not SQLExecute +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test003n.ksh b/test/cache/Gateway/exp.test003n.ksh new file mode 100644 index 00000000..105e1406 --- /dev/null +++ b/test/cache/Gateway/exp.test003n.ksh @@ -0,0 +1,86 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +[ISQL]ERROR: Could not SQLExecute +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +[ISQL]ERROR: Could not SQLExecute +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test003n.ksh.SunOS b/test/cache/Gateway/exp.test003n.ksh.SunOS new file mode 100644 index 00000000..ecf54174 --- /dev/null +++ b/test/cache/Gateway/exp.test003n.ksh.SunOS @@ -0,0 +1,84 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +[ISQL]ERROR: Could not SQLExecute ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + +[ISQL]ERROR: Could not SQLExecute ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test003n.ksh.x86_64 b/test/cache/Gateway/exp.test003n.ksh.x86_64 new file mode 100644 index 00000000..618ea54b --- /dev/null +++ b/test/cache/Gateway/exp.test003n.ksh.x86_64 @@ -0,0 +1,86 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; +[ISQL]ERROR: Could not SQLExecute +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; +[ISQL]ERROR: Could not SQLExecute +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test004.ksh b/test/cache/Gateway/exp.test004.ksh new file mode 100644 index 00000000..12b65b25 --- /dev/null +++ b/test/cache/Gateway/exp.test004.ksh @@ -0,0 +1,36 @@ +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +SQL> Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test004.ksh.SunOS b/test/cache/Gateway/exp.test004.ksh.SunOS new file mode 100644 index 00000000..0ff1c3bb --- /dev/null +++ b/test/cache/Gateway/exp.test004.ksh.SunOS @@ -0,0 +1,34 @@ +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQL> Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test004.ksh.psql b/test/cache/Gateway/exp.test004.ksh.psql new file mode 100644 index 00000000..b38c720f --- /dev/null +++ b/test/cache/Gateway/exp.test004.ksh.psql @@ -0,0 +1,36 @@ +Statement execute failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +SQL> Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test004.ksh.x86_64 b/test/cache/Gateway/exp.test004.ksh.x86_64 new file mode 100644 index 00000000..be8fe1bf --- /dev/null +++ b/test/cache/Gateway/exp.test004.ksh.x86_64 @@ -0,0 +1,36 @@ +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; +SQL> Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test004n.ksh b/test/cache/Gateway/exp.test004n.ksh new file mode 100644 index 00000000..12b65b25 --- /dev/null +++ b/test/cache/Gateway/exp.test004n.ksh @@ -0,0 +1,36 @@ +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +SQL> Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test004n.ksh.SunOS b/test/cache/Gateway/exp.test004n.ksh.SunOS new file mode 100644 index 00000000..5d8a9b43 --- /dev/null +++ b/test/cache/Gateway/exp.test004n.ksh.SunOS @@ -0,0 +1,34 @@ +Statement prepare failed with error -23 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQL> Statement prepare failed with error -23 +Statement prepare failed with error -23 +Statement prepare failed with error -23 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement prepare failed with error -23 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test004n.ksh.psql b/test/cache/Gateway/exp.test004n.ksh.psql new file mode 100644 index 00000000..b38c720f --- /dev/null +++ b/test/cache/Gateway/exp.test004n.ksh.psql @@ -0,0 +1,36 @@ +Statement execute failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +SQL> Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; +SQL> \ No newline at end of file diff --git a/test/cache/Gateway/exp.test004n.ksh.x86_64 b/test/cache/Gateway/exp.test004n.ksh.x86_64 new file mode 100644 index 00000000..36ec49ba --- /dev/null +++ b/test/cache/Gateway/exp.test004n.ksh.x86_64 @@ -0,0 +1,36 @@ +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; +SQL> Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement prepare failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement prepare failed with error -14 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; +SQL> diff --git a/test/cache/Gateway/exp.test005.ksh b/test/cache/Gateway/exp.test005.ksh new file mode 100644 index 00000000..cb5c3543 --- /dev/null +++ b/test/cache/Gateway/exp.test005.ksh @@ -0,0 +1,98 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + lower(f4) +--------------------------------------------------------- + govind + gopal + kishor + kiran + ganesh + suresh + praba + karan + sharan + vijay + +--------------------------------------------------------- + upper(f4) +--------------------------------------------------------- + GOVIND + GOPAL + KISHOR + KIRAN + GANESH + SURESH + PRABA + KARAN + SHARAN + VIJAY + +--------------------------------------------------------- + length(f4) +--------------------------------------------------------- + 6 + 5 + 6 + 5 + 6 + 6 + 5 + 5 + 6 + 5 + +--------------------------------------------------------- + substr(f4, 1, 4) +--------------------------------------------------------- + Govi + Gopa + kish + kira + gane + sure + Prab + kara + shar + vija + +--------------------------------------------------------- + lpad(f4, 10 , '*') +--------------------------------------------------------- + ****Govind + *****Gopal + ****kishor + *****kiran + ****ganesh + ****suresh + *****Praba + *****karan + ****sharan + *****vijay + +--------------------------------------------------------- + rpad(f4, 10 , '*') +--------------------------------------------------------- + Govind**** + Gopal***** + kishor**** + kiran***** + ganesh**** + suresh**** + Praba***** + karan***** + sharan**** + vijay***** + diff --git a/test/cache/Gateway/exp.test005.ksh.psql b/test/cache/Gateway/exp.test005.ksh.psql new file mode 100644 index 00000000..81ad459a --- /dev/null +++ b/test/cache/Gateway/exp.test005.ksh.psql @@ -0,0 +1,98 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + lower +--------------------------------------------------------- + govind + gopal + kishor + kiran + ganesh + suresh + praba + karan + sharan + vijay + +--------------------------------------------------------- + upper +--------------------------------------------------------- + GOVIND + GOPAL + KISHOR + KIRAN + GANESH + SURESH + PRABA + KARAN + SHARAN + VIJAY + +--------------------------------------------------------- + length +--------------------------------------------------------- + 6 + 5 + 6 + 5 + 6 + 6 + 5 + 5 + 6 + 5 + +--------------------------------------------------------- + substr +--------------------------------------------------------- + Govi + Gopa + kish + kira + gane + sure + Prab + kara + shar + vija + +--------------------------------------------------------- + lpad +--------------------------------------------------------- + ****Govind + *****Gopal + ****kishor + *****kiran + ****ganesh + ****suresh + *****Praba + *****karan + ****sharan + *****vijay + +--------------------------------------------------------- + rpad +--------------------------------------------------------- + Govind**** + Gopal***** + kishor**** + kiran***** + ganesh**** + suresh**** + Praba***** + karan***** + sharan**** + vijay***** + diff --git a/test/cache/Gateway/exp.test005n.ksh b/test/cache/Gateway/exp.test005n.ksh new file mode 100644 index 00000000..cb5c3543 --- /dev/null +++ b/test/cache/Gateway/exp.test005n.ksh @@ -0,0 +1,98 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + lower(f4) +--------------------------------------------------------- + govind + gopal + kishor + kiran + ganesh + suresh + praba + karan + sharan + vijay + +--------------------------------------------------------- + upper(f4) +--------------------------------------------------------- + GOVIND + GOPAL + KISHOR + KIRAN + GANESH + SURESH + PRABA + KARAN + SHARAN + VIJAY + +--------------------------------------------------------- + length(f4) +--------------------------------------------------------- + 6 + 5 + 6 + 5 + 6 + 6 + 5 + 5 + 6 + 5 + +--------------------------------------------------------- + substr(f4, 1, 4) +--------------------------------------------------------- + Govi + Gopa + kish + kira + gane + sure + Prab + kara + shar + vija + +--------------------------------------------------------- + lpad(f4, 10 , '*') +--------------------------------------------------------- + ****Govind + *****Gopal + ****kishor + *****kiran + ****ganesh + ****suresh + *****Praba + *****karan + ****sharan + *****vijay + +--------------------------------------------------------- + rpad(f4, 10 , '*') +--------------------------------------------------------- + Govind**** + Gopal***** + kishor**** + kiran***** + ganesh**** + suresh**** + Praba***** + karan***** + sharan**** + vijay***** + diff --git a/test/cache/Gateway/exp.test005n.ksh.psql b/test/cache/Gateway/exp.test005n.ksh.psql new file mode 100644 index 00000000..81ad459a --- /dev/null +++ b/test/cache/Gateway/exp.test005n.ksh.psql @@ -0,0 +1,98 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + lower +--------------------------------------------------------- + govind + gopal + kishor + kiran + ganesh + suresh + praba + karan + sharan + vijay + +--------------------------------------------------------- + upper +--------------------------------------------------------- + GOVIND + GOPAL + KISHOR + KIRAN + GANESH + SURESH + PRABA + KARAN + SHARAN + VIJAY + +--------------------------------------------------------- + length +--------------------------------------------------------- + 6 + 5 + 6 + 5 + 6 + 6 + 5 + 5 + 6 + 5 + +--------------------------------------------------------- + substr +--------------------------------------------------------- + Govi + Gopa + kish + kira + gane + sure + Prab + kara + shar + vija + +--------------------------------------------------------- + lpad +--------------------------------------------------------- + ****Govind + *****Gopal + ****kishor + *****kiran + ****ganesh + ****suresh + *****Praba + *****karan + ****sharan + *****vijay + +--------------------------------------------------------- + rpad +--------------------------------------------------------- + Govind**** + Gopal***** + kishor**** + kiran***** + ganesh**** + suresh**** + Praba***** + karan***** + sharan**** + vijay***** + diff --git a/test/cache/Gateway/exp.test006.ksh b/test/cache/Gateway/exp.test006.ksh new file mode 100644 index 00000000..fd699884 --- /dev/null +++ b/test/cache/Gateway/exp.test006.ksh @@ -0,0 +1,63 @@ +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + +--------------------------------------------------------- + lower(f4) +--------------------------------------------------------- + venkatesha + gopal + ram + anil + ganesh + +--------------------------------------------------------- + upper(f4) +--------------------------------------------------------- + VENKATESHA + GOPAL + RAM + ANIL + GANESH + +--------------------------------------------------------- + length(f4) +--------------------------------------------------------- + 10 + 5 + 3 + 4 + 6 + +--------------------------------------------------------- + substr(f4, 1, 4) +--------------------------------------------------------- + venk + gopa + ram + anil + gane + +--------------------------------------------------------- + lpad(f4, 10 , '*') +--------------------------------------------------------- + venkatesha + *****gopal + *******ram + ******anil + ****ganesh + +--------------------------------------------------------- + rpad(f4, 10 , '*') +--------------------------------------------------------- + venkatesha + gopal***** + ram******* + anil****** + ganesh**** + diff --git a/test/cache/Gateway/exp.test006.ksh.psql b/test/cache/Gateway/exp.test006.ksh.psql new file mode 100644 index 00000000..b33510e7 --- /dev/null +++ b/test/cache/Gateway/exp.test006.ksh.psql @@ -0,0 +1,63 @@ +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + +--------------------------------------------------------- + lower +--------------------------------------------------------- + venkatesha + gopal + ram + anil + ganesh + +--------------------------------------------------------- + upper +--------------------------------------------------------- + VENKATESHA + GOPAL + RAM + ANIL + GANESH + +--------------------------------------------------------- + length +--------------------------------------------------------- + 10 + 5 + 3 + 4 + 6 + +--------------------------------------------------------- + substr +--------------------------------------------------------- + venk + gopa + ram + anil + gane + +--------------------------------------------------------- + lpad +--------------------------------------------------------- + venkatesha + *****gopal + *******ram + ******anil + ****ganesh + +--------------------------------------------------------- + rpad +--------------------------------------------------------- + venkatesha + gopal***** + ram******* + anil****** + ganesh**** + diff --git a/test/cache/Gateway/exp.test006n.ksh b/test/cache/Gateway/exp.test006n.ksh new file mode 100644 index 00000000..fd699884 --- /dev/null +++ b/test/cache/Gateway/exp.test006n.ksh @@ -0,0 +1,63 @@ +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + +--------------------------------------------------------- + lower(f4) +--------------------------------------------------------- + venkatesha + gopal + ram + anil + ganesh + +--------------------------------------------------------- + upper(f4) +--------------------------------------------------------- + VENKATESHA + GOPAL + RAM + ANIL + GANESH + +--------------------------------------------------------- + length(f4) +--------------------------------------------------------- + 10 + 5 + 3 + 4 + 6 + +--------------------------------------------------------- + substr(f4, 1, 4) +--------------------------------------------------------- + venk + gopa + ram + anil + gane + +--------------------------------------------------------- + lpad(f4, 10 , '*') +--------------------------------------------------------- + venkatesha + *****gopal + *******ram + ******anil + ****ganesh + +--------------------------------------------------------- + rpad(f4, 10 , '*') +--------------------------------------------------------- + venkatesha + gopal***** + ram******* + anil****** + ganesh**** + diff --git a/test/cache/Gateway/exp.test006n.ksh.psql b/test/cache/Gateway/exp.test006n.ksh.psql new file mode 100644 index 00000000..110c5613 --- /dev/null +++ b/test/cache/Gateway/exp.test006n.ksh.psql @@ -0,0 +1,63 @@ +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + +--------------------------------------------------------- + lower +--------------------------------------------------------- + venkatesha + gopal + ram + anil + ganesh + +--------------------------------------------------------- + upper +--------------------------------------------------------- + VENKATESHA + GOPAL + RAM + ANIL + GANESH + +--------------------------------------------------------- + length +--------------------------------------------------------- + 10 + 5 + 3 + 4 + 6 + +--------------------------------------------------------- + substr +--------------------------------------------------------- + venk + gopa + ram + anil + gane + +--------------------------------------------------------- + lpad +--------------------------------------------------------- + venkatesha + *****gopal + *******ram + ******anil + ****ganesh + +--------------------------------------------------------- + rpad +--------------------------------------------------------- + venkatesha + gopal***** + ram******* + anil****** + ganesh**** + diff --git a/test/cache/Gateway/exp.test007.ksh b/test/cache/Gateway/exp.test007.ksh new file mode 100644 index 00000000..21773651 --- /dev/null +++ b/test/cache/Gateway/exp.test007.ksh @@ -0,0 +1,11 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + +Statement prepare failed with error -14 +Statement prepare failed with error -14 diff --git a/test/cache/Gateway/exp.test007.ksh.psql b/test/cache/Gateway/exp.test007.ksh.psql new file mode 100644 index 00000000..bd854df8 --- /dev/null +++ b/test/cache/Gateway/exp.test007.ksh.psql @@ -0,0 +1,11 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + +Statement execute failed with error -14 +Statement execute failed with error -14 diff --git a/test/cache/Gateway/exp.test007n.ksh b/test/cache/Gateway/exp.test007n.ksh new file mode 100644 index 00000000..21773651 --- /dev/null +++ b/test/cache/Gateway/exp.test007n.ksh @@ -0,0 +1,11 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + +Statement prepare failed with error -14 +Statement prepare failed with error -14 diff --git a/test/cache/Gateway/exp.test007n.ksh.SunOS b/test/cache/Gateway/exp.test007n.ksh.SunOS new file mode 100644 index 00000000..be698137 --- /dev/null +++ b/test/cache/Gateway/exp.test007n.ksh.SunOS @@ -0,0 +1,11 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + +Statement prepare failed with error -23 +Statement prepare failed with error -23 diff --git a/test/cache/Gateway/exp.test007n.ksh.psql b/test/cache/Gateway/exp.test007n.ksh.psql new file mode 100644 index 00000000..bd854df8 --- /dev/null +++ b/test/cache/Gateway/exp.test007n.ksh.psql @@ -0,0 +1,11 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + +Statement execute failed with error -14 +Statement execute failed with error -14 diff --git a/test/cache/Gateway/exp.test008.ksh b/test/cache/Gateway/exp.test008.ksh new file mode 100644 index 00000000..d2942847 --- /dev/null +++ b/test/cache/Gateway/exp.test008.ksh @@ -0,0 +1,9 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 t2.f1 t2.f2 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 1 2011 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 2 1978 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 3 2008 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 4 1973 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 5 2005 + diff --git a/test/cache/Gateway/exp.test008n.ksh b/test/cache/Gateway/exp.test008n.ksh new file mode 100644 index 00000000..d2942847 --- /dev/null +++ b/test/cache/Gateway/exp.test008n.ksh @@ -0,0 +1,9 @@ +--------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 t2.f1 t2.f2 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 1 2011 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 2 1978 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 3 2008 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 4 1973 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 5 2005 + diff --git a/test/cache/Gateway/exp.test009.ksh b/test/cache/Gateway/exp.test009.ksh new file mode 100644 index 00000000..403d3e4a --- /dev/null +++ b/test/cache/Gateway/exp.test009.ksh @@ -0,0 +1,9 @@ +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 f1 f2 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 1 2011 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 2 1978 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 3 2008 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 4 1973 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 5 2005 + diff --git a/test/cache/Gateway/exp.test009.ksh.psql b/test/cache/Gateway/exp.test009.ksh.psql new file mode 100644 index 00000000..4f84b635 --- /dev/null +++ b/test/cache/Gateway/exp.test009.ksh.psql @@ -0,0 +1,9 @@ +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 f1 f2 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 1 2011 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 2 1978 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 3 2008 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 4 1973 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 5 2005 + diff --git a/test/cache/Gateway/exp.test009n.ksh b/test/cache/Gateway/exp.test009n.ksh new file mode 100644 index 00000000..403d3e4a --- /dev/null +++ b/test/cache/Gateway/exp.test009n.ksh @@ -0,0 +1,9 @@ +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 f1 f2 +--------------------------------------------------------- + 1 2011 111111111 venkatesha 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 1 2011 + 2 1978 222222222 gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 2 1978 + 3 2008 333333333 ram 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 3 2008 + 4 1973 444444444 anil 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 4 1973 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 5 2005 + diff --git a/test/cache/Gateway/exp.test010.ksh b/test/cache/Gateway/exp.test010.ksh new file mode 100644 index 00000000..f637fafb --- /dev/null +++ b/test/cache/Gateway/exp.test010.ksh @@ -0,0 +1,80 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +Statement Executed: Rows Affected = 1 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + 21 33 4234 mohan 34.340000 345.543000 1999/2/23 11:22:33.0 1999/2/23 11:22:33.0 + diff --git a/test/cache/Gateway/exp.test010.ksh.SunOS b/test/cache/Gateway/exp.test010.ksh.SunOS new file mode 100644 index 00000000..8e9ec022 --- /dev/null +++ b/test/cache/Gateway/exp.test010.ksh.SunOS @@ -0,0 +1,78 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +Statement Executed: Rows Affected = 1 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + 21 33 4234 mohan 34.340000 345.543000 1999/2/23 11:22:33.0 1999/2/23 11:22:33.0 + diff --git a/test/cache/Gateway/exp.test010.ksh.psql b/test/cache/Gateway/exp.test010.ksh.psql new file mode 100644 index 00000000..59e80cc7 --- /dev/null +++ b/test/cache/Gateway/exp.test010.ksh.psql @@ -0,0 +1,80 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +Statement Executed: Rows Affected = 1 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + 21 33 4234 mohan 34.340000 345.543000 1999/2/23 11:22:33.0 1999/2/23 11:22:33.0 + diff --git a/test/cache/Gateway/exp.test010.ksh.x86_64 b/test/cache/Gateway/exp.test010.ksh.x86_64 new file mode 100644 index 00000000..7787db50 --- /dev/null +++ b/test/cache/Gateway/exp.test010.ksh.x86_64 @@ -0,0 +1,80 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +Statement Executed: Rows Affected = 1 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + 21 33 4234 mohan 34.340000 345.543000 1999/2/23 11:22:33.0 1999/2/23 11:22:33.0 + diff --git a/test/cache/Gateway/exp.test010n.ksh b/test/cache/Gateway/exp.test010n.ksh new file mode 100644 index 00000000..f637fafb --- /dev/null +++ b/test/cache/Gateway/exp.test010n.ksh @@ -0,0 +1,80 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +Statement Executed: Rows Affected = 1 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + 21 33 4234 mohan 34.340000 345.543000 1999/2/23 11:22:33.0 1999/2/23 11:22:33.0 + diff --git a/test/cache/Gateway/exp.test010n.ksh.SunOS b/test/cache/Gateway/exp.test010n.ksh.SunOS new file mode 100644 index 00000000..8e9ec022 --- /dev/null +++ b/test/cache/Gateway/exp.test010n.ksh.SunOS @@ -0,0 +1,78 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +Statement Executed: Rows Affected = 1 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + 21 33 4234 mohan 34.340000 345.543000 1999/2/23 11:22:33.0 1999/2/23 11:22:33.0 + diff --git a/test/cache/Gateway/exp.test010n.ksh.psql b/test/cache/Gateway/exp.test010n.ksh.psql new file mode 100644 index 00000000..59e80cc7 --- /dev/null +++ b/test/cache/Gateway/exp.test010n.ksh.psql @@ -0,0 +1,80 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +Statement Executed: Rows Affected = 1 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + 21 33 4234 mohan 34.340000 345.543000 1999/2/23 11:22:33.0 1999/2/23 11:22:33.0 + diff --git a/test/cache/Gateway/exp.test010n.ksh.x86_64 b/test/cache/Gateway/exp.test010n.ksh.x86_64 new file mode 100644 index 00000000..7787db50 --- /dev/null +++ b/test/cache/Gateway/exp.test010n.ksh.x86_64 @@ -0,0 +1,80 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + +Statement Executed: Rows Affected = 1 ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + 21 33 4234 mohan 34.340000 345.543000 1999/2/23 11:22:33.0 1999/2/23 11:22:33.0 + diff --git a/test/cache/Gateway/exp.test011.ksh b/test/cache/Gateway/exp.test011.ksh new file mode 100644 index 00000000..676d70fe --- /dev/null +++ b/test/cache/Gateway/exp.test011.ksh @@ -0,0 +1,39 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + diff --git a/test/cache/Gateway/exp.test011.ksh.SunOS b/test/cache/Gateway/exp.test011.ksh.SunOS new file mode 100644 index 00000000..63590467 --- /dev/null +++ b/test/cache/Gateway/exp.test011.ksh.SunOS @@ -0,0 +1,38 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + diff --git a/test/cache/Gateway/exp.test011.ksh.psql b/test/cache/Gateway/exp.test011.ksh.psql new file mode 100644 index 00000000..e009addc --- /dev/null +++ b/test/cache/Gateway/exp.test011.ksh.psql @@ -0,0 +1,39 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + diff --git a/test/cache/Gateway/exp.test011.ksh.x86_64 b/test/cache/Gateway/exp.test011.ksh.x86_64 new file mode 100644 index 00000000..14efe959 --- /dev/null +++ b/test/cache/Gateway/exp.test011.ksh.x86_64 @@ -0,0 +1,39 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + diff --git a/test/cache/Gateway/exp.test011n.ksh b/test/cache/Gateway/exp.test011n.ksh new file mode 100644 index 00000000..676d70fe --- /dev/null +++ b/test/cache/Gateway/exp.test011n.ksh @@ -0,0 +1,39 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + diff --git a/test/cache/Gateway/exp.test011n.ksh.SunOS b/test/cache/Gateway/exp.test011n.ksh.SunOS new file mode 100644 index 00000000..63590467 --- /dev/null +++ b/test/cache/Gateway/exp.test011n.ksh.SunOS @@ -0,0 +1,38 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> +------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + diff --git a/test/cache/Gateway/exp.test011n.ksh.psql b/test/cache/Gateway/exp.test011n.ksh.psql new file mode 100644 index 00000000..e009addc --- /dev/null +++ b/test/cache/Gateway/exp.test011n.ksh.psql @@ -0,0 +1,39 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +[?1034hSQL> select * from t1; ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35 | +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14 | +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36 | +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35 | +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35 | +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35 | +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35 | +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35 | +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35 | +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35 | ++-------+------------+---------------------+-----------+--------------+-----------------------+-----------+---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + diff --git a/test/cache/Gateway/exp.test011n.ksh.x86_64 b/test/cache/Gateway/exp.test011n.ksh.x86_64 new file mode 100644 index 00000000..14efe959 --- /dev/null +++ b/test/cache/Gateway/exp.test011n.ksh.x86_64 @@ -0,0 +1,39 @@ ++---------------------------------------+ +| Connected! | +| | +| sql-statement | +| help [tablename] | +| quit | +| | ++---------------------------------------+ +SQL> select * from t1; ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +| 1 | 2011 | 111111111 | Govind | 113.141 | 111111111.111111 | 1915-12-25| 11:42:35| 1971-12-25 11:42:35| +| 2 | 1978 | 222222222 | Gopal | 114.567 | 222222222.222222 | 1926-05-16| 12:32:14| 1972-05-16 12:32:14| +| 3 | 2008 | 333333333 | kishor | 122.7 | 333333333.333333 | 1937-08-15| 13:45:36| 1973-08-15 13:45:36| +| 4 | 1973 | 444444444 | kiran | 142.718 | 444444444.444444 | 1946-12-25| 14:42:35| 1974-12-25 14:42:35| +| 5 | 2005 | 555555555 | ganesh | 152.718 | 555555555.555555 | 1955-12-25| 15:42:35| 1975-12-25 15:42:35| +| 6 | 1962 | 666666666 | suresh | 162.718 | 666666666.666666 | 1965-12-25| 16:42:35| 1976-12-25 16:42:35| +| 7 | 1965 | 777777777 | Praba | 172.718 | 777777777.777777 | 1975-12-25| 17:42:35| 1977-12-25 17:42:35| +| 8 | 1942 | 888888888 | karan | 182.718 | 888888888.888888 | 1985-12-25| 18:42:35| 1978-12-25 18:42:35| +| 9 | 1956 | 999999999 | sharan | 192.718 | 999999999.999999 | 1995-12-25| 19:42:35| 1979-12-25 19:42:35| +| 10 | 1999 | 101010101 | vijay | 102.718 | 111111111.999999 | 1915-12-25| 20:42:35| 1980-12-25 20:42:35| ++------+-----------+---------------------+-----------+---------------+-------------------------+-----------+---------+--------------------+ +SQLRowCount returns 10 +10 rows fetched +SQL> --------------------------------------------------------- + t1.f1 t1.f2 t1.f3 t1.f4 t1.f5 t1.f6 t1.f7 t1.f8 t1.f9 +--------------------------------------------------------- + 11 2010 121212121 Prasad 112.718002 111111111.222222 2005/12/25 21:42:35.0 2005/12/25 21:42:35.0 + 12 2069 131313131 jiten 122.718002 222222222.333333 2025/12/25 22:42:35.0 2025/12/25 22:42:35.0 + 13 1857 141414141 hiten 132.718002 333333333.444444 2035/12/25 23:42:35.0 2035/12/25 23:42:35.0 + 14 1545 151515151 methane 126.718002 444444444.555555 2045/12/25 0:42:35.0 2032/12/25 0:42:35.0 + 15 1889 161616161 ethane 211.718002 555555555.222222 2065/12/25 1:42:35.0 2005/12/25 1:42:35.0 + 16 1789 171717171 sanjay 222.718002 666666666.777777 2010/12/25 2:42:35.0 2010/12/25 2:42:35.0 + 17 2032 181818181 vikrant 233.718002 777777777.888888 2020/12/25 3:42:35.0 2020/12/25 3:42:35.0 + 18 2038 444455555 nishant 244.718002 888888888.999999 2040/12/25 4:42:35.0 2031/12/25 4:42:35.0 + 19 2048 777755555 Sushant 277.717987 333333333.999999 2023/12/25 5:42:35.0 2011/12/25 4:42:35.0 + 20 1994 666633333 vishnu 255.718002 333333333.666666 2030/12/25 6:42:35.0 2030/12/25 5:42:35.0 + diff --git a/test/cache/Gateway/exp.test012a.ksh b/test/cache/Gateway/exp.test012a.ksh new file mode 100644 index 00000000..077d8fc1 --- /dev/null +++ b/test/cache/Gateway/exp.test012a.ksh @@ -0,0 +1,29 @@ +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement prepare failed with error -14 diff --git a/test/cache/Gateway/exp.test012a.ksh.psql b/test/cache/Gateway/exp.test012a.ksh.psql new file mode 100644 index 00000000..e5a02ce7 --- /dev/null +++ b/test/cache/Gateway/exp.test012a.ksh.psql @@ -0,0 +1,29 @@ +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement execute failed with error -14 diff --git a/test/cache/Gateway/exp.test012an.ksh b/test/cache/Gateway/exp.test012an.ksh new file mode 100644 index 00000000..077d8fc1 --- /dev/null +++ b/test/cache/Gateway/exp.test012an.ksh @@ -0,0 +1,29 @@ +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement prepare failed with error -14 diff --git a/test/cache/Gateway/exp.test012an.ksh.SunOS b/test/cache/Gateway/exp.test012an.ksh.SunOS new file mode 100644 index 00000000..61b50717 --- /dev/null +++ b/test/cache/Gateway/exp.test012an.ksh.SunOS @@ -0,0 +1,29 @@ +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement prepare failed with error -23 diff --git a/test/cache/Gateway/exp.test012an.ksh.psql b/test/cache/Gateway/exp.test012an.ksh.psql new file mode 100644 index 00000000..d938d34e --- /dev/null +++ b/test/cache/Gateway/exp.test012an.ksh.psql @@ -0,0 +1,29 @@ +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1978 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1972/5/16 12:32:14.0 + 3 2008 333333333 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 kiran 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1975/12/25 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 18:42:35.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement execute failed with error -14 diff --git a/test/cache/Gateway/exp.test012b.ksh b/test/cache/Gateway/exp.test012b.ksh new file mode 100644 index 00000000..dc00abd9 --- /dev/null +++ b/test/cache/Gateway/exp.test012b.ksh @@ -0,0 +1,47 @@ +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 0 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 0 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement prepare failed with error -14 diff --git a/test/cache/Gateway/exp.test012b.ksh.psql b/test/cache/Gateway/exp.test012b.ksh.psql new file mode 100644 index 00000000..7d8d2f47 --- /dev/null +++ b/test/cache/Gateway/exp.test012b.ksh.psql @@ -0,0 +1,47 @@ +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement execute failed with error -14 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + +Statement execute failed with error -14 diff --git a/test/cache/Gateway/exp.test012bn.ksh b/test/cache/Gateway/exp.test012bn.ksh new file mode 100644 index 00000000..dc00abd9 --- /dev/null +++ b/test/cache/Gateway/exp.test012bn.ksh @@ -0,0 +1,47 @@ +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 0 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 0 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement prepare failed with error -14 diff --git a/test/cache/Gateway/exp.test012bn.ksh.SunOS b/test/cache/Gateway/exp.test012bn.ksh.SunOS new file mode 100644 index 00000000..b02096f5 --- /dev/null +++ b/test/cache/Gateway/exp.test012bn.ksh.SunOS @@ -0,0 +1,47 @@ +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 0 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 0 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + +Statement prepare failed with error -23 diff --git a/test/cache/Gateway/exp.test012bn.ksh.psql b/test/cache/Gateway/exp.test012bn.ksh.psql new file mode 100644 index 00000000..bab39b15 --- /dev/null +++ b/test/cache/Gateway/exp.test012bn.ksh.psql @@ -0,0 +1,47 @@ +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement execute failed with error -14 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement Executed: Rows Affected = 1 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +Statement execute failed with error -14 +--------------------------------------------------------- + t2f1 t2f2 t2f3 t2f4 t2f5 t2f6 t2f7 t2f8 t2f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + +--------------------------------------------------------- + f1 f2 f3 f4 f5 f6 f7 f8 f9 +--------------------------------------------------------- + 1 2011 111111111 Govind 113.140999 111111111.111111 1915/12/25 11:42:35.0 1971/12/25 11:42:35.0 + 5 2005 555555555 ganesh 152.718002 555555555.555555 1955/12/25 15:42:35.0 1975/12/25 15:42:35.0 + 6 1962 666666666 suresh 162.718002 666666666.666666 1965/12/25 16:42:35.0 1976/12/25 16:42:35.0 + 9 1956 999999999 sharan 192.718002 999999999.999999 1995/12/25 19:42:35.0 1979/12/25 19:42:35.0 + 10 1999 101010101 vijay 102.718002 111111111.999999 1915/12/25 20:42:35.0 1980/12/25 20:42:35.0 + 2 1995 222222222 Gopal 114.567001 222222222.222222 1926/5/16 12:32:14.0 1971/12/25 11:42:35.0 + 3 2008 333666999 kishor 122.699997 333333333.333333 1937/8/15 13:45:36.0 1973/8/15 13:45:36.0 + 4 1973 444444444 poonam 142.718002 444444444.444444 1946/12/25 14:42:35.0 1974/12/25 14:42:35.0 + 7 1965 777777777 Praba 172.718002 777777777.777777 1978/9/12 17:42:35.0 1977/12/25 17:42:35.0 + 8 1942 888888888 karan 182.718002 888888888.888888 1985/12/25 12:34:56.0 1978/12/25 18:42:35.0 + +Statement execute failed with error -14 diff --git a/test/cache/Gateway/exp.test013.ksh b/test/cache/Gateway/exp.test013.ksh new file mode 100644 index 00000000..5612f88d --- /dev/null +++ b/test/cache/Gateway/exp.test013.ksh @@ -0,0 +1,23 @@ +t1create.sql file created +select file created +Select * from t1 in CSQL +--------------------------------------------------------- + f1 f2 +--------------------------------------------------------- + 1 INDIA1 + 11 NULL + 2 INDIA2 + 12 NULL + 3 INDIA3 + 13 NULL + 4 INDIA4 + 14 NULL + 5 INDIA5 + 15 NULL + +Checking for table created or not + + +
+ + diff --git a/test/cache/Gateway/exp.test013.ksh.psql b/test/cache/Gateway/exp.test013.ksh.psql new file mode 100644 index 00000000..f39cf09d --- /dev/null +++ b/test/cache/Gateway/exp.test013.ksh.psql @@ -0,0 +1,23 @@ +t1create.sql file created +select file created +Select * from t1 in CSQL +--------------------------------------------------------- + f1 f2 +--------------------------------------------------------- + 1 INDIA1 + 11 NULL + 2 INDIA2 + 12 NULL + 3 INDIA3 + 13 NULL + 4 INDIA4 + 14 NULL + 5 INDIA5 + 15 NULL + +Checking for table created or not + + +
+ + diff --git a/test/cache/Gateway/exp.test013n.ksh b/test/cache/Gateway/exp.test013n.ksh new file mode 100644 index 00000000..9accaf08 --- /dev/null +++ b/test/cache/Gateway/exp.test013n.ksh @@ -0,0 +1,23 @@ +t1create.sql file created +select file created +Select * from t1 in CSQL +--------------------------------------------------------- + f1 f2 +--------------------------------------------------------- + 1 INDIA1 + 11 NULL + 2 INDIA2 + 12 NULL + 3 INDIA3 + 13 NULL + 4 INDIA4 + 14 NULL + 5 INDIA5 + 15 NULL + +Checking for table created or not + + +
+ + diff --git a/test/cache/Gateway/insert.sql b/test/cache/Gateway/insert.sql new file mode 100644 index 00000000..0bc5f424 --- /dev/null +++ b/test/cache/Gateway/insert.sql @@ -0,0 +1 @@ +insert into t1 values(21, 33, 4234, 'mohan', 34.34, 345.543, '1999/02/23', '11:22:33', '1999/02/23 11:22:33'); diff --git a/test/cache/Gateway/insertdb2.sql b/test/cache/Gateway/insertdb2.sql new file mode 100644 index 00000000..78e03a6e --- /dev/null +++ b/test/cache/Gateway/insertdb2.sql @@ -0,0 +1 @@ +insert into t1 values(21, 33, 4234, 'mohan', 34.34, 345.543, '1999-02-23', '11:22:33', '1999-02-23 11:22:33'); diff --git a/test/cache/Gateway/join.sql b/test/cache/Gateway/join.sql new file mode 100644 index 00000000..38374204 --- /dev/null +++ b/test/cache/Gateway/join.sql @@ -0,0 +1 @@ +select * from t1, t2 where t1.f1 = t2.f1; diff --git a/test/cache/Gateway/mysqlinputtest1.sql b/test/cache/Gateway/mysqlinputtest1.sql new file mode 100644 index 00000000..1bab9508 --- /dev/null +++ b/test/cache/Gateway/mysqlinputtest1.sql @@ -0,0 +1,11 @@ +CREATE TABLE t1 (f1 SMALLINT primary key, f2 INT , f3 BIGINT , f4 CHAR (10), f5 FLOAT4 , f6 float8 , f7 DATE , f8 TIME , f9 TIMESTAMP ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t1 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t1 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t1 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t1 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t1 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/Gateway/mysqlinputtest12.sql b/test/cache/Gateway/mysqlinputtest12.sql new file mode 100644 index 00000000..f869a674 --- /dev/null +++ b/test/cache/Gateway/mysqlinputtest12.sql @@ -0,0 +1,11 @@ +CREATE TABLE t2 (t2f1 SMALLINT primary key, t2f2 INT , t2f3 BIGINT , t2f4 CHAR (20), t2f5 FLOAT4 , t2f6 float8 , t2f7 DATE , t2f8 TIME , t2f9 TIMESTAMP ); +INSERT INTO t2 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t2 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t2 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t2 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t2 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t2 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t2 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t2 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t2 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t2 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/Gateway/mysqlinputtest5.sql b/test/cache/Gateway/mysqlinputtest5.sql new file mode 100644 index 00000000..a708b493 --- /dev/null +++ b/test/cache/Gateway/mysqlinputtest5.sql @@ -0,0 +1,6 @@ +CREATE TABLE t1 (f1 SMALLINT primary key, f2 INT , f3 BIGINT , f4 CHAR (10), f5 FLOAT4 , f6 float8 , f7 DATE , f8 TIME , f9 TIMESTAMP ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'venkatesha', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'ram', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'anil', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); diff --git a/test/cache/Gateway/mysqlinputtest8.sql b/test/cache/Gateway/mysqlinputtest8.sql new file mode 100644 index 00000000..1745eaa0 --- /dev/null +++ b/test/cache/Gateway/mysqlinputtest8.sql @@ -0,0 +1,6 @@ +CREATE TABLE t2 (f1 SMALLINT NOT NULL primary key, f2 INT); +INSERT INTO t2 VALUES(1, 2011); +INSERT INTO t2 VALUES(2, 1978); +INSERT INTO t2 VALUES(3, 2008); +INSERT INTO t2 VALUES(4, 1973); +INSERT INTO t2 VALUES(5, 2005); diff --git a/test/cache/Gateway/select.sql b/test/cache/Gateway/select.sql new file mode 100644 index 00000000..0f3c4ecf --- /dev/null +++ b/test/cache/Gateway/select.sql @@ -0,0 +1,3 @@ +select * from t1 where f1 in (1, 5, 10, 15, 20); +select * from t1 where f1 between 7 and 15; +select * from t1 where f1 = 1 or f2 = 1973 or f3= 777777777 or f4='vijay' or f7='2035-12-25' or f8 = '02:42:35' or f9 = '2011-12-25 04:42:35'; diff --git a/test/cache/Gateway/selectstar.sql b/test/cache/Gateway/selectstar.sql new file mode 100644 index 00000000..f0d520a9 --- /dev/null +++ b/test/cache/Gateway/selectstar.sql @@ -0,0 +1 @@ +select * from t1; diff --git a/test/cache/Gateway/selectstart2.sql b/test/cache/Gateway/selectstart2.sql new file mode 100644 index 00000000..68a32ae8 --- /dev/null +++ b/test/cache/Gateway/selectstart2.sql @@ -0,0 +1 @@ +select * from t2; diff --git a/test/cache/Gateway/selectstart3.sql b/test/cache/Gateway/selectstart3.sql new file mode 100644 index 00000000..2a820e8f --- /dev/null +++ b/test/cache/Gateway/selectstart3.sql @@ -0,0 +1 @@ +select * from t3; diff --git a/test/cache/Gateway/sybaseinputtest1.sql b/test/cache/Gateway/sybaseinputtest1.sql new file mode 100644 index 00000000..3a52c806 --- /dev/null +++ b/test/cache/Gateway/sybaseinputtest1.sql @@ -0,0 +1,11 @@ +CREATE TABLE t1 (f1 SMALLINT primary key, f2 INT , f3 BIGINT , f4 CHAR (10), f5 REAL , f6 FLOAT , f7 DATE , f8 TIME , f9 DATETIME ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t1 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t1 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t1 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t1 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t1 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/Gateway/sybaseinputtest12.sql b/test/cache/Gateway/sybaseinputtest12.sql new file mode 100644 index 00000000..fb3e3c32 --- /dev/null +++ b/test/cache/Gateway/sybaseinputtest12.sql @@ -0,0 +1,11 @@ +CREATE TABLE t2 (t2f1 SMALLINT primary key, t2f2 INT , t2f3 BIGINT , t2f4 CHAR (20), t2f5 REAL , t2f6 FLOAT , t2f7 DATE , t2f8 TIME , t2f9 DATETIME ); +INSERT INTO t2 VALUES(1, 2011, 111111111, 'Govind', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t2 VALUES(2, 1978, 222222222, 'Gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t2 VALUES(3, 2008, 333333333, 'kishor', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t2 VALUES(4, 1973, 444444444, 'kiran', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t2 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); +INSERT INTO t2 VALUES(6, 1962, 666666666, 'suresh', 162.718, 666666666.666666, '1965/12/25', '16:42:35', '1976/12/25 16:42:35'); +INSERT INTO t2 VALUES(7, 1965, 777777777, 'Praba', 172.718, 777777777.777777, '1975/12/25', '17:42:35', '1977/12/25 17:42:35'); +INSERT INTO t2 VALUES(8, 1942, 888888888, 'karan', 182.718, 888888888.888888, '1985/12/25', '18:42:35', '1978/12/25 18:42:35'); +INSERT INTO t2 VALUES(9, 1956, 999999999, 'sharan', 192.718, 999999999.999999, '1995/12/25', '19:42:35', '1979/12/25 19:42:35'); +INSERT INTO t2 VALUES(10, 1999,101010101, 'vijay', 102.718, 111111111.999999, '1915/12/25', '20:42:35', '1980/12/25 20:42:35'); diff --git a/test/cache/Gateway/sybaseinputtest5.sql b/test/cache/Gateway/sybaseinputtest5.sql new file mode 100644 index 00000000..2d7c9449 --- /dev/null +++ b/test/cache/Gateway/sybaseinputtest5.sql @@ -0,0 +1,6 @@ +CREATE TABLE t1 (f1 SMALLINT primary key, f2 INT , f3 BIGINT , f4 CHAR (10), f5 REAL , f6 FLOAT , f7 DATE , f8 TIME , f9 DATETIME ); +INSERT INTO t1 VALUES(1, 2011, 111111111, 'venkatesha', 113.141, 111111111.111111, '1915/12/25', '11:42:35', '1971/12/25 11:42:35'); +INSERT INTO t1 VALUES(2, 1978, 222222222, 'gopal', 114.567, 222222222.222222, '1926/05/16', '12:32:14', '1972/05/16 12:32:14'); +INSERT INTO t1 VALUES(3, 2008, 333333333, 'ram', 122.700, 333333333.333333, '1937/08/15', '13:45:36', '1973/08/15 13:45:36'); +INSERT INTO t1 VALUES(4, 1973, 444444444, 'anil', 142.718, 444444444.444444, '1946/12/25', '14:42:35', '1974/12/25 14:42:35'); +INSERT INTO t1 VALUES(5, 2005, 555555555, 'ganesh', 152.718, 555555555.555555, '1955/12/25', '15:42:35', '1975/12/25 15:42:35'); diff --git a/test/cache/Gateway/syntaxerr.sql b/test/cache/Gateway/syntaxerr.sql new file mode 100644 index 00000000..f9240559 --- /dev/null +++ b/test/cache/Gateway/syntaxerr.sql @@ -0,0 +1,2 @@ +select mount(*) from t1; +select duffer(f1) from t1; diff --git a/test/cache/Gateway/test001.ksh b/test/cache/Gateway/test001.ksh new file mode 100755 index 00000000..a0ab9d75 --- /dev/null +++ b/test/cache/Gateway/test001.ksh @@ -0,0 +1,123 @@ +#!/bin/ksh + +# 1. Create table t1 in MySQL with all supported data types in it. and insert 10 records in it. +# Cache the table in CSQL. and run csqlserver -c to load the records. +# insert 10 more records using csql tool. +# select records with WHERE clause containing parameters for all the fields with different data types. +# update all fields with WHERE clause on primary key +# delete records with WHERE clause on all fields + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 2; +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +if [ $DSN = "oracle" ] +then + for a in 51 52 53 54 55 + do + echo "insert into t1 values($a,'KKK');" + done >> $REL_PATH/oracsqlinputt1.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oracsqlinputt1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqldb2inputtest1.sql >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "Server Not Open" + exit 4; +fi + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 5; +fi + +if [ $DSN = "oracle" ] +then + echo "select * from t1 where f1 in(10,30,50,54);" >> $REL_PATH/oraselect.sql + echo "select * from t1 where f1 between 20 and 54;" >> $REL_PATH/oraselect.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdate.sql + echo "delete from t1 where f2='BBB';" >> $REL_PATH/oradelete.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraselect.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraupdate.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oradelete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/select.sql + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/db2update.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/update.sql >/dev/null 2>&1 + fi + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/delete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +fi + + +isql $DS < $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f $REL_PATH/ora*.sql +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Gateway/test001n.ksh b/test/cache/Gateway/test001n.ksh new file mode 100755 index 00000000..edf15634 --- /dev/null +++ b/test/cache/Gateway/test001n.ksh @@ -0,0 +1,129 @@ +#!/bin/ksh + +# 1. Create table t1 in MySQL with all supported data types in it. and insert 10 records in it. +# Cache the table in CSQL. and run csqlserver -c to load the records. +# insert 10 more records using csql tool. +# select records with WHERE clause containing parameters for all the fields with different data types. +# update all fields with WHERE clause on primary key +# delete records with WHERE clause on all fields + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6028 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 2; +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +if [ $DSN = "oracle" ] +then + for a in 51 52 53 54 55 + do + echo "insert into t1 values($a,'KKK');" + done >> $REL_PATH/oracsqlinputt1.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/oracsqlinputt1.sql >/dev/null 2>&1 +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/csqldb2inputtest1.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/csqlinputtest1.sql >/dev/null 2>&1 + fi +fi + +if [ $? -ne 0 ] +then + echo "Server Not Open" + exit 4 +fi + +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 3; +fi + +if [ $DSN = "oracle" ] +then + echo "select * from t1 where f1 in(10,30,50,54);" >> $REL_PATH/oraselect.sql + echo "select * from t1 where f1 between 20 and 54;" >> $REL_PATH/oraselect.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdate.sql + echo "delete from t1 where f2='BBB';" >> $REL_PATH/oradelete.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/oraselect.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/oraupdate.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/oradelete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/selectstar.sql +else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/select.sql + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/db2update.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/update.sql >/dev/null 2>&1 + fi + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/delete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6028 -g -s $REL_PATH/selectstar.sql +fi + + +isql $DS < $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f $REL_PATH/ora*.sql +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/test002.ksh b/test/cache/Gateway/test002.ksh new file mode 100755 index 00000000..0ff3dd63 --- /dev/null +++ b/test/cache/Gateway/test002.ksh @@ -0,0 +1,113 @@ +#!/bin/ksh + +# 2. Create table t1 in MySQL with all supported data types in it. and insert 10 records in it. +# Note that in this test case the table is not cached in csql and it is present only in MySQL. +# insert 10 more records using csql tool. +# select records with WHERE clause containing parameters for all the fields with different data types. +# update all fields with WHERE clause on primary key +# delete records with WHERE clause on all fields + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 2 +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +if [ $DSN = "oracle" ] +then + for a in 51 52 53 54 55 + do + echo "insert into t1 values($a,'KKK');" + done >> $REL_PATH/oracsqlinputt1.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oracsqlinputt1.sql >/dev/null 2>&1 +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqldb2inputtest1.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputtest1.sql >/dev/null 2>&1 + fi +fi + +if [ $? -ne 0 ] +then + echo "Server not opened" + exit 4 +fi + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql >/dev/null 2>&1 +isql $DS < $REL_PATH/selectstar.sql + +if [ $DSN = "oracle" ] +then + echo "select * from t1 where f1 in(10,30,50,54);" >> $REL_PATH/oraselect.sql + echo "select * from t1 where f1 between 20 and 54;" >> $REL_PATH/oraselect.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdate.sql + echo "delete from t1 where f2='BBB';" >> $REL_PATH/oradelete.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraselect.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraupdate.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oradelete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/select.sql >/dev/null 2>&1 + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/db2update.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/update.sql >/dev/null 2>&1 + fi + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/delete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql >/dev/null 2>&1 +fi + +isql $DS < $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f /tmp/csql/csqltable.conf +rm -f $REL_PATH/ora*.sql +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Gateway/test002n.ksh b/test/cache/Gateway/test002n.ksh new file mode 100755 index 00000000..51a4e579 --- /dev/null +++ b/test/cache/Gateway/test002n.ksh @@ -0,0 +1,113 @@ +#!/bin/ksh +# 2. Create table t1 in MySQL with all supported data types in it. and insert 10 records in it. +# Note that in this test case the table is not cached in csql and it is present only in MySQL. +# insert 10 more records using csql tool. +# select records with WHERE clause containing parameters for all the fields with different data types. +# update all fields with WHERE clause on primary key +# delete records with WHERE clause on all fields +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6002 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 2 +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +if [ $DSN = "oracle" ] +then + for a in 51 52 53 54 55 + do + echo "insert into t1 values($a,'KKK');" + done >> $REL_PATH/oracsqlinputt1.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/oracsqlinputt1.sql >/dev/null 2>&1 +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/csqldb2inputtest1.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/csqlinputtest1.sql >/dev/null 2>&1 + fi +fi + +if [ $? -ne 0 ] +then + echo "Server not opened" + exit 4; +fi + +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/selectstar.sql >/dev/null 2>&1 +isql $DS < $REL_PATH/selectstar.sql + +if [ $DSN = "oracle" ] +then + echo "select * from t1 where f1 in(10,30,50,54);" >> $REL_PATH/oraselect.sql + echo "select * from t1 where f1 between 20 and 54;" >> $REL_PATH/oraselect.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdate.sql + echo "delete from t1 where f2='BBB';" >> $REL_PATH/oradelete.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/oraselect.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/oraupdate.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/oradelete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/selectstar.sql >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/select.sql >/dev/null 2>&1 + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/db2update.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/update.sql >/dev/null 2>&1 + fi + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/delete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6002 -g -s $REL_PATH/selectstar.sql >/dev/null 2>&1 +fi + +isql $DS < $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f /tmp/csql/csqltable.conf +rm -f $REL_PATH/ora*.sql +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/test003.ksh b/test/cache/Gateway/test003.ksh new file mode 100755 index 00000000..120c405e --- /dev/null +++ b/test/cache/Gateway/test003.ksh @@ -0,0 +1,104 @@ +#!/bin/ksh + +# 3. Create table t1 in CSQL with all supported data types in it. and insert 5 records in it using csql tool with -g option. +# Note that in this test case the table is not cached in csql and is present in csql +# insert 5 more records using csql tool with -g option. +# select records with WHERE clause containing parameters for all the fields with different data types. +# update all fields with WHERE clause on primary key using csql tool with -g option. +# delete records with WHERE clause on all fields using csql tool with -g option + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +# edit /tmp/csql/csqltable.conSQL_CONFIG_FILE /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainput_t1.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputtest3.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "Unable Start Server" + exit 1 +fi + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/selectstar.sql 2>&1 +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 2; +fi + +if [ $DSN = "oracle" ] +then + for a in 51 52 53 54 55 + do + echo "insert into t1 values($a,'KKK');" + done >> $REL_PATH/oracsqlinputt1.sql + echo "select * from t1 where f1 in(10,30,50,54);" >> $REL_PATH/oraselect.sql + echo "select * from t1 where f1 between 20 and 54;" >> $REL_PATH/oraselect.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdate.sql + echo "delete from t1 where f2='BBB';" >> $REL_PATH/oradelete.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oracsqlinputt1.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraselect.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraupdate.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oradelete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqldb2inputtest3a.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/select.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/db2update.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputtest3a.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/select.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/update.sql >/dev/null 2>&1 + fi + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/delete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +fi + +isql $DS < $REL_PATH/selectstar.sql 2>&1 +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 3; +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f $REL_PATH/ora*.sql +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Gateway/test003n.ksh b/test/cache/Gateway/test003n.ksh new file mode 100755 index 00000000..ab16c9f6 --- /dev/null +++ b/test/cache/Gateway/test003n.ksh @@ -0,0 +1,107 @@ +#!/bin/ksh + +# 3. Create table t1 in CSQL with all supported data types in it. and insert 10 records in it. +# Note that in this test case the table is not cached in csql and is present in csql +# insert 10 more records using csql tool. +# select records with WHERE clause containing parameters for all the fields with different data types. +# update all fields with WHERE clause on primary key +# delete records with WHERE clause on all fields + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +# edit /tmp/csql/csqltable.conSQL_CONFIG_FILE /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6004 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/orainput_t1.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/csqlinputtest3.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "Unable Start Server" + exit 2 +fi + +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/selectstar.sql 2>&1 +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 2; +fi + +if [ $DSN = "oracle" ] +then + for a in 51 52 53 54 55 + do + echo "insert into t1 values($a,'KKK');" + done >> $REL_PATH/oracsqlinputt1.sql + echo "select * from t1 where f1 in(10,30,50,54);" >> $REL_PATH/oraselect.sql + echo "select * from t1 where f1 between 20 and 54;" >> $REL_PATH/oraselect.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdate.sql + echo "delete from t1 where f2='BBB';" >> $REL_PATH/oradelete.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/oracsqlinputt1.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/oraselect.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/oraupdate.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/oradelete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/selectstar.sql +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/csqldb2inputtest3a.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/select.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/db2update.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/csqlinputtest3a.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/select.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/update.sql >/dev/null 2>&1 + fi + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/delete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6004 -g -s $REL_PATH/selectstar.sql +fi + +isql $DS < $REL_PATH/selectstar.sql 2>&1 +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 3; +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f $REL_PATH/ora*.sql +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/test004.ksh b/test/cache/Gateway/test004.ksh new file mode 100755 index 00000000..2aea570e --- /dev/null +++ b/test/cache/Gateway/test004.ksh @@ -0,0 +1,88 @@ +#!/bin/ksh + +# 4.insert, select, update, delete on table which is not there in both mysql and csql. All should fail. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +if [ $DSN = "oracle" ] +then + for a in 51 52 53 54 55 + do + echo "insert into t1 values($a,'KKK');" + done >> $REL_PATH/oracsqlinputt1.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oracsqlinputt1.sql >/dev/null 2>&1 +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqldb2inputtest1.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/csqlinputtest1.sql >/dev/null 2>&1 + fi +fi + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 2; +fi + +if [ $DSN = "oracle" ] +then + echo "select * from t1 where f1 in(10,30,50,54);" >> $REL_PATH/oraselect.sql + echo "select * from t1 where f1 between 20 and 54;" >> $REL_PATH/oraselect.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdate.sql + echo "delete from t1 where f2='BBB';" >> $REL_PATH/oradelete.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraselect.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraupdate.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oradelete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/select.sql 2>/dev/null + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/db2update.sql 2>/dev/null + else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/update.sql 2>/dev/null + fi + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/delete.sql 2>/dev/null + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql 2>/dev/null +fi + +isql $DS < $REL_PATH/selectstar.sql 2>/dev/null +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 3; +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +kill -9 $pid +rm -f $REL_PATH/ora*.sql +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Gateway/test004n.ksh b/test/cache/Gateway/test004n.ksh new file mode 100755 index 00000000..c9448629 --- /dev/null +++ b/test/cache/Gateway/test004n.ksh @@ -0,0 +1,89 @@ +#!/bin/ksh +#insert, select, update, delete on table which is not there in both mysql and csql. All should fail. +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +# + +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6006 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +if [ $DSN = "oracle" ] +then + for a in 51 52 53 54 55 + do + echo "insert into t1 values($a,'KKK');" + done >> $REL_PATH/oracsqlinputt1.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/oracsqlinputt1.sql >/dev/null 2>&1 +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/csqldb2inputtest1.sql >/dev/null 2>&1 + else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/csqlinputtest1.sql >/dev/null 2>&1 + fi +fi +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 2; +fi +if [ $DSN = "oracle" ] +then + echo "select * from t1 where f1 in(10,30,50,54);" >> $REL_PATH/oraselect.sql + echo "select * from t1 where f1 between 20 and 54;" >> $REL_PATH/oraselect.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdate.sql + echo "delete from t1 where f2='BBB';" >> $REL_PATH/oradelete.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/oraselect.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/oraupdate.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/oradelete.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/selectstar.sql >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/select.sql 2>/dev/null + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/db2update.sql 2>/dev/null + else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/update.sql 2>/dev/null + fi + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/delete.sql 2>/dev/null + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6006 -g -s $REL_PATH/selectstar.sql 2>/dev/null +fi + +isql $DS < $REL_PATH/selectstar.sql 2>/dev/null +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 3; +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +rm -f $REL_PATH/ora*.sql +exit 0; diff --git a/test/cache/Gateway/test005.ksh b/test/cache/Gateway/test005.ksh new file mode 100755 index 00000000..b08a66ff --- /dev/null +++ b/test/cache/Gateway/test005.ksh @@ -0,0 +1,82 @@ +#!/bin/ksh + +# 5. Cached table there in csql, but complex query (avg on some field). It should get the correct value from mysql. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + echo "Unable to start server" + exit 4 +fi + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/complex.oracle +elif [ $DSN = "sybase" -o $DSN = "db2" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/complex.sybase +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/complex.sql +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Gateway/test005n.ksh b/test/cache/Gateway/test005n.ksh new file mode 100755 index 00000000..1eb57098 --- /dev/null +++ b/test/cache/Gateway/test005n.ksh @@ -0,0 +1,87 @@ +#!/bin/ksh + +# 5. Cached table there in csql, but complex query (avg on some field). It should get the correct value from mysql. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6008 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6008 -g -s $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + echo "Unable to start server" + exit 1 +fi + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6008 -g -s $REL_PATH/complex.oracle +elif [ $DSN = "sybase" -o $DSN = "db2" ] +then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6008 -g -s $REL_PATH/complex.sybase +else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6008 -g -s $REL_PATH/complex.sql +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/test006.ksh b/test/cache/Gateway/test006.ksh new file mode 100755 index 00000000..4b82f2ac --- /dev/null +++ b/test/cache/Gateway/test006.ksh @@ -0,0 +1,67 @@ +#!/bin/ksh + +# 6. Non cached table there in csql and mysql. run complex query (avg on some field). It should get the correct value from mysql. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest5.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest5.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest5.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +# edit /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/complex.oracle +elif [ $DSN = "sybase" -o $DSN = "db2" ] +then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/complex.sybase +else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/complex.sql +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +kill -9 $pid +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Gateway/test006n.ksh b/test/cache/Gateway/test006n.ksh new file mode 100755 index 00000000..73043610 --- /dev/null +++ b/test/cache/Gateway/test006n.ksh @@ -0,0 +1,71 @@ +#!/bin/ksh + +# 6. Non cached table there in csql and mysql. run complex query (avg on some field). It should get the correct value from mysql. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6010 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest5.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest5.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest5.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +# edit /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6010 -g -s $REL_PATH/selectstar.sql + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6010 -g -s $REL_PATH/complex.oracle +elif [ $DSN = "sybase" -o $DSN = "db2" ] +then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6008 -g -s $REL_PATH/complex.sybase +else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6010 -g -s $REL_PATH/complex.sql +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/test007.ksh b/test/cache/Gateway/test007.ksh new file mode 100755 index 00000000..a8cb2137 --- /dev/null +++ b/test/cache/Gateway/test007.ksh @@ -0,0 +1,71 @@ +#!/bin/ksh + +# 7. Cache table in csql from target database. Run any syntactically wrong query. There should be error reported both by csql and gateway. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle > /dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest5.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest5.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest5.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/syntaxerr.sql + +isql $DS < $REL_PATH/dropt1t2.sql > /dev/null 2>&1 +kill -9 $pid +ipcrm -M 1199 -M 2277 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/Gateway/test007n.ksh b/test/cache/Gateway/test007n.ksh new file mode 100755 index 00000000..14fd4b09 --- /dev/null +++ b/test/cache/Gateway/test007n.ksh @@ -0,0 +1,72 @@ +#!/bin/ksh + +# 7. Cache table in csql from target database. Run any syntactically wrong query. There should be error reported both by csql and gateway. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6012 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle > /dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest5.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest5.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest5.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6012 -g -s $REL_PATH/selectstar.sql +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6012 -g -s $REL_PATH/syntaxerr.sql + +isql $DS < $REL_PATH/dropt1t2.sql > /dev/null 2>&1 +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/Gateway/test008.ksh b/test/cache/Gateway/test008.ksh new file mode 100755 index 00000000..138fd450 --- /dev/null +++ b/test/cache/Gateway/test008.ksh @@ -0,0 +1,79 @@ +#!/bin/ksh + +# 8.Cached table there in csql, but join with another cached table in csql. It should get the correct value from mysql. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle > /dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest5.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest5.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest5.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest8.sql > /dev/null 2>&1 +fi +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +for a in 1 2 +do + $CSQL_INSTALL_ROOT/bin/cachetable -t t$a -d $DSN + if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; + fi +done >> /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/join.sql + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +kill -9 $pid +ipcrm -M 1199 -M 2277 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/Gateway/test008n.ksh b/test/cache/Gateway/test008n.ksh new file mode 100755 index 00000000..6c95f362 --- /dev/null +++ b/test/cache/Gateway/test008n.ksh @@ -0,0 +1,82 @@ +#!/bin/ksh + +# 8.Cached table there in csql, but join with another cached table in csql. It should get the correct value from mysql. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6014 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle > /dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest5.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest5.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest5.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest8.sql > /dev/null 2>&1 +fi +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +for a in 1 2 +do + $CSQL_INSTALL_ROOT/bin/cachetable -t t$a -d $DSN + if [ $? -ne 0 ] + then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; + fi +done >> /tmp/csql/csqltable.conf +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6014 -g -s $REL_PATH/join.sql + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/Gateway/test009.ksh b/test/cache/Gateway/test009.ksh new file mode 100755 index 00000000..ffe8d169 --- /dev/null +++ b/test/cache/Gateway/test009.ksh @@ -0,0 +1,82 @@ +#!/bin/ksh + +# 9.Cached table there in csql, but join with another noncached table in MySQL. It should get the correct value from mysql. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle > /dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest5.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest5.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest5.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest8.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 2; +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/join.sql + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +kill -9 $pid +ipcrm -M 1199 -M 2277 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/Gateway/test009n.ksh b/test/cache/Gateway/test009n.ksh new file mode 100755 index 00000000..d9789d85 --- /dev/null +++ b/test/cache/Gateway/test009n.ksh @@ -0,0 +1,86 @@ +#!/bin/ksh + +# 9.Cached table there in csql, but join with another noncached table in MySQL. It should get the correct value from mysql. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6016 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle > /dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest5.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest5.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest5.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest8.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 2; +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6016 -g -s $REL_PATH/join.sql + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/Gateway/test010.ksh b/test/cache/Gateway/test010.ksh new file mode 100755 index 00000000..ad2e9a08 --- /dev/null +++ b/test/cache/Gateway/test010.ksh @@ -0,0 +1,87 @@ +#!/bin/ksh + +# 10.Table there in csql and mysql and not cached. insert should insert only to csql table. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle > /dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 2; +fi + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +if [ $DSN = "oracle" ] +then + echo "insert into t1 values(100,'GGG');" >> $REL_PATH/orainsert.sql + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/orainputt1.oracle >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/orainsert.sql +else + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlinputtest10.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/insertdb2.sql + else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/insert.sql + fi +fi + +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 3; +fi + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f $REL_PATH/ora*.sql +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Gateway/test010n.ksh b/test/cache/Gateway/test010n.ksh new file mode 100755 index 00000000..231a0226 --- /dev/null +++ b/test/cache/Gateway/test010n.ksh @@ -0,0 +1,91 @@ +#!/bin/ksh + +# 10.Table there in csql and mysql and not cached. insert should insert only to csql table. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6018 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle > /dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 2; +fi + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +if [ $DSN = "oracle" ] +then + echo "insert into t1 values(100,'GGG');" >> $REL_PATH/orainsert.sql + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/orainputt1.oracle >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6018 -g -s $REL_PATH/selectstar.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6018 -g -s $REL_PATH/orainsert.sql +else + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlinputtest10.sql >/dev/null 2>&1 + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6018 -g -s $REL_PATH/selectstar.sql + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6018 -g -s $REL_PATH/insert.sql + else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6018 -g -s $REL_PATH/insertdb2.sql + fi +fi + +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 3; +fi + +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6018 -g -s $REL_PATH/selectstar.sql +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f $REL_PATH/ora*.sql +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/test011.ksh b/test/cache/Gateway/test011.ksh new file mode 100755 index 00000000..977b630d --- /dev/null +++ b/test/cache/Gateway/test011.ksh @@ -0,0 +1,71 @@ +#!/bin/ksh + +# 11.Table there in csql and mysql and not cached. select should return records in csql table. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 1; +fi + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlinputtest10.sql >/dev/null 2>&1 +fi + +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +isql $DSN < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Gateway/test011n.ksh b/test/cache/Gateway/test011n.ksh new file mode 100755 index 00000000..10375488 --- /dev/null +++ b/test/cache/Gateway/test011n.ksh @@ -0,0 +1,74 @@ +#!/bin/ksh + +# 11.Table there in csql and mysql and not cached. select should return records in csql table. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6020 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +isql $DS < $REL_PATH/selectstar.sql +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 1; +fi + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlinputtest10.sql >/dev/null 2>&1 +fi + +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6020 -g -s $REL_PATH/selectstar.sql +isql $DSN < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/test012a.ksh b/test/cache/Gateway/test012a.ksh new file mode 100755 index 00000000..3da36afc --- /dev/null +++ b/test/cache/Gateway/test012a.ksh @@ -0,0 +1,95 @@ +#!/bin/ksh + +# 12.csqlserver not running +# a)connect,select +# oncached table in mysql(should work), cached table (work), csql table (fail) + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 +fi +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest12.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest12.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest12.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 1; +fi +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlinputtest12.sql >/dev/null 2>&1 +fi +kill -9 $pid +ipcrm -M 1199 -M 2277 +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstart2.sql +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql +$CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstart3.sql +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/Gateway/test012an.ksh b/test/cache/Gateway/test012an.ksh new file mode 100755 index 00000000..9b511157 --- /dev/null +++ b/test/cache/Gateway/test012an.ksh @@ -0,0 +1,103 @@ +#!/bin/ksh + +# 12.csqlserver not running +# a)connect,select +# oncached table in mysql(should work), cached table (work), csql table (fail) + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm -f /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6022 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql >/dev/null 2>&1 + fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest12.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest12.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest12.sql >/dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + cp /tmp/csql.conf $CSQL_CONFIG_FILE + exit 1; +fi +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` + exit 3; +fi + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlinputtest12.sql >/dev/null 2>&1 +fi + +kill -9 $pid +ipcrm -M 1199 -M 2277 + +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6022 -g -s $REL_PATH/selectstart2.sql +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6022 -g -s $REL_PATH/selectstar.sql +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6022 -g -s $REL_PATH/selectstart3.sql +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/test012b.ksh b/test/cache/Gateway/test012b.ksh new file mode 100755 index 00000000..c4fde149 --- /dev/null +++ b/test/cache/Gateway/test012b.ksh @@ -0,0 +1,118 @@ +#!/bin/ksh + +# 12.csqlserver not running +# b)connect, update +# noncached table in mysql(should work), cached table (work), csql table (fail) + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle > /dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest12.sql > /dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest12.sql > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest12.sql > /dev/null 2>&1 +fi +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlinputtest12.sql >/dev/null 2>&1 +fi + +kill -9 $pid +ipcrm -M 1199 -M 2277 + +if [ $DSN = "oracle" ] +then + echo "update t2 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdatet2.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdatet1.sql + echo "update t3 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdatet3.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraupdatet2.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraupdatet1.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/oraupdatet3.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstart2.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstart3.sql +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/db2updatet2.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/db2update.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/db2updatet3.sql + else + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/updatet2.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/update.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/updatet3.sql + fi + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstart2.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstar.sql + $CSQL_INSTALL_ROOT/bin/csql -g -s $REL_PATH/selectstart3.sql +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 + +rm -f /tmp/csql/csqltable.conf +rm -f $REL_PATH/oraup*.sql +touch /tmp/csql/csqltable.conf +exit 0; diff --git a/test/cache/Gateway/test012bn.ksh b/test/cache/Gateway/test012bn.ksh new file mode 100755 index 00000000..45d3aecd --- /dev/null +++ b/test/cache/Gateway/test012bn.ksh @@ -0,0 +1,116 @@ +#!/bin/ksh + +# 12.csqlserver not running +# b)connect, update +# noncached table in mysql(should work), cached table (work), csql table (fail) + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +input=${PWD}/cache/Gateway/mysqlinputtest1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi +rm /tmp/csql.conf + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6024 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt1.oracle >/dev/null 2>&1 +elif [ $DSN = "sybase" ] +then + isql $DS < $REL_PATH/sybaseinputtest1.sql >/dev/null 2>&1 +elif [ $DSN = "db2" ] +then + isql $DS < $REL_PATH/db2inputtest1.sql >/dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest1.sql > /dev/null 2>&1 +fi + +if [ $? -ne 0 ] +then + echo "DSN is not set for target db" + exit 1 +fi + +if [ $DSN = "oracle" ] +then + isql $DS < $REL_PATH/orainputt2.oracle > /dev/null 2>&1 +else + isql $DS < $REL_PATH/mysqlinputtest12.sql > /dev/null 2>&1 +fi +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/cachetable -t t1 -d $DSN +if [ $? -ne 0 ] +then + kill -9 $pid + ipcrm -M 1199 -M 2277 + exit 3; +fi + +if [ $DSN = "oracle" ] +then + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/orainputt3.oracle >/dev/null 2>&1 +else + $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlinputtest12.sql >/dev/null 2>&1 +fi + +kill -9 $pid +ipcrm -M 1199 -M 2277 + +if [ $DSN = "oracle" ] +then + echo "update t2 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdatet2.sql + echo "update t1 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdatet1.sql + echo "update t3 set f2='LLL' where f1=20;" >> $REL_PATH/oraupdatet3.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/oraupdatet2.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/oraupdatet1.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/oraupdatet3.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/selectstart2.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/selectstar.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/selectstart3.sql +else + if [ $DSN = "db2" ] + then + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/db2updatet2.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/db2update.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/db2updatet3.sql + else + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/updatet2.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/update.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/updatet3.sql + fi + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/selectstart2.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/selectstar.sql + $CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6024 -g -s $REL_PATH/selectstart3.sql +fi + +isql $DS < $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1 + +rm -f /tmp/csql/csqltable.conf +rm -f $REL_PATH/ora*.sql +touch /tmp/csql/csqltable.conf +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/test013.ksh b/test/cache/Gateway/test013.ksh new file mode 100755 index 00000000..bba2ef45 --- /dev/null +++ b/test/cache/Gateway/test013.ksh @@ -0,0 +1,90 @@ +#!/bin/ksh + +# Create 't1' table with f1 int, f2 char(10) ,primarykey(f1) in target database +# Insert some records with null values +# Select from CSQL with -g .It should give actual data as in target database +# it should be unloaded by -u option + +input=${PWD}/cache/Gateway/complex.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi + +cp $REL_PATH/csql.conf /tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "sybase" ] +then + echo "create table t1 (f1 int ,f2 char(10) NULL,primary key(f1));" >${REL_PATH}/t1create.sql +elif [ $DSN = "db2" ] +then + echo "create table t1 (f1 int NOT NULL ,f2 char(10) ,primary key(f1));" >${REL_PATH}/t1create.sql +else + echo "create table t1 (f1 int,f2 char(10),primary key(f1));" >${REL_PATH}/t1create.sql +fi +for a in 1 2 3 4 5 +do +echo "insert into t1 values($a,'INDIA$a');" +echo "insert into t1 values($a+10 , NULL);" +done>>${REL_PATH}/t1create.sql +echo "t1create.sql file created" +echo "select * from t1;">${REL_PATH}/sel.sql +echo "select file created" +isql $DS < ${REL_PATH}/t1create.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + rm -f ${REL_PATH}/sel.sql + rm -f ${REL_PATH}/t1create.sql + exit 1; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +echo "drop table t1;">${REL_PATH}/dp.sql + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +echo "Select * from t1 in CSQL" +$CSQL_INSTALL_ROOT/bin/csql -g -s ${REL_PATH}/sel.sql +if [ $? -ne 0 ] +then + rm -f ${REL_PATH}/sel.sql + rm -f ${REL_PATH}/t1create.sql + isql $DS < ${REL_PATH}/dp.sql >/dev/null 2>&1 + exit 3; +fi + +echo "Checking for table created or not" +$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -l +if [ $? -ne 0 ] +then + rm -f ${REL_PATH}/sel.sql + rm -f ${REL_PATH}/t1create.sql + isql $DS < ${REL_PATH}/dp.sql >/dev/null 2>&1 + exit 4; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +isql $DS < ${REL_PATH}/dp.sql >/dev/null 2>&1 + +rm -f ${REL_PATH}/dp.sql +rm -f ${REL_PATH}/sel.sql +rm -f ${REL_PATH}/t1create.sql +kill -9 $pid +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Gateway/test013n.ksh b/test/cache/Gateway/test013n.ksh new file mode 100755 index 00000000..5b84d41f --- /dev/null +++ b/test/cache/Gateway/test013n.ksh @@ -0,0 +1,92 @@ +#!/bin/ksh + +# Create 't1' table with f1 int, f2 char(10) ,primarykey(f1) in target database +# Insert some records with null values +# Select from CSQL with -g .It should give actual data as in target database +# it should be unloaded by -u option + +input=${PWD}/cache/Gateway/complex.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Gateway +fi + +cp $REL_PATH/csql.conf /tmp/csql.conf +echo CSQL_SQL_SERVER=true >>/tmp/csql.conf +echo PORT=6026 >>/tmp/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql.conf +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi +echo DSN=$DSN >>$CSQL_CONFIG_FILE +if [ $DSN = "sybase" ] +then + echo "create table t1 (f1 int ,f2 char(10) NULL,primary key(f1));" >${REL_PATH}/t1create.sql +elif [ $DSN = "db2" ] +then + echo "create table t1 (f1 int NOT NULL ,f2 char(10) ,primary key(f1));" >${REL_PATH}/t1create.sql +else + echo "create table t1 (f1 int,f2 char(10),primary key(f1));" >${REL_PATH}/t1create.sql +fi + +for a in 1 2 3 4 5 +do +echo "insert into t1 values($a,'INDIA$a');" +echo "insert into t1 values($a+10 , NULL);" +done>>${REL_PATH}/t1create.sql +echo "t1create.sql file created" +echo "select * from t1;">${REL_PATH}/sel.sql +echo "select file created" +isql $DS < ${REL_PATH}/t1create.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + rm -f ${REL_PATH}/sel.sql + rm -f ${REL_PATH}/t1create.sql + exit 1; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +echo "drop table t1;">${REL_PATH}/dp.sql + +$CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & +pid=$! +sleep 5 + +echo "Select * from t1 in CSQL" +$CSQL_INSTALL_ROOT/bin/csql -H localhost -P 6026 -g -s ${REL_PATH}/sel.sql +if [ $? -ne 0 ] +then + rm -f ${REL_PATH}/sel.sql + rm -f ${REL_PATH}/t1create.sql + isql $DS < ${REL_PATH}/dp.sql >/dev/null 2>&1 + exit 3; +fi + +echo "Checking for table created or not" +$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -l +if [ $? -ne 0 ] +then + rm -f ${REL_PATH}/sel.sql + rm -f ${REL_PATH}/t1create.sql + isql $DS < ${REL_PATH}/dp.sql >/dev/null 2>&1 + exit 4; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +isql $DS < ${REL_PATH}/dp.sql >/dev/null 2>&1 + +rm -f ${REL_PATH}/dp.sql +rm -f ${REL_PATH}/sel.sql +rm -f ${REL_PATH}/t1create.sql +kill -9 $pid +ipcrm -M 1199 -M 2277 +kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'` +exit 0; diff --git a/test/cache/Gateway/update.sql b/test/cache/Gateway/update.sql new file mode 100644 index 00000000..0b8f81cf --- /dev/null +++ b/test/cache/Gateway/update.sql @@ -0,0 +1,7 @@ +update t1 set f2=1995, f9 = '1971/12/25 11:42:35' where f1 = 2; +update t1 set f3=333666999, f9 = '1973/08/15 13:45:36' where f1 = 3; +update t1 set f4='poonam', f9 = '1974/12/25 14:42:35' where f1 = 4; +update t1 set f7='1978/09/12', f9 = '1977/12/25 17:42:35' where f1 = 7; +update t1 set f8='12:34:56', f9 = '1978/12/25 18:42:35' where f1 =8; +update t1 set f9='1978/09/12 12:34:56', f9 = '1979/12/25 19:42:35' where f1 = 9; + diff --git a/test/cache/Gateway/updatet2.sql b/test/cache/Gateway/updatet2.sql new file mode 100644 index 00000000..88005f1c --- /dev/null +++ b/test/cache/Gateway/updatet2.sql @@ -0,0 +1,7 @@ +update t2 set t2f2=1995, t2f9 = '1971/12/25 11:42:35' where t2f1 = 2; +update t2 set t2f3=333666999, t2f9 = '1973/08/15 13:45:36' where t2f1 = 3; +update t2 set t2f4='poonam', t2f9 = '1974/12/25 14:42:35' where t2f1 = 4; +update t2 set t2f7='1978/09/12', t2f9 = '1977/12/25 17:42:35' where t2f1 = 7; +update t2 set t2f8='12:34:56', t2f9 = '1978/12/25 18:42:35' where t2f1 =8; +update t2 set t2f9='1978/09/12 12:34:56', t2f9 = '1979/12/25 19:42:35' where t2f1 = 9; + diff --git a/test/cache/Gateway/updatet3.sql b/test/cache/Gateway/updatet3.sql new file mode 100644 index 00000000..0debd64b --- /dev/null +++ b/test/cache/Gateway/updatet3.sql @@ -0,0 +1,7 @@ +update t3 set t3f2=1995, t3f9 = '1971/12/25 11:42:35' where t3f1 = 2; +update t3 set t3f3=333666999, t3f9 = '1973/08/15 13:45:36' where t3f1 = 3; +update t3 set t3f4='poonam', t3f9 = '1974/12/25 14:42:35' where t3f1 = 4; +update t3 set t3f7='1978/09/12', t3f9 = '1977/12/25 17:42:35' where t3f1 = 7; +update t3 set t3f8='12:34:56', t3f9 = '1978/12/25 18:42:35' where t3f1 =8; +update t3 set t3f9='1978/09/12 12:34:56', t3f9 = '1979/12/25 19:42:35' where t3f1 = 9; + diff --git a/test/cache/Makefile b/test/cache/Makefile new file mode 100644 index 00000000..8b8aa8e0 --- /dev/null +++ b/test/cache/Makefile @@ -0,0 +1,18 @@ +OSNAME = $(shell uname -s) +MAKE=gmake + +all: + @for i in *; \ + do \ + if [ -d $$i ];\ + then cd $$i; $(MAKE); cd ..;\ + fi;\ + done + +clean: + @for i in *; \ + do \ + if [ -d $$i ];\ + then cd $$i; $(MAKE) clean; cd ..;\ + fi;\ + done diff --git a/test/cache/Recovery/create.sql b/test/cache/Recovery/create.sql new file mode 100644 index 00000000..32419b81 --- /dev/null +++ b/test/cache/Recovery/create.sql @@ -0,0 +1,1100 @@ +create table t1 (f1 int not null primary key, f2 int); +insert into t1 values(1,11); +insert into t1 values(2,21); +insert into t1 values(3,31); +insert into t1 values(4,41); +insert into t1 values(5,51); +insert into t1 values(6,61); +insert into t1 values(7,71); +insert into t1 values(8,81); +insert into t1 values(9,91); +insert into t1 values(10,101); +create table t2 (f1 int not null primary key, f2 int); +insert into t2 values(1,11); +insert into t2 values(2,21); +insert into t2 values(3,31); +insert into t2 values(4,41); +insert into t2 values(5,51); +insert into t2 values(6,61); +insert into t2 values(7,71); +insert into t2 values(8,81); +insert into t2 values(9,91); +insert into t2 values(10,101); +create table t3 (f1 int not null primary key, f2 int); +insert into t3 values(1,11); +insert into t3 values(2,21); +insert into t3 values(3,31); +insert into t3 values(4,41); +insert into t3 values(5,51); +insert into t3 values(6,61); +insert into t3 values(7,71); +insert into t3 values(8,81); +insert into t3 values(9,91); +insert into t3 values(10,101); +create table t4 (f1 int not null primary key, f2 int); +insert into t4 values(1,11); +insert into t4 values(2,21); +insert into t4 values(3,31); +insert into t4 values(4,41); +insert into t4 values(5,51); +insert into t4 values(6,61); +insert into t4 values(7,71); +insert into t4 values(8,81); +insert into t4 values(9,91); +insert into t4 values(10,101); +create table t5 (f1 int not null primary key, f2 int); +insert into t5 values(1,11); +insert into t5 values(2,21); +insert into t5 values(3,31); +insert into t5 values(4,41); +insert into t5 values(5,51); +insert into t5 values(6,61); +insert into t5 values(7,71); +insert into t5 values(8,81); +insert into t5 values(9,91); +insert into t5 values(10,101); +create table t6 (f1 int not null primary key, f2 int); +insert into t6 values(1,11); +insert into t6 values(2,21); +insert into t6 values(3,31); +insert into t6 values(4,41); +insert into t6 values(5,51); +insert into t6 values(6,61); +insert into t6 values(7,71); +insert into t6 values(8,81); +insert into t6 values(9,91); +insert into t6 values(10,101); +create table t7 (f1 int not null primary key, f2 int); +insert into t7 values(1,11); +insert into t7 values(2,21); +insert into t7 values(3,31); +insert into t7 values(4,41); +insert into t7 values(5,51); +insert into t7 values(6,61); +insert into t7 values(7,71); +insert into t7 values(8,81); +insert into t7 values(9,91); +insert into t7 values(10,101); +create table t8 (f1 int not null primary key, f2 int); +insert into t8 values(1,11); +insert into t8 values(2,21); +insert into t8 values(3,31); +insert into t8 values(4,41); +insert into t8 values(5,51); +insert into t8 values(6,61); +insert into t8 values(7,71); +insert into t8 values(8,81); +insert into t8 values(9,91); +insert into t8 values(10,101); +create table t9 (f1 int not null primary key, f2 int); +insert into t9 values(1,11); +insert into t9 values(2,21); +insert into t9 values(3,31); +insert into t9 values(4,41); +insert into t9 values(5,51); +insert into t9 values(6,61); +insert into t9 values(7,71); +insert into t9 values(8,81); +insert into t9 values(9,91); +insert into t9 values(10,101); +create table t10 (f1 int not null primary key, f2 int); +insert into t10 values(1,11); +insert into t10 values(2,21); +insert into t10 values(3,31); +insert into t10 values(4,41); +insert into t10 values(5,51); +insert into t10 values(6,61); +insert into t10 values(7,71); +insert into t10 values(8,81); +insert into t10 values(9,91); +insert into t10 values(10,101); +create table t11 (f1 int not null primary key, f2 int); +insert into t11 values(1,11); +insert into t11 values(2,21); +insert into t11 values(3,31); +insert into t11 values(4,41); +insert into t11 values(5,51); +insert into t11 values(6,61); +insert into t11 values(7,71); +insert into t11 values(8,81); +insert into t11 values(9,91); +insert into t11 values(10,101); +create table t12 (f1 int not null primary key, f2 int); +insert into t12 values(1,11); +insert into t12 values(2,21); +insert into t12 values(3,31); +insert into t12 values(4,41); +insert into t12 values(5,51); +insert into t12 values(6,61); +insert into t12 values(7,71); +insert into t12 values(8,81); +insert into t12 values(9,91); +insert into t12 values(10,101); +create table t13 (f1 int not null primary key, f2 int); +insert into t13 values(1,11); +insert into t13 values(2,21); +insert into t13 values(3,31); +insert into t13 values(4,41); +insert into t13 values(5,51); +insert into t13 values(6,61); +insert into t13 values(7,71); +insert into t13 values(8,81); +insert into t13 values(9,91); +insert into t13 values(10,101); +create table t14 (f1 int not null primary key, f2 int); +insert into t14 values(1,11); +insert into t14 values(2,21); +insert into t14 values(3,31); +insert into t14 values(4,41); +insert into t14 values(5,51); +insert into t14 values(6,61); +insert into t14 values(7,71); +insert into t14 values(8,81); +insert into t14 values(9,91); +insert into t14 values(10,101); +create table t15 (f1 int not null primary key, f2 int); +insert into t15 values(1,11); +insert into t15 values(2,21); +insert into t15 values(3,31); +insert into t15 values(4,41); +insert into t15 values(5,51); +insert into t15 values(6,61); +insert into t15 values(7,71); +insert into t15 values(8,81); +insert into t15 values(9,91); +insert into t15 values(10,101); +create table t16 (f1 int not null primary key, f2 int); +insert into t16 values(1,11); +insert into t16 values(2,21); +insert into t16 values(3,31); +insert into t16 values(4,41); +insert into t16 values(5,51); +insert into t16 values(6,61); +insert into t16 values(7,71); +insert into t16 values(8,81); +insert into t16 values(9,91); +insert into t16 values(10,101); +create table t17 (f1 int not null primary key, f2 int); +insert into t17 values(1,11); +insert into t17 values(2,21); +insert into t17 values(3,31); +insert into t17 values(4,41); +insert into t17 values(5,51); +insert into t17 values(6,61); +insert into t17 values(7,71); +insert into t17 values(8,81); +insert into t17 values(9,91); +insert into t17 values(10,101); +create table t18 (f1 int not null primary key, f2 int); +insert into t18 values(1,11); +insert into t18 values(2,21); +insert into t18 values(3,31); +insert into t18 values(4,41); +insert into t18 values(5,51); +insert into t18 values(6,61); +insert into t18 values(7,71); +insert into t18 values(8,81); +insert into t18 values(9,91); +insert into t18 values(10,101); +create table t19 (f1 int not null primary key, f2 int); +insert into t19 values(1,11); +insert into t19 values(2,21); +insert into t19 values(3,31); +insert into t19 values(4,41); +insert into t19 values(5,51); +insert into t19 values(6,61); +insert into t19 values(7,71); +insert into t19 values(8,81); +insert into t19 values(9,91); +insert into t19 values(10,101); +create table t20 (f1 int not null primary key, f2 int); +insert into t20 values(1,11); +insert into t20 values(2,21); +insert into t20 values(3,31); +insert into t20 values(4,41); +insert into t20 values(5,51); +insert into t20 values(6,61); +insert into t20 values(7,71); +insert into t20 values(8,81); +insert into t20 values(9,91); +insert into t20 values(10,101); +create table t21 (f1 int not null primary key, f2 int); +insert into t21 values(1,11); +insert into t21 values(2,21); +insert into t21 values(3,31); +insert into t21 values(4,41); +insert into t21 values(5,51); +insert into t21 values(6,61); +insert into t21 values(7,71); +insert into t21 values(8,81); +insert into t21 values(9,91); +insert into t21 values(10,101); +create table t22 (f1 int not null primary key, f2 int); +insert into t22 values(1,11); +insert into t22 values(2,21); +insert into t22 values(3,31); +insert into t22 values(4,41); +insert into t22 values(5,51); +insert into t22 values(6,61); +insert into t22 values(7,71); +insert into t22 values(8,81); +insert into t22 values(9,91); +insert into t22 values(10,101); +create table t23 (f1 int not null primary key, f2 int); +insert into t23 values(1,11); +insert into t23 values(2,21); +insert into t23 values(3,31); +insert into t23 values(4,41); +insert into t23 values(5,51); +insert into t23 values(6,61); +insert into t23 values(7,71); +insert into t23 values(8,81); +insert into t23 values(9,91); +insert into t23 values(10,101); +create table t24 (f1 int not null primary key, f2 int); +insert into t24 values(1,11); +insert into t24 values(2,21); +insert into t24 values(3,31); +insert into t24 values(4,41); +insert into t24 values(5,51); +insert into t24 values(6,61); +insert into t24 values(7,71); +insert into t24 values(8,81); +insert into t24 values(9,91); +insert into t24 values(10,101); +create table t25 (f1 int not null primary key, f2 int); +insert into t25 values(1,11); +insert into t25 values(2,21); +insert into t25 values(3,31); +insert into t25 values(4,41); +insert into t25 values(5,51); +insert into t25 values(6,61); +insert into t25 values(7,71); +insert into t25 values(8,81); +insert into t25 values(9,91); +insert into t25 values(10,101); +create table t26 (f1 int not null primary key, f2 int); +insert into t26 values(1,11); +insert into t26 values(2,21); +insert into t26 values(3,31); +insert into t26 values(4,41); +insert into t26 values(5,51); +insert into t26 values(6,61); +insert into t26 values(7,71); +insert into t26 values(8,81); +insert into t26 values(9,91); +insert into t26 values(10,101); +create table t27 (f1 int not null primary key, f2 int); +insert into t27 values(1,11); +insert into t27 values(2,21); +insert into t27 values(3,31); +insert into t27 values(4,41); +insert into t27 values(5,51); +insert into t27 values(6,61); +insert into t27 values(7,71); +insert into t27 values(8,81); +insert into t27 values(9,91); +insert into t27 values(10,101); +create table t28 (f1 int not null primary key, f2 int); +insert into t28 values(1,11); +insert into t28 values(2,21); +insert into t28 values(3,31); +insert into t28 values(4,41); +insert into t28 values(5,51); +insert into t28 values(6,61); +insert into t28 values(7,71); +insert into t28 values(8,81); +insert into t28 values(9,91); +insert into t28 values(10,101); +create table t29 (f1 int not null primary key, f2 int); +insert into t29 values(1,11); +insert into t29 values(2,21); +insert into t29 values(3,31); +insert into t29 values(4,41); +insert into t29 values(5,51); +insert into t29 values(6,61); +insert into t29 values(7,71); +insert into t29 values(8,81); +insert into t29 values(9,91); +insert into t29 values(10,101); +create table t30 (f1 int not null primary key, f2 int); +insert into t30 values(1,11); +insert into t30 values(2,21); +insert into t30 values(3,31); +insert into t30 values(4,41); +insert into t30 values(5,51); +insert into t30 values(6,61); +insert into t30 values(7,71); +insert into t30 values(8,81); +insert into t30 values(9,91); +insert into t30 values(10,101); +create table t31 (f1 int not null primary key, f2 int); +insert into t31 values(1,11); +insert into t31 values(2,21); +insert into t31 values(3,31); +insert into t31 values(4,41); +insert into t31 values(5,51); +insert into t31 values(6,61); +insert into t31 values(7,71); +insert into t31 values(8,81); +insert into t31 values(9,91); +insert into t31 values(10,101); +create table t32 (f1 int not null primary key, f2 int); +insert into t32 values(1,11); +insert into t32 values(2,21); +insert into t32 values(3,31); +insert into t32 values(4,41); +insert into t32 values(5,51); +insert into t32 values(6,61); +insert into t32 values(7,71); +insert into t32 values(8,81); +insert into t32 values(9,91); +insert into t32 values(10,101); +create table t33 (f1 int not null primary key, f2 int); +insert into t33 values(1,11); +insert into t33 values(2,21); +insert into t33 values(3,31); +insert into t33 values(4,41); +insert into t33 values(5,51); +insert into t33 values(6,61); +insert into t33 values(7,71); +insert into t33 values(8,81); +insert into t33 values(9,91); +insert into t33 values(10,101); +create table t34 (f1 int not null primary key, f2 int); +insert into t34 values(1,11); +insert into t34 values(2,21); +insert into t34 values(3,31); +insert into t34 values(4,41); +insert into t34 values(5,51); +insert into t34 values(6,61); +insert into t34 values(7,71); +insert into t34 values(8,81); +insert into t34 values(9,91); +insert into t34 values(10,101); +create table t35 (f1 int not null primary key, f2 int); +insert into t35 values(1,11); +insert into t35 values(2,21); +insert into t35 values(3,31); +insert into t35 values(4,41); +insert into t35 values(5,51); +insert into t35 values(6,61); +insert into t35 values(7,71); +insert into t35 values(8,81); +insert into t35 values(9,91); +insert into t35 values(10,101); +create table t36 (f1 int not null primary key, f2 int); +insert into t36 values(1,11); +insert into t36 values(2,21); +insert into t36 values(3,31); +insert into t36 values(4,41); +insert into t36 values(5,51); +insert into t36 values(6,61); +insert into t36 values(7,71); +insert into t36 values(8,81); +insert into t36 values(9,91); +insert into t36 values(10,101); +create table t37 (f1 int not null primary key, f2 int); +insert into t37 values(1,11); +insert into t37 values(2,21); +insert into t37 values(3,31); +insert into t37 values(4,41); +insert into t37 values(5,51); +insert into t37 values(6,61); +insert into t37 values(7,71); +insert into t37 values(8,81); +insert into t37 values(9,91); +insert into t37 values(10,101); +create table t38 (f1 int not null primary key, f2 int); +insert into t38 values(1,11); +insert into t38 values(2,21); +insert into t38 values(3,31); +insert into t38 values(4,41); +insert into t38 values(5,51); +insert into t38 values(6,61); +insert into t38 values(7,71); +insert into t38 values(8,81); +insert into t38 values(9,91); +insert into t38 values(10,101); +create table t39 (f1 int not null primary key, f2 int); +insert into t39 values(1,11); +insert into t39 values(2,21); +insert into t39 values(3,31); +insert into t39 values(4,41); +insert into t39 values(5,51); +insert into t39 values(6,61); +insert into t39 values(7,71); +insert into t39 values(8,81); +insert into t39 values(9,91); +insert into t39 values(10,101); +create table t40 (f1 int not null primary key, f2 int); +insert into t40 values(1,11); +insert into t40 values(2,21); +insert into t40 values(3,31); +insert into t40 values(4,41); +insert into t40 values(5,51); +insert into t40 values(6,61); +insert into t40 values(7,71); +insert into t40 values(8,81); +insert into t40 values(9,91); +insert into t40 values(10,101); +create table t41 (f1 int not null primary key, f2 int); +insert into t41 values(1,11); +insert into t41 values(2,21); +insert into t41 values(3,31); +insert into t41 values(4,41); +insert into t41 values(5,51); +insert into t41 values(6,61); +insert into t41 values(7,71); +insert into t41 values(8,81); +insert into t41 values(9,91); +insert into t41 values(10,101); +create table t42 (f1 int not null primary key, f2 int); +insert into t42 values(1,11); +insert into t42 values(2,21); +insert into t42 values(3,31); +insert into t42 values(4,41); +insert into t42 values(5,51); +insert into t42 values(6,61); +insert into t42 values(7,71); +insert into t42 values(8,81); +insert into t42 values(9,91); +insert into t42 values(10,101); +create table t43 (f1 int not null primary key, f2 int); +insert into t43 values(1,11); +insert into t43 values(2,21); +insert into t43 values(3,31); +insert into t43 values(4,41); +insert into t43 values(5,51); +insert into t43 values(6,61); +insert into t43 values(7,71); +insert into t43 values(8,81); +insert into t43 values(9,91); +insert into t43 values(10,101); +create table t44 (f1 int not null primary key, f2 int); +insert into t44 values(1,11); +insert into t44 values(2,21); +insert into t44 values(3,31); +insert into t44 values(4,41); +insert into t44 values(5,51); +insert into t44 values(6,61); +insert into t44 values(7,71); +insert into t44 values(8,81); +insert into t44 values(9,91); +insert into t44 values(10,101); +create table t45 (f1 int not null primary key, f2 int); +insert into t45 values(1,11); +insert into t45 values(2,21); +insert into t45 values(3,31); +insert into t45 values(4,41); +insert into t45 values(5,51); +insert into t45 values(6,61); +insert into t45 values(7,71); +insert into t45 values(8,81); +insert into t45 values(9,91); +insert into t45 values(10,101); +create table t46 (f1 int not null primary key, f2 int); +insert into t46 values(1,11); +insert into t46 values(2,21); +insert into t46 values(3,31); +insert into t46 values(4,41); +insert into t46 values(5,51); +insert into t46 values(6,61); +insert into t46 values(7,71); +insert into t46 values(8,81); +insert into t46 values(9,91); +insert into t46 values(10,101); +create table t47 (f1 int not null primary key, f2 int); +insert into t47 values(1,11); +insert into t47 values(2,21); +insert into t47 values(3,31); +insert into t47 values(4,41); +insert into t47 values(5,51); +insert into t47 values(6,61); +insert into t47 values(7,71); +insert into t47 values(8,81); +insert into t47 values(9,91); +insert into t47 values(10,101); +create table t48 (f1 int not null primary key, f2 int); +insert into t48 values(1,11); +insert into t48 values(2,21); +insert into t48 values(3,31); +insert into t48 values(4,41); +insert into t48 values(5,51); +insert into t48 values(6,61); +insert into t48 values(7,71); +insert into t48 values(8,81); +insert into t48 values(9,91); +insert into t48 values(10,101); +create table t49 (f1 int not null primary key, f2 int); +insert into t49 values(1,11); +insert into t49 values(2,21); +insert into t49 values(3,31); +insert into t49 values(4,41); +insert into t49 values(5,51); +insert into t49 values(6,61); +insert into t49 values(7,71); +insert into t49 values(8,81); +insert into t49 values(9,91); +insert into t49 values(10,101); +create table t50 (f1 int not null primary key, f2 int); +insert into t50 values(1,11); +insert into t50 values(2,21); +insert into t50 values(3,31); +insert into t50 values(4,41); +insert into t50 values(5,51); +insert into t50 values(6,61); +insert into t50 values(7,71); +insert into t50 values(8,81); +insert into t50 values(9,91); +insert into t50 values(10,101); +create table t51 (f1 int not null primary key, f2 int); +insert into t51 values(1,11); +insert into t51 values(2,21); +insert into t51 values(3,31); +insert into t51 values(4,41); +insert into t51 values(5,51); +insert into t51 values(6,61); +insert into t51 values(7,71); +insert into t51 values(8,81); +insert into t51 values(9,91); +insert into t51 values(10,101); +create table t52 (f1 int not null primary key, f2 int); +insert into t52 values(1,11); +insert into t52 values(2,21); +insert into t52 values(3,31); +insert into t52 values(4,41); +insert into t52 values(5,51); +insert into t52 values(6,61); +insert into t52 values(7,71); +insert into t52 values(8,81); +insert into t52 values(9,91); +insert into t52 values(10,101); +create table t53 (f1 int not null primary key, f2 int); +insert into t53 values(1,11); +insert into t53 values(2,21); +insert into t53 values(3,31); +insert into t53 values(4,41); +insert into t53 values(5,51); +insert into t53 values(6,61); +insert into t53 values(7,71); +insert into t53 values(8,81); +insert into t53 values(9,91); +insert into t53 values(10,101); +create table t54 (f1 int not null primary key, f2 int); +insert into t54 values(1,11); +insert into t54 values(2,21); +insert into t54 values(3,31); +insert into t54 values(4,41); +insert into t54 values(5,51); +insert into t54 values(6,61); +insert into t54 values(7,71); +insert into t54 values(8,81); +insert into t54 values(9,91); +insert into t54 values(10,101); +create table t55 (f1 int not null primary key, f2 int); +insert into t55 values(1,11); +insert into t55 values(2,21); +insert into t55 values(3,31); +insert into t55 values(4,41); +insert into t55 values(5,51); +insert into t55 values(6,61); +insert into t55 values(7,71); +insert into t55 values(8,81); +insert into t55 values(9,91); +insert into t55 values(10,101); +create table t56 (f1 int not null primary key, f2 int); +insert into t56 values(1,11); +insert into t56 values(2,21); +insert into t56 values(3,31); +insert into t56 values(4,41); +insert into t56 values(5,51); +insert into t56 values(6,61); +insert into t56 values(7,71); +insert into t56 values(8,81); +insert into t56 values(9,91); +insert into t56 values(10,101); +create table t57 (f1 int not null primary key, f2 int); +insert into t57 values(1,11); +insert into t57 values(2,21); +insert into t57 values(3,31); +insert into t57 values(4,41); +insert into t57 values(5,51); +insert into t57 values(6,61); +insert into t57 values(7,71); +insert into t57 values(8,81); +insert into t57 values(9,91); +insert into t57 values(10,101); +create table t58 (f1 int not null primary key, f2 int); +insert into t58 values(1,11); +insert into t58 values(2,21); +insert into t58 values(3,31); +insert into t58 values(4,41); +insert into t58 values(5,51); +insert into t58 values(6,61); +insert into t58 values(7,71); +insert into t58 values(8,81); +insert into t58 values(9,91); +insert into t58 values(10,101); +create table t59 (f1 int not null primary key, f2 int); +insert into t59 values(1,11); +insert into t59 values(2,21); +insert into t59 values(3,31); +insert into t59 values(4,41); +insert into t59 values(5,51); +insert into t59 values(6,61); +insert into t59 values(7,71); +insert into t59 values(8,81); +insert into t59 values(9,91); +insert into t59 values(10,101); +create table t60 (f1 int not null primary key, f2 int); +insert into t60 values(1,11); +insert into t60 values(2,21); +insert into t60 values(3,31); +insert into t60 values(4,41); +insert into t60 values(5,51); +insert into t60 values(6,61); +insert into t60 values(7,71); +insert into t60 values(8,81); +insert into t60 values(9,91); +insert into t60 values(10,101); +create table t61 (f1 int not null primary key, f2 int); +insert into t61 values(1,11); +insert into t61 values(2,21); +insert into t61 values(3,31); +insert into t61 values(4,41); +insert into t61 values(5,51); +insert into t61 values(6,61); +insert into t61 values(7,71); +insert into t61 values(8,81); +insert into t61 values(9,91); +insert into t61 values(10,101); +create table t62 (f1 int not null primary key, f2 int); +insert into t62 values(1,11); +insert into t62 values(2,21); +insert into t62 values(3,31); +insert into t62 values(4,41); +insert into t62 values(5,51); +insert into t62 values(6,61); +insert into t62 values(7,71); +insert into t62 values(8,81); +insert into t62 values(9,91); +insert into t62 values(10,101); +create table t63 (f1 int not null primary key, f2 int); +insert into t63 values(1,11); +insert into t63 values(2,21); +insert into t63 values(3,31); +insert into t63 values(4,41); +insert into t63 values(5,51); +insert into t63 values(6,61); +insert into t63 values(7,71); +insert into t63 values(8,81); +insert into t63 values(9,91); +insert into t63 values(10,101); +create table t64 (f1 int not null primary key, f2 int); +insert into t64 values(1,11); +insert into t64 values(2,21); +insert into t64 values(3,31); +insert into t64 values(4,41); +insert into t64 values(5,51); +insert into t64 values(6,61); +insert into t64 values(7,71); +insert into t64 values(8,81); +insert into t64 values(9,91); +insert into t64 values(10,101); +create table t65 (f1 int not null primary key, f2 int); +insert into t65 values(1,11); +insert into t65 values(2,21); +insert into t65 values(3,31); +insert into t65 values(4,41); +insert into t65 values(5,51); +insert into t65 values(6,61); +insert into t65 values(7,71); +insert into t65 values(8,81); +insert into t65 values(9,91); +insert into t65 values(10,101); +create table t66 (f1 int not null primary key, f2 int); +insert into t66 values(1,11); +insert into t66 values(2,21); +insert into t66 values(3,31); +insert into t66 values(4,41); +insert into t66 values(5,51); +insert into t66 values(6,61); +insert into t66 values(7,71); +insert into t66 values(8,81); +insert into t66 values(9,91); +insert into t66 values(10,101); +create table t67 (f1 int not null primary key, f2 int); +insert into t67 values(1,11); +insert into t67 values(2,21); +insert into t67 values(3,31); +insert into t67 values(4,41); +insert into t67 values(5,51); +insert into t67 values(6,61); +insert into t67 values(7,71); +insert into t67 values(8,81); +insert into t67 values(9,91); +insert into t67 values(10,101); +create table t68 (f1 int not null primary key, f2 int); +insert into t68 values(1,11); +insert into t68 values(2,21); +insert into t68 values(3,31); +insert into t68 values(4,41); +insert into t68 values(5,51); +insert into t68 values(6,61); +insert into t68 values(7,71); +insert into t68 values(8,81); +insert into t68 values(9,91); +insert into t68 values(10,101); +create table t69 (f1 int not null primary key, f2 int); +insert into t69 values(1,11); +insert into t69 values(2,21); +insert into t69 values(3,31); +insert into t69 values(4,41); +insert into t69 values(5,51); +insert into t69 values(6,61); +insert into t69 values(7,71); +insert into t69 values(8,81); +insert into t69 values(9,91); +insert into t69 values(10,101); +create table t70 (f1 int not null primary key, f2 int); +insert into t70 values(1,11); +insert into t70 values(2,21); +insert into t70 values(3,31); +insert into t70 values(4,41); +insert into t70 values(5,51); +insert into t70 values(6,61); +insert into t70 values(7,71); +insert into t70 values(8,81); +insert into t70 values(9,91); +insert into t70 values(10,101); +create table t71 (f1 int not null primary key, f2 int); +insert into t71 values(1,11); +insert into t71 values(2,21); +insert into t71 values(3,31); +insert into t71 values(4,41); +insert into t71 values(5,51); +insert into t71 values(6,61); +insert into t71 values(7,71); +insert into t71 values(8,81); +insert into t71 values(9,91); +insert into t71 values(10,101); +create table t72 (f1 int not null primary key, f2 int); +insert into t72 values(1,11); +insert into t72 values(2,21); +insert into t72 values(3,31); +insert into t72 values(4,41); +insert into t72 values(5,51); +insert into t72 values(6,61); +insert into t72 values(7,71); +insert into t72 values(8,81); +insert into t72 values(9,91); +insert into t72 values(10,101); +create table t73 (f1 int not null primary key, f2 int); +insert into t73 values(1,11); +insert into t73 values(2,21); +insert into t73 values(3,31); +insert into t73 values(4,41); +insert into t73 values(5,51); +insert into t73 values(6,61); +insert into t73 values(7,71); +insert into t73 values(8,81); +insert into t73 values(9,91); +insert into t73 values(10,101); +create table t74 (f1 int not null primary key, f2 int); +insert into t74 values(1,11); +insert into t74 values(2,21); +insert into t74 values(3,31); +insert into t74 values(4,41); +insert into t74 values(5,51); +insert into t74 values(6,61); +insert into t74 values(7,71); +insert into t74 values(8,81); +insert into t74 values(9,91); +insert into t74 values(10,101); +create table t75 (f1 int not null primary key, f2 int); +insert into t75 values(1,11); +insert into t75 values(2,21); +insert into t75 values(3,31); +insert into t75 values(4,41); +insert into t75 values(5,51); +insert into t75 values(6,61); +insert into t75 values(7,71); +insert into t75 values(8,81); +insert into t75 values(9,91); +insert into t75 values(10,101); +create table t76 (f1 int not null primary key, f2 int); +insert into t76 values(1,11); +insert into t76 values(2,21); +insert into t76 values(3,31); +insert into t76 values(4,41); +insert into t76 values(5,51); +insert into t76 values(6,61); +insert into t76 values(7,71); +insert into t76 values(8,81); +insert into t76 values(9,91); +insert into t76 values(10,101); +create table t77 (f1 int not null primary key, f2 int); +insert into t77 values(1,11); +insert into t77 values(2,21); +insert into t77 values(3,31); +insert into t77 values(4,41); +insert into t77 values(5,51); +insert into t77 values(6,61); +insert into t77 values(7,71); +insert into t77 values(8,81); +insert into t77 values(9,91); +insert into t77 values(10,101); +create table t78 (f1 int not null primary key, f2 int); +insert into t78 values(1,11); +insert into t78 values(2,21); +insert into t78 values(3,31); +insert into t78 values(4,41); +insert into t78 values(5,51); +insert into t78 values(6,61); +insert into t78 values(7,71); +insert into t78 values(8,81); +insert into t78 values(9,91); +insert into t78 values(10,101); +create table t79 (f1 int not null primary key, f2 int); +insert into t79 values(1,11); +insert into t79 values(2,21); +insert into t79 values(3,31); +insert into t79 values(4,41); +insert into t79 values(5,51); +insert into t79 values(6,61); +insert into t79 values(7,71); +insert into t79 values(8,81); +insert into t79 values(9,91); +insert into t79 values(10,101); +create table t80 (f1 int not null primary key, f2 int); +insert into t80 values(1,11); +insert into t80 values(2,21); +insert into t80 values(3,31); +insert into t80 values(4,41); +insert into t80 values(5,51); +insert into t80 values(6,61); +insert into t80 values(7,71); +insert into t80 values(8,81); +insert into t80 values(9,91); +insert into t80 values(10,101); +create table t81 (f1 int not null primary key, f2 int); +insert into t81 values(1,11); +insert into t81 values(2,21); +insert into t81 values(3,31); +insert into t81 values(4,41); +insert into t81 values(5,51); +insert into t81 values(6,61); +insert into t81 values(7,71); +insert into t81 values(8,81); +insert into t81 values(9,91); +insert into t81 values(10,101); +create table t82 (f1 int not null primary key, f2 int); +insert into t82 values(1,11); +insert into t82 values(2,21); +insert into t82 values(3,31); +insert into t82 values(4,41); +insert into t82 values(5,51); +insert into t82 values(6,61); +insert into t82 values(7,71); +insert into t82 values(8,81); +insert into t82 values(9,91); +insert into t82 values(10,101); +create table t83 (f1 int not null primary key, f2 int); +insert into t83 values(1,11); +insert into t83 values(2,21); +insert into t83 values(3,31); +insert into t83 values(4,41); +insert into t83 values(5,51); +insert into t83 values(6,61); +insert into t83 values(7,71); +insert into t83 values(8,81); +insert into t83 values(9,91); +insert into t83 values(10,101); +create table t84 (f1 int not null primary key, f2 int); +insert into t84 values(1,11); +insert into t84 values(2,21); +insert into t84 values(3,31); +insert into t84 values(4,41); +insert into t84 values(5,51); +insert into t84 values(6,61); +insert into t84 values(7,71); +insert into t84 values(8,81); +insert into t84 values(9,91); +insert into t84 values(10,101); +create table t85 (f1 int not null primary key, f2 int); +insert into t85 values(1,11); +insert into t85 values(2,21); +insert into t85 values(3,31); +insert into t85 values(4,41); +insert into t85 values(5,51); +insert into t85 values(6,61); +insert into t85 values(7,71); +insert into t85 values(8,81); +insert into t85 values(9,91); +insert into t85 values(10,101); +create table t86 (f1 int not null primary key, f2 int); +insert into t86 values(1,11); +insert into t86 values(2,21); +insert into t86 values(3,31); +insert into t86 values(4,41); +insert into t86 values(5,51); +insert into t86 values(6,61); +insert into t86 values(7,71); +insert into t86 values(8,81); +insert into t86 values(9,91); +insert into t86 values(10,101); +create table t87 (f1 int not null primary key, f2 int); +insert into t87 values(1,11); +insert into t87 values(2,21); +insert into t87 values(3,31); +insert into t87 values(4,41); +insert into t87 values(5,51); +insert into t87 values(6,61); +insert into t87 values(7,71); +insert into t87 values(8,81); +insert into t87 values(9,91); +insert into t87 values(10,101); +create table t88 (f1 int not null primary key, f2 int); +insert into t88 values(1,11); +insert into t88 values(2,21); +insert into t88 values(3,31); +insert into t88 values(4,41); +insert into t88 values(5,51); +insert into t88 values(6,61); +insert into t88 values(7,71); +insert into t88 values(8,81); +insert into t88 values(9,91); +insert into t88 values(10,101); +create table t89 (f1 int not null primary key, f2 int); +insert into t89 values(1,11); +insert into t89 values(2,21); +insert into t89 values(3,31); +insert into t89 values(4,41); +insert into t89 values(5,51); +insert into t89 values(6,61); +insert into t89 values(7,71); +insert into t89 values(8,81); +insert into t89 values(9,91); +insert into t89 values(10,101); +create table t90 (f1 int not null primary key, f2 int); +insert into t90 values(1,11); +insert into t90 values(2,21); +insert into t90 values(3,31); +insert into t90 values(4,41); +insert into t90 values(5,51); +insert into t90 values(6,61); +insert into t90 values(7,71); +insert into t90 values(8,81); +insert into t90 values(9,91); +insert into t90 values(10,101); +create table t91 (f1 int not null primary key, f2 int); +insert into t91 values(1,11); +insert into t91 values(2,21); +insert into t91 values(3,31); +insert into t91 values(4,41); +insert into t91 values(5,51); +insert into t91 values(6,61); +insert into t91 values(7,71); +insert into t91 values(8,81); +insert into t91 values(9,91); +insert into t91 values(10,101); +create table t92 (f1 int not null primary key, f2 int); +insert into t92 values(1,11); +insert into t92 values(2,21); +insert into t92 values(3,31); +insert into t92 values(4,41); +insert into t92 values(5,51); +insert into t92 values(6,61); +insert into t92 values(7,71); +insert into t92 values(8,81); +insert into t92 values(9,91); +insert into t92 values(10,101); +create table t93 (f1 int not null primary key, f2 int); +insert into t93 values(1,11); +insert into t93 values(2,21); +insert into t93 values(3,31); +insert into t93 values(4,41); +insert into t93 values(5,51); +insert into t93 values(6,61); +insert into t93 values(7,71); +insert into t93 values(8,81); +insert into t93 values(9,91); +insert into t93 values(10,101); +create table t94 (f1 int not null primary key, f2 int); +insert into t94 values(1,11); +insert into t94 values(2,21); +insert into t94 values(3,31); +insert into t94 values(4,41); +insert into t94 values(5,51); +insert into t94 values(6,61); +insert into t94 values(7,71); +insert into t94 values(8,81); +insert into t94 values(9,91); +insert into t94 values(10,101); +create table t95 (f1 int not null primary key, f2 int); +insert into t95 values(1,11); +insert into t95 values(2,21); +insert into t95 values(3,31); +insert into t95 values(4,41); +insert into t95 values(5,51); +insert into t95 values(6,61); +insert into t95 values(7,71); +insert into t95 values(8,81); +insert into t95 values(9,91); +insert into t95 values(10,101); +create table t96 (f1 int not null primary key, f2 int); +insert into t96 values(1,11); +insert into t96 values(2,21); +insert into t96 values(3,31); +insert into t96 values(4,41); +insert into t96 values(5,51); +insert into t96 values(6,61); +insert into t96 values(7,71); +insert into t96 values(8,81); +insert into t96 values(9,91); +insert into t96 values(10,101); +create table t97 (f1 int not null primary key, f2 int); +insert into t97 values(1,11); +insert into t97 values(2,21); +insert into t97 values(3,31); +insert into t97 values(4,41); +insert into t97 values(5,51); +insert into t97 values(6,61); +insert into t97 values(7,71); +insert into t97 values(8,81); +insert into t97 values(9,91); +insert into t97 values(10,101); +create table t98 (f1 int not null primary key, f2 int); +insert into t98 values(1,11); +insert into t98 values(2,21); +insert into t98 values(3,31); +insert into t98 values(4,41); +insert into t98 values(5,51); +insert into t98 values(6,61); +insert into t98 values(7,71); +insert into t98 values(8,81); +insert into t98 values(9,91); +insert into t98 values(10,101); +create table t99 (f1 int not null primary key, f2 int); +insert into t99 values(1,11); +insert into t99 values(2,21); +insert into t99 values(3,31); +insert into t99 values(4,41); +insert into t99 values(5,51); +insert into t99 values(6,61); +insert into t99 values(7,71); +insert into t99 values(8,81); +insert into t99 values(9,91); +insert into t99 values(10,101); +create table t100 (f1 int not null primary key, f2 int); +insert into t100 values(1,11); +insert into t100 values(2,21); +insert into t100 values(3,31); +insert into t100 values(4,41); +insert into t100 values(5,51); +insert into t100 values(6,61); +insert into t100 values(7,71); +insert into t100 values(8,81); +insert into t100 values(9,91); +insert into t100 values(10,101); diff --git a/test/cache/Recovery/createt1.sql b/test/cache/Recovery/createt1.sql new file mode 100644 index 00000000..fad87868 --- /dev/null +++ b/test/cache/Recovery/createt1.sql @@ -0,0 +1,12 @@ +create table t1 (f1 int not null,f2 int,primary key(f1)); +create index idx2 on t1(f2); +insert into t1 values(1,11); +insert into t1 values(2,21); +insert into t1 values(3,31); +insert into t1 values(4,41); +insert into t1 values(5,51); +insert into t1 values(6,61); +insert into t1 values(7,71); +insert into t1 values(8,81); +insert into t1 values(9,91); +insert into t1 values(10,101); diff --git a/test/cache/Recovery/csql.conf b/test/cache/Recovery/csql.conf new file mode 100644 index 00000000..33607b6e --- /dev/null +++ b/test/cache/Recovery/csql.conf @@ -0,0 +1,117 @@ +# CSQL System Configuration File + +#####################################Server Section######################## +#Important: For Server section parameters, make sure that the value is same for the +# server process and all the csql client process which connects to it. otherwise, +# behavior is undefined + +# Page size. Each database is logically divided into pages and allocation happens +# in this unit of pages. Increasing this value will reduce frequent allocation of pages. +PAGE_SIZE= 8192 + +#Total number of client process which can connect and work with the +# database concurrently +MAX_PROCS = 100 + +# Maximum size of the system database. +MAX_SYS_DB_SIZE=10485760 + +#Maximum size of the user database file. +MAX_DB_SIZE=335544320 + +#Shared memory key to be used by the system to create and locate system database. +SYS_DB_KEY=1199 + +#Shared memory key to be used by the system to create and locate user database. +USER_DB_KEY=2277 + +#Log level 0->no logging 1->Fine 2->Finer 3->Finest +LOG_LEVEL=0 + +#Give full path for the log file where important system actions are stored. +LOG_FILE=/tmp/csql/log/log.out + +#The virtual memory start address at which the shared memory segment +# will be created and attached. +MAP_ADDRESS=400000000 + +# Whether to enable durability +DURABILITY=false + +# Can be set true only when DURABILITY is true +MMAP=false + +#Give full path for the database file where table and record information will +#be stored for durability +DATABASE_FILE=/tmp/csql/db + +#Important: For Server section parameters, make sure that the value is same for the +# server process and all the csql client process which connects to it. otherwise, +# behavior is undefined +#####################################Client Section######################## + +#Mutex timeout interval seconds +MUTEX_TIMEOUT_SECS=0 +MUTEX_TIMEOUT_USECS=5000 +MUTEX_TIMEOUT_RETRIES=10 + +#Lock timeout interval seconds +LOCK_TIMEOUT_SECS=0 +LOCK_TIMEOUT_USECS=5000 +LOCK_TIMEOUT_RETRIES=10 + +#####################################Cache Section######################## + +#Whether to enable caching of tables from target database +CACHE_TABLE=true + +#Set cache id for multiple bidirectional cache node for single data source +SITE_ID=1 + +# Name of Target Database (mysql ,postgres, oracle etc...) +#TARGET_DATABASE=mysql + +#DSN Name to connect to the target database. +#This should be present in ~/odbc.ini file +DSN=myodbc3 + +#DBUSER= +#PASSWORD= + +ENABLE_BIDIRECTIONAL_CACHE=false + +CACHE_RECEIVER_WAIT_SECS=10 + +#Mode of operation SYNC or ASYNC +CACHE_MODE=SYNC + +##########################SqlNetworkServer Section######################## + +# Whether to enable SqlNetwork server +CSQL_SQL_SERVER=false + +#Set port for Network access +PORT=5678 + +#Whether to enable Replication across the sites +REPLICATION=false + +#No of sites to replicate +REPLICATION_SITES=16 + +#Give full path for the file where all the table information is stored +TABLE_CONFIG_FILE=/tmp/csql/csqltable.conf + +#Give full path of the file where all the DSN information is stored +DS_CONFIG_FILE=/tmp/csql/csqlds.conf + +#Give full path for the file where all the peer site information is stored +NETWORK_CONFIG_FILE=/tmp/csql/csqlnw.conf + +# MSGKEY for creating msg queue for MsgQueue Server +MSG_KEY=2525 + +ID_SHM_KEY=1947 +#####################################End Section######################## + + diff --git a/test/cache/Recovery/drop.sql b/test/cache/Recovery/drop.sql new file mode 100644 index 00000000..853c1ad6 --- /dev/null +++ b/test/cache/Recovery/drop.sql @@ -0,0 +1 @@ +drop table t1; diff --git a/test/cache/Recovery/dropall.sql b/test/cache/Recovery/dropall.sql new file mode 100644 index 00000000..5bf355f5 --- /dev/null +++ b/test/cache/Recovery/dropall.sql @@ -0,0 +1,100 @@ +drop table t1 +drop table t2 +drop table t3 +drop table t4 +drop table t5 +drop table t6 +drop table t7 +drop table t8 +drop table t9 +drop table t10 +drop table t11 +drop table t12 +drop table t13 +drop table t14 +drop table t15 +drop table t16 +drop table t17 +drop table t18 +drop table t19 +drop table t20 +drop table t21 +drop table t22 +drop table t23 +drop table t24 +drop table t25 +drop table t26 +drop table t27 +drop table t28 +drop table t29 +drop table t30 +drop table t31 +drop table t32 +drop table t33 +drop table t34 +drop table t35 +drop table t36 +drop table t37 +drop table t38 +drop table t39 +drop table t40 +drop table t41 +drop table t42 +drop table t43 +drop table t44 +drop table t45 +drop table t46 +drop table t47 +drop table t48 +drop table t49 +drop table t50 +drop table t51 +drop table t52 +drop table t53 +drop table t54 +drop table t55 +drop table t56 +drop table t57 +drop table t58 +drop table t59 +drop table t60 +drop table t61 +drop table t62 +drop table t63 +drop table t64 +drop table t65 +drop table t66 +drop table t67 +drop table t68 +drop table t69 +drop table t70 +drop table t71 +drop table t72 +drop table t73 +drop table t74 +drop table t75 +drop table t76 +drop table t77 +drop table t78 +drop table t79 +drop table t80 +drop table t81 +drop table t82 +drop table t83 +drop table t84 +drop table t85 +drop table t86 +drop table t87 +drop table t88 +drop table t89 +drop table t90 +drop table t91 +drop table t92 +drop table t93 +drop table t94 +drop table t95 +drop table t96 +drop table t97 +drop table t98 +drop table t99 +drop table t100 diff --git a/test/cache/Recovery/exp.test002.ksh b/test/cache/Recovery/exp.test002.ksh new file mode 100644 index 00000000..a26e0300 --- /dev/null +++ b/test/cache/Recovery/exp.test002.ksh @@ -0,0 +1,1200 @@ +CREATE TABLE t1 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t1_PRIMARY on t1 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t2 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t2_PRIMARY on t2 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t3 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t3_PRIMARY on t3 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t4 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t4_PRIMARY on t4 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t5 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t5_PRIMARY on t5 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t6 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t6_PRIMARY on t6 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t7 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t7_PRIMARY on t7 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t8 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t8_PRIMARY on t8 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t9 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t9_PRIMARY on t9 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t10 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t10_PRIMARY on t10 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t11 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t11_PRIMARY on t11 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t12 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t12_PRIMARY on t12 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t13 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t13_PRIMARY on t13 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t14 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t14_PRIMARY on t14 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t15 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t15_PRIMARY on t15 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t16 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t16_PRIMARY on t16 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t17 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t17_PRIMARY on t17 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t18 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t18_PRIMARY on t18 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t19 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t19_PRIMARY on t19 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t20 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t20_PRIMARY on t20 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t21 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t21_PRIMARY on t21 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t22 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t22_PRIMARY on t22 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t23 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t23_PRIMARY on t23 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t24 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t24_PRIMARY on t24 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t25 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t25_PRIMARY on t25 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t26 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t26_PRIMARY on t26 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t27 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t27_PRIMARY on t27 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t28 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t28_PRIMARY on t28 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t29 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t29_PRIMARY on t29 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t30 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t30_PRIMARY on t30 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t31 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t31_PRIMARY on t31 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t32 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t32_PRIMARY on t32 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t33 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t33_PRIMARY on t33 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t34 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t34_PRIMARY on t34 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t35 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t35_PRIMARY on t35 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t36 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t36_PRIMARY on t36 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t37 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t37_PRIMARY on t37 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t38 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t38_PRIMARY on t38 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t39 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t39_PRIMARY on t39 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t40 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t40_PRIMARY on t40 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t41 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t41_PRIMARY on t41 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t42 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t42_PRIMARY on t42 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t43 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t43_PRIMARY on t43 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t44 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t44_PRIMARY on t44 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t45 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t45_PRIMARY on t45 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t46 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t46_PRIMARY on t46 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t47 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t47_PRIMARY on t47 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t48 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t48_PRIMARY on t48 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t49 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t49_PRIMARY on t49 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t50 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t50_PRIMARY on t50 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t51 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t51_PRIMARY on t51 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t52 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t52_PRIMARY on t52 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t53 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t53_PRIMARY on t53 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t54 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t54_PRIMARY on t54 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t55 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t55_PRIMARY on t55 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t56 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t56_PRIMARY on t56 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t57 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t57_PRIMARY on t57 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t58 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t58_PRIMARY on t58 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t59 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t59_PRIMARY on t59 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t60 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t60_PRIMARY on t60 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t61 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t61_PRIMARY on t61 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t62 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t62_PRIMARY on t62 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t63 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t63_PRIMARY on t63 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t64 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t64_PRIMARY on t64 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t65 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t65_PRIMARY on t65 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t66 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t66_PRIMARY on t66 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t67 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t67_PRIMARY on t67 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t68 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t68_PRIMARY on t68 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t69 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t69_PRIMARY on t69 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t70 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t70_PRIMARY on t70 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t71 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t71_PRIMARY on t71 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t72 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t72_PRIMARY on t72 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t73 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t73_PRIMARY on t73 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t74 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t74_PRIMARY on t74 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t75 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t75_PRIMARY on t75 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t76 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t76_PRIMARY on t76 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t77 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t77_PRIMARY on t77 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t78 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t78_PRIMARY on t78 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t79 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t79_PRIMARY on t79 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t80 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t80_PRIMARY on t80 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t81 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t81_PRIMARY on t81 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t82 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t82_PRIMARY on t82 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t83 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t83_PRIMARY on t83 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t84 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t84_PRIMARY on t84 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t85 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t85_PRIMARY on t85 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t86 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t86_PRIMARY on t86 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t87 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t87_PRIMARY on t87 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t88 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t88_PRIMARY on t88 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t89 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t89_PRIMARY on t89 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t90 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t90_PRIMARY on t90 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t91 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t91_PRIMARY on t91 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t92 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t92_PRIMARY on t92 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t93 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t93_PRIMARY on t93 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t94 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t94_PRIMARY on t94 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t95 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t95_PRIMARY on t95 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t96 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t96_PRIMARY on t96 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t97 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t97_PRIMARY on t97 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t98 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t98_PRIMARY on t98 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t99 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t99_PRIMARY on t99 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE TABLE t100 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t100_PRIMARY on t100 ( f1 ) HASH UNIQUE SIZE 10007 ; +INSERT INTO t1 VALUES(1,11); +INSERT INTO t1 VALUES(2,21); +INSERT INTO t1 VALUES(3,31); +INSERT INTO t1 VALUES(4,41); +INSERT INTO t1 VALUES(5,51); +INSERT INTO t1 VALUES(6,61); +INSERT INTO t1 VALUES(7,71); +INSERT INTO t1 VALUES(8,81); +INSERT INTO t1 VALUES(9,91); +INSERT INTO t1 VALUES(10,101); +INSERT INTO t2 VALUES(1,11); +INSERT INTO t2 VALUES(2,21); +INSERT INTO t2 VALUES(3,31); +INSERT INTO t2 VALUES(4,41); +INSERT INTO t2 VALUES(5,51); +INSERT INTO t2 VALUES(6,61); +INSERT INTO t2 VALUES(7,71); +INSERT INTO t2 VALUES(8,81); +INSERT INTO t2 VALUES(9,91); +INSERT INTO t2 VALUES(10,101); +INSERT INTO t3 VALUES(1,11); +INSERT INTO t3 VALUES(2,21); +INSERT INTO t3 VALUES(3,31); +INSERT INTO t3 VALUES(4,41); +INSERT INTO t3 VALUES(5,51); +INSERT INTO t3 VALUES(6,61); +INSERT INTO t3 VALUES(7,71); +INSERT INTO t3 VALUES(8,81); +INSERT INTO t3 VALUES(9,91); +INSERT INTO t3 VALUES(10,101); +INSERT INTO t4 VALUES(1,11); +INSERT INTO t4 VALUES(2,21); +INSERT INTO t4 VALUES(3,31); +INSERT INTO t4 VALUES(4,41); +INSERT INTO t4 VALUES(5,51); +INSERT INTO t4 VALUES(6,61); +INSERT INTO t4 VALUES(7,71); +INSERT INTO t4 VALUES(8,81); +INSERT INTO t4 VALUES(9,91); +INSERT INTO t4 VALUES(10,101); +INSERT INTO t5 VALUES(1,11); +INSERT INTO t5 VALUES(2,21); +INSERT INTO t5 VALUES(3,31); +INSERT INTO t5 VALUES(4,41); +INSERT INTO t5 VALUES(5,51); +INSERT INTO t5 VALUES(6,61); +INSERT INTO t5 VALUES(7,71); +INSERT INTO t5 VALUES(8,81); +INSERT INTO t5 VALUES(9,91); +INSERT INTO t5 VALUES(10,101); +INSERT INTO t6 VALUES(1,11); +INSERT INTO t6 VALUES(2,21); +INSERT INTO t6 VALUES(3,31); +INSERT INTO t6 VALUES(4,41); +INSERT INTO t6 VALUES(5,51); +INSERT INTO t6 VALUES(6,61); +INSERT INTO t6 VALUES(7,71); +INSERT INTO t6 VALUES(8,81); +INSERT INTO t6 VALUES(9,91); +INSERT INTO t6 VALUES(10,101); +INSERT INTO t7 VALUES(1,11); +INSERT INTO t7 VALUES(2,21); +INSERT INTO t7 VALUES(3,31); +INSERT INTO t7 VALUES(4,41); +INSERT INTO t7 VALUES(5,51); +INSERT INTO t7 VALUES(6,61); +INSERT INTO t7 VALUES(7,71); +INSERT INTO t7 VALUES(8,81); +INSERT INTO t7 VALUES(9,91); +INSERT INTO t7 VALUES(10,101); +INSERT INTO t8 VALUES(1,11); +INSERT INTO t8 VALUES(2,21); +INSERT INTO t8 VALUES(3,31); +INSERT INTO t8 VALUES(4,41); +INSERT INTO t8 VALUES(5,51); +INSERT INTO t8 VALUES(6,61); +INSERT INTO t8 VALUES(7,71); +INSERT INTO t8 VALUES(8,81); +INSERT INTO t8 VALUES(9,91); +INSERT INTO t8 VALUES(10,101); +INSERT INTO t9 VALUES(1,11); +INSERT INTO t9 VALUES(2,21); +INSERT INTO t9 VALUES(3,31); +INSERT INTO t9 VALUES(4,41); +INSERT INTO t9 VALUES(5,51); +INSERT INTO t9 VALUES(6,61); +INSERT INTO t9 VALUES(7,71); +INSERT INTO t9 VALUES(8,81); +INSERT INTO t9 VALUES(9,91); +INSERT INTO t9 VALUES(10,101); +INSERT INTO t10 VALUES(1,11); +INSERT INTO t10 VALUES(2,21); +INSERT INTO t10 VALUES(3,31); +INSERT INTO t10 VALUES(4,41); +INSERT INTO t10 VALUES(5,51); +INSERT INTO t10 VALUES(6,61); +INSERT INTO t10 VALUES(7,71); +INSERT INTO t10 VALUES(8,81); +INSERT INTO t10 VALUES(9,91); +INSERT INTO t10 VALUES(10,101); +INSERT INTO t11 VALUES(1,11); +INSERT INTO t11 VALUES(2,21); +INSERT INTO t11 VALUES(3,31); +INSERT INTO t11 VALUES(4,41); +INSERT INTO t11 VALUES(5,51); +INSERT INTO t11 VALUES(6,61); +INSERT INTO t11 VALUES(7,71); +INSERT INTO t11 VALUES(8,81); +INSERT INTO t11 VALUES(9,91); +INSERT INTO t11 VALUES(10,101); +INSERT INTO t12 VALUES(1,11); +INSERT INTO t12 VALUES(2,21); +INSERT INTO t12 VALUES(3,31); +INSERT INTO t12 VALUES(4,41); +INSERT INTO t12 VALUES(5,51); +INSERT INTO t12 VALUES(6,61); +INSERT INTO t12 VALUES(7,71); +INSERT INTO t12 VALUES(8,81); +INSERT INTO t12 VALUES(9,91); +INSERT INTO t12 VALUES(10,101); +INSERT INTO t13 VALUES(1,11); +INSERT INTO t13 VALUES(2,21); +INSERT INTO t13 VALUES(3,31); +INSERT INTO t13 VALUES(4,41); +INSERT INTO t13 VALUES(5,51); +INSERT INTO t13 VALUES(6,61); +INSERT INTO t13 VALUES(7,71); +INSERT INTO t13 VALUES(8,81); +INSERT INTO t13 VALUES(9,91); +INSERT INTO t13 VALUES(10,101); +INSERT INTO t14 VALUES(1,11); +INSERT INTO t14 VALUES(2,21); +INSERT INTO t14 VALUES(3,31); +INSERT INTO t14 VALUES(4,41); +INSERT INTO t14 VALUES(5,51); +INSERT INTO t14 VALUES(6,61); +INSERT INTO t14 VALUES(7,71); +INSERT INTO t14 VALUES(8,81); +INSERT INTO t14 VALUES(9,91); +INSERT INTO t14 VALUES(10,101); +INSERT INTO t15 VALUES(1,11); +INSERT INTO t15 VALUES(2,21); +INSERT INTO t15 VALUES(3,31); +INSERT INTO t15 VALUES(4,41); +INSERT INTO t15 VALUES(5,51); +INSERT INTO t15 VALUES(6,61); +INSERT INTO t15 VALUES(7,71); +INSERT INTO t15 VALUES(8,81); +INSERT INTO t15 VALUES(9,91); +INSERT INTO t15 VALUES(10,101); +INSERT INTO t16 VALUES(1,11); +INSERT INTO t16 VALUES(2,21); +INSERT INTO t16 VALUES(3,31); +INSERT INTO t16 VALUES(4,41); +INSERT INTO t16 VALUES(5,51); +INSERT INTO t16 VALUES(6,61); +INSERT INTO t16 VALUES(7,71); +INSERT INTO t16 VALUES(8,81); +INSERT INTO t16 VALUES(9,91); +INSERT INTO t16 VALUES(10,101); +INSERT INTO t17 VALUES(1,11); +INSERT INTO t17 VALUES(2,21); +INSERT INTO t17 VALUES(3,31); +INSERT INTO t17 VALUES(4,41); +INSERT INTO t17 VALUES(5,51); +INSERT INTO t17 VALUES(6,61); +INSERT INTO t17 VALUES(7,71); +INSERT INTO t17 VALUES(8,81); +INSERT INTO t17 VALUES(9,91); +INSERT INTO t17 VALUES(10,101); +INSERT INTO t18 VALUES(1,11); +INSERT INTO t18 VALUES(2,21); +INSERT INTO t18 VALUES(3,31); +INSERT INTO t18 VALUES(4,41); +INSERT INTO t18 VALUES(5,51); +INSERT INTO t18 VALUES(6,61); +INSERT INTO t18 VALUES(7,71); +INSERT INTO t18 VALUES(8,81); +INSERT INTO t18 VALUES(9,91); +INSERT INTO t18 VALUES(10,101); +INSERT INTO t19 VALUES(1,11); +INSERT INTO t19 VALUES(2,21); +INSERT INTO t19 VALUES(3,31); +INSERT INTO t19 VALUES(4,41); +INSERT INTO t19 VALUES(5,51); +INSERT INTO t19 VALUES(6,61); +INSERT INTO t19 VALUES(7,71); +INSERT INTO t19 VALUES(8,81); +INSERT INTO t19 VALUES(9,91); +INSERT INTO t19 VALUES(10,101); +INSERT INTO t20 VALUES(1,11); +INSERT INTO t20 VALUES(2,21); +INSERT INTO t20 VALUES(3,31); +INSERT INTO t20 VALUES(4,41); +INSERT INTO t20 VALUES(5,51); +INSERT INTO t20 VALUES(6,61); +INSERT INTO t20 VALUES(7,71); +INSERT INTO t20 VALUES(8,81); +INSERT INTO t20 VALUES(9,91); +INSERT INTO t20 VALUES(10,101); +INSERT INTO t21 VALUES(1,11); +INSERT INTO t21 VALUES(2,21); +INSERT INTO t21 VALUES(3,31); +INSERT INTO t21 VALUES(4,41); +INSERT INTO t21 VALUES(5,51); +INSERT INTO t21 VALUES(6,61); +INSERT INTO t21 VALUES(7,71); +INSERT INTO t21 VALUES(8,81); +INSERT INTO t21 VALUES(9,91); +INSERT INTO t21 VALUES(10,101); +INSERT INTO t22 VALUES(1,11); +INSERT INTO t22 VALUES(2,21); +INSERT INTO t22 VALUES(3,31); +INSERT INTO t22 VALUES(4,41); +INSERT INTO t22 VALUES(5,51); +INSERT INTO t22 VALUES(6,61); +INSERT INTO t22 VALUES(7,71); +INSERT INTO t22 VALUES(8,81); +INSERT INTO t22 VALUES(9,91); +INSERT INTO t22 VALUES(10,101); +INSERT INTO t23 VALUES(1,11); +INSERT INTO t23 VALUES(2,21); +INSERT INTO t23 VALUES(3,31); +INSERT INTO t23 VALUES(4,41); +INSERT INTO t23 VALUES(5,51); +INSERT INTO t23 VALUES(6,61); +INSERT INTO t23 VALUES(7,71); +INSERT INTO t23 VALUES(8,81); +INSERT INTO t23 VALUES(9,91); +INSERT INTO t23 VALUES(10,101); +INSERT INTO t24 VALUES(1,11); +INSERT INTO t24 VALUES(2,21); +INSERT INTO t24 VALUES(3,31); +INSERT INTO t24 VALUES(4,41); +INSERT INTO t24 VALUES(5,51); +INSERT INTO t24 VALUES(6,61); +INSERT INTO t24 VALUES(7,71); +INSERT INTO t24 VALUES(8,81); +INSERT INTO t24 VALUES(9,91); +INSERT INTO t24 VALUES(10,101); +INSERT INTO t25 VALUES(1,11); +INSERT INTO t25 VALUES(2,21); +INSERT INTO t25 VALUES(3,31); +INSERT INTO t25 VALUES(4,41); +INSERT INTO t25 VALUES(5,51); +INSERT INTO t25 VALUES(6,61); +INSERT INTO t25 VALUES(7,71); +INSERT INTO t25 VALUES(8,81); +INSERT INTO t25 VALUES(9,91); +INSERT INTO t25 VALUES(10,101); +INSERT INTO t26 VALUES(1,11); +INSERT INTO t26 VALUES(2,21); +INSERT INTO t26 VALUES(3,31); +INSERT INTO t26 VALUES(4,41); +INSERT INTO t26 VALUES(5,51); +INSERT INTO t26 VALUES(6,61); +INSERT INTO t26 VALUES(7,71); +INSERT INTO t26 VALUES(8,81); +INSERT INTO t26 VALUES(9,91); +INSERT INTO t26 VALUES(10,101); +INSERT INTO t27 VALUES(1,11); +INSERT INTO t27 VALUES(2,21); +INSERT INTO t27 VALUES(3,31); +INSERT INTO t27 VALUES(4,41); +INSERT INTO t27 VALUES(5,51); +INSERT INTO t27 VALUES(6,61); +INSERT INTO t27 VALUES(7,71); +INSERT INTO t27 VALUES(8,81); +INSERT INTO t27 VALUES(9,91); +INSERT INTO t27 VALUES(10,101); +INSERT INTO t28 VALUES(1,11); +INSERT INTO t28 VALUES(2,21); +INSERT INTO t28 VALUES(3,31); +INSERT INTO t28 VALUES(4,41); +INSERT INTO t28 VALUES(5,51); +INSERT INTO t28 VALUES(6,61); +INSERT INTO t28 VALUES(7,71); +INSERT INTO t28 VALUES(8,81); +INSERT INTO t28 VALUES(9,91); +INSERT INTO t28 VALUES(10,101); +INSERT INTO t29 VALUES(1,11); +INSERT INTO t29 VALUES(2,21); +INSERT INTO t29 VALUES(3,31); +INSERT INTO t29 VALUES(4,41); +INSERT INTO t29 VALUES(5,51); +INSERT INTO t29 VALUES(6,61); +INSERT INTO t29 VALUES(7,71); +INSERT INTO t29 VALUES(8,81); +INSERT INTO t29 VALUES(9,91); +INSERT INTO t29 VALUES(10,101); +INSERT INTO t30 VALUES(1,11); +INSERT INTO t30 VALUES(2,21); +INSERT INTO t30 VALUES(3,31); +INSERT INTO t30 VALUES(4,41); +INSERT INTO t30 VALUES(5,51); +INSERT INTO t30 VALUES(6,61); +INSERT INTO t30 VALUES(7,71); +INSERT INTO t30 VALUES(8,81); +INSERT INTO t30 VALUES(9,91); +INSERT INTO t30 VALUES(10,101); +INSERT INTO t31 VALUES(1,11); +INSERT INTO t31 VALUES(2,21); +INSERT INTO t31 VALUES(3,31); +INSERT INTO t31 VALUES(4,41); +INSERT INTO t31 VALUES(5,51); +INSERT INTO t31 VALUES(6,61); +INSERT INTO t31 VALUES(7,71); +INSERT INTO t31 VALUES(8,81); +INSERT INTO t31 VALUES(9,91); +INSERT INTO t31 VALUES(10,101); +INSERT INTO t32 VALUES(1,11); +INSERT INTO t32 VALUES(2,21); +INSERT INTO t32 VALUES(3,31); +INSERT INTO t32 VALUES(4,41); +INSERT INTO t32 VALUES(5,51); +INSERT INTO t32 VALUES(6,61); +INSERT INTO t32 VALUES(7,71); +INSERT INTO t32 VALUES(8,81); +INSERT INTO t32 VALUES(9,91); +INSERT INTO t32 VALUES(10,101); +INSERT INTO t33 VALUES(1,11); +INSERT INTO t33 VALUES(2,21); +INSERT INTO t33 VALUES(3,31); +INSERT INTO t33 VALUES(4,41); +INSERT INTO t33 VALUES(5,51); +INSERT INTO t33 VALUES(6,61); +INSERT INTO t33 VALUES(7,71); +INSERT INTO t33 VALUES(8,81); +INSERT INTO t33 VALUES(9,91); +INSERT INTO t33 VALUES(10,101); +INSERT INTO t34 VALUES(1,11); +INSERT INTO t34 VALUES(2,21); +INSERT INTO t34 VALUES(3,31); +INSERT INTO t34 VALUES(4,41); +INSERT INTO t34 VALUES(5,51); +INSERT INTO t34 VALUES(6,61); +INSERT INTO t34 VALUES(7,71); +INSERT INTO t34 VALUES(8,81); +INSERT INTO t34 VALUES(9,91); +INSERT INTO t34 VALUES(10,101); +INSERT INTO t35 VALUES(1,11); +INSERT INTO t35 VALUES(2,21); +INSERT INTO t35 VALUES(3,31); +INSERT INTO t35 VALUES(4,41); +INSERT INTO t35 VALUES(5,51); +INSERT INTO t35 VALUES(6,61); +INSERT INTO t35 VALUES(7,71); +INSERT INTO t35 VALUES(8,81); +INSERT INTO t35 VALUES(9,91); +INSERT INTO t35 VALUES(10,101); +INSERT INTO t36 VALUES(1,11); +INSERT INTO t36 VALUES(2,21); +INSERT INTO t36 VALUES(3,31); +INSERT INTO t36 VALUES(4,41); +INSERT INTO t36 VALUES(5,51); +INSERT INTO t36 VALUES(6,61); +INSERT INTO t36 VALUES(7,71); +INSERT INTO t36 VALUES(8,81); +INSERT INTO t36 VALUES(9,91); +INSERT INTO t36 VALUES(10,101); +INSERT INTO t37 VALUES(1,11); +INSERT INTO t37 VALUES(2,21); +INSERT INTO t37 VALUES(3,31); +INSERT INTO t37 VALUES(4,41); +INSERT INTO t37 VALUES(5,51); +INSERT INTO t37 VALUES(6,61); +INSERT INTO t37 VALUES(7,71); +INSERT INTO t37 VALUES(8,81); +INSERT INTO t37 VALUES(9,91); +INSERT INTO t37 VALUES(10,101); +INSERT INTO t38 VALUES(1,11); +INSERT INTO t38 VALUES(2,21); +INSERT INTO t38 VALUES(3,31); +INSERT INTO t38 VALUES(4,41); +INSERT INTO t38 VALUES(5,51); +INSERT INTO t38 VALUES(6,61); +INSERT INTO t38 VALUES(7,71); +INSERT INTO t38 VALUES(8,81); +INSERT INTO t38 VALUES(9,91); +INSERT INTO t38 VALUES(10,101); +INSERT INTO t39 VALUES(1,11); +INSERT INTO t39 VALUES(2,21); +INSERT INTO t39 VALUES(3,31); +INSERT INTO t39 VALUES(4,41); +INSERT INTO t39 VALUES(5,51); +INSERT INTO t39 VALUES(6,61); +INSERT INTO t39 VALUES(7,71); +INSERT INTO t39 VALUES(8,81); +INSERT INTO t39 VALUES(9,91); +INSERT INTO t39 VALUES(10,101); +INSERT INTO t40 VALUES(1,11); +INSERT INTO t40 VALUES(2,21); +INSERT INTO t40 VALUES(3,31); +INSERT INTO t40 VALUES(4,41); +INSERT INTO t40 VALUES(5,51); +INSERT INTO t40 VALUES(6,61); +INSERT INTO t40 VALUES(7,71); +INSERT INTO t40 VALUES(8,81); +INSERT INTO t40 VALUES(9,91); +INSERT INTO t40 VALUES(10,101); +INSERT INTO t41 VALUES(1,11); +INSERT INTO t41 VALUES(2,21); +INSERT INTO t41 VALUES(3,31); +INSERT INTO t41 VALUES(4,41); +INSERT INTO t41 VALUES(5,51); +INSERT INTO t41 VALUES(6,61); +INSERT INTO t41 VALUES(7,71); +INSERT INTO t41 VALUES(8,81); +INSERT INTO t41 VALUES(9,91); +INSERT INTO t41 VALUES(10,101); +INSERT INTO t42 VALUES(1,11); +INSERT INTO t42 VALUES(2,21); +INSERT INTO t42 VALUES(3,31); +INSERT INTO t42 VALUES(4,41); +INSERT INTO t42 VALUES(5,51); +INSERT INTO t42 VALUES(6,61); +INSERT INTO t42 VALUES(7,71); +INSERT INTO t42 VALUES(8,81); +INSERT INTO t42 VALUES(9,91); +INSERT INTO t42 VALUES(10,101); +INSERT INTO t43 VALUES(1,11); +INSERT INTO t43 VALUES(2,21); +INSERT INTO t43 VALUES(3,31); +INSERT INTO t43 VALUES(4,41); +INSERT INTO t43 VALUES(5,51); +INSERT INTO t43 VALUES(6,61); +INSERT INTO t43 VALUES(7,71); +INSERT INTO t43 VALUES(8,81); +INSERT INTO t43 VALUES(9,91); +INSERT INTO t43 VALUES(10,101); +INSERT INTO t44 VALUES(1,11); +INSERT INTO t44 VALUES(2,21); +INSERT INTO t44 VALUES(3,31); +INSERT INTO t44 VALUES(4,41); +INSERT INTO t44 VALUES(5,51); +INSERT INTO t44 VALUES(6,61); +INSERT INTO t44 VALUES(7,71); +INSERT INTO t44 VALUES(8,81); +INSERT INTO t44 VALUES(9,91); +INSERT INTO t44 VALUES(10,101); +INSERT INTO t45 VALUES(1,11); +INSERT INTO t45 VALUES(2,21); +INSERT INTO t45 VALUES(3,31); +INSERT INTO t45 VALUES(4,41); +INSERT INTO t45 VALUES(5,51); +INSERT INTO t45 VALUES(6,61); +INSERT INTO t45 VALUES(7,71); +INSERT INTO t45 VALUES(8,81); +INSERT INTO t45 VALUES(9,91); +INSERT INTO t45 VALUES(10,101); +INSERT INTO t46 VALUES(1,11); +INSERT INTO t46 VALUES(2,21); +INSERT INTO t46 VALUES(3,31); +INSERT INTO t46 VALUES(4,41); +INSERT INTO t46 VALUES(5,51); +INSERT INTO t46 VALUES(6,61); +INSERT INTO t46 VALUES(7,71); +INSERT INTO t46 VALUES(8,81); +INSERT INTO t46 VALUES(9,91); +INSERT INTO t46 VALUES(10,101); +INSERT INTO t47 VALUES(1,11); +INSERT INTO t47 VALUES(2,21); +INSERT INTO t47 VALUES(3,31); +INSERT INTO t47 VALUES(4,41); +INSERT INTO t47 VALUES(5,51); +INSERT INTO t47 VALUES(6,61); +INSERT INTO t47 VALUES(7,71); +INSERT INTO t47 VALUES(8,81); +INSERT INTO t47 VALUES(9,91); +INSERT INTO t47 VALUES(10,101); +INSERT INTO t48 VALUES(1,11); +INSERT INTO t48 VALUES(2,21); +INSERT INTO t48 VALUES(3,31); +INSERT INTO t48 VALUES(4,41); +INSERT INTO t48 VALUES(5,51); +INSERT INTO t48 VALUES(6,61); +INSERT INTO t48 VALUES(7,71); +INSERT INTO t48 VALUES(8,81); +INSERT INTO t48 VALUES(9,91); +INSERT INTO t48 VALUES(10,101); +INSERT INTO t49 VALUES(1,11); +INSERT INTO t49 VALUES(2,21); +INSERT INTO t49 VALUES(3,31); +INSERT INTO t49 VALUES(4,41); +INSERT INTO t49 VALUES(5,51); +INSERT INTO t49 VALUES(6,61); +INSERT INTO t49 VALUES(7,71); +INSERT INTO t49 VALUES(8,81); +INSERT INTO t49 VALUES(9,91); +INSERT INTO t49 VALUES(10,101); +INSERT INTO t50 VALUES(1,11); +INSERT INTO t50 VALUES(2,21); +INSERT INTO t50 VALUES(3,31); +INSERT INTO t50 VALUES(4,41); +INSERT INTO t50 VALUES(5,51); +INSERT INTO t50 VALUES(6,61); +INSERT INTO t50 VALUES(7,71); +INSERT INTO t50 VALUES(8,81); +INSERT INTO t50 VALUES(9,91); +INSERT INTO t50 VALUES(10,101); +INSERT INTO t51 VALUES(1,11); +INSERT INTO t51 VALUES(2,21); +INSERT INTO t51 VALUES(3,31); +INSERT INTO t51 VALUES(4,41); +INSERT INTO t51 VALUES(5,51); +INSERT INTO t51 VALUES(6,61); +INSERT INTO t51 VALUES(7,71); +INSERT INTO t51 VALUES(8,81); +INSERT INTO t51 VALUES(9,91); +INSERT INTO t51 VALUES(10,101); +INSERT INTO t52 VALUES(1,11); +INSERT INTO t52 VALUES(2,21); +INSERT INTO t52 VALUES(3,31); +INSERT INTO t52 VALUES(4,41); +INSERT INTO t52 VALUES(5,51); +INSERT INTO t52 VALUES(6,61); +INSERT INTO t52 VALUES(7,71); +INSERT INTO t52 VALUES(8,81); +INSERT INTO t52 VALUES(9,91); +INSERT INTO t52 VALUES(10,101); +INSERT INTO t53 VALUES(1,11); +INSERT INTO t53 VALUES(2,21); +INSERT INTO t53 VALUES(3,31); +INSERT INTO t53 VALUES(4,41); +INSERT INTO t53 VALUES(5,51); +INSERT INTO t53 VALUES(6,61); +INSERT INTO t53 VALUES(7,71); +INSERT INTO t53 VALUES(8,81); +INSERT INTO t53 VALUES(9,91); +INSERT INTO t53 VALUES(10,101); +INSERT INTO t54 VALUES(1,11); +INSERT INTO t54 VALUES(2,21); +INSERT INTO t54 VALUES(3,31); +INSERT INTO t54 VALUES(4,41); +INSERT INTO t54 VALUES(5,51); +INSERT INTO t54 VALUES(6,61); +INSERT INTO t54 VALUES(7,71); +INSERT INTO t54 VALUES(8,81); +INSERT INTO t54 VALUES(9,91); +INSERT INTO t54 VALUES(10,101); +INSERT INTO t55 VALUES(1,11); +INSERT INTO t55 VALUES(2,21); +INSERT INTO t55 VALUES(3,31); +INSERT INTO t55 VALUES(4,41); +INSERT INTO t55 VALUES(5,51); +INSERT INTO t55 VALUES(6,61); +INSERT INTO t55 VALUES(7,71); +INSERT INTO t55 VALUES(8,81); +INSERT INTO t55 VALUES(9,91); +INSERT INTO t55 VALUES(10,101); +INSERT INTO t56 VALUES(1,11); +INSERT INTO t56 VALUES(2,21); +INSERT INTO t56 VALUES(3,31); +INSERT INTO t56 VALUES(4,41); +INSERT INTO t56 VALUES(5,51); +INSERT INTO t56 VALUES(6,61); +INSERT INTO t56 VALUES(7,71); +INSERT INTO t56 VALUES(8,81); +INSERT INTO t56 VALUES(9,91); +INSERT INTO t56 VALUES(10,101); +INSERT INTO t57 VALUES(1,11); +INSERT INTO t57 VALUES(2,21); +INSERT INTO t57 VALUES(3,31); +INSERT INTO t57 VALUES(4,41); +INSERT INTO t57 VALUES(5,51); +INSERT INTO t57 VALUES(6,61); +INSERT INTO t57 VALUES(7,71); +INSERT INTO t57 VALUES(8,81); +INSERT INTO t57 VALUES(9,91); +INSERT INTO t57 VALUES(10,101); +INSERT INTO t58 VALUES(1,11); +INSERT INTO t58 VALUES(2,21); +INSERT INTO t58 VALUES(3,31); +INSERT INTO t58 VALUES(4,41); +INSERT INTO t58 VALUES(5,51); +INSERT INTO t58 VALUES(6,61); +INSERT INTO t58 VALUES(7,71); +INSERT INTO t58 VALUES(8,81); +INSERT INTO t58 VALUES(9,91); +INSERT INTO t58 VALUES(10,101); +INSERT INTO t59 VALUES(1,11); +INSERT INTO t59 VALUES(2,21); +INSERT INTO t59 VALUES(3,31); +INSERT INTO t59 VALUES(4,41); +INSERT INTO t59 VALUES(5,51); +INSERT INTO t59 VALUES(6,61); +INSERT INTO t59 VALUES(7,71); +INSERT INTO t59 VALUES(8,81); +INSERT INTO t59 VALUES(9,91); +INSERT INTO t59 VALUES(10,101); +INSERT INTO t60 VALUES(1,11); +INSERT INTO t60 VALUES(2,21); +INSERT INTO t60 VALUES(3,31); +INSERT INTO t60 VALUES(4,41); +INSERT INTO t60 VALUES(5,51); +INSERT INTO t60 VALUES(6,61); +INSERT INTO t60 VALUES(7,71); +INSERT INTO t60 VALUES(8,81); +INSERT INTO t60 VALUES(9,91); +INSERT INTO t60 VALUES(10,101); +INSERT INTO t61 VALUES(1,11); +INSERT INTO t61 VALUES(2,21); +INSERT INTO t61 VALUES(3,31); +INSERT INTO t61 VALUES(4,41); +INSERT INTO t61 VALUES(5,51); +INSERT INTO t61 VALUES(6,61); +INSERT INTO t61 VALUES(7,71); +INSERT INTO t61 VALUES(8,81); +INSERT INTO t61 VALUES(9,91); +INSERT INTO t61 VALUES(10,101); +INSERT INTO t62 VALUES(1,11); +INSERT INTO t62 VALUES(2,21); +INSERT INTO t62 VALUES(3,31); +INSERT INTO t62 VALUES(4,41); +INSERT INTO t62 VALUES(5,51); +INSERT INTO t62 VALUES(6,61); +INSERT INTO t62 VALUES(7,71); +INSERT INTO t62 VALUES(8,81); +INSERT INTO t62 VALUES(9,91); +INSERT INTO t62 VALUES(10,101); +INSERT INTO t63 VALUES(1,11); +INSERT INTO t63 VALUES(2,21); +INSERT INTO t63 VALUES(3,31); +INSERT INTO t63 VALUES(4,41); +INSERT INTO t63 VALUES(5,51); +INSERT INTO t63 VALUES(6,61); +INSERT INTO t63 VALUES(7,71); +INSERT INTO t63 VALUES(8,81); +INSERT INTO t63 VALUES(9,91); +INSERT INTO t63 VALUES(10,101); +INSERT INTO t64 VALUES(1,11); +INSERT INTO t64 VALUES(2,21); +INSERT INTO t64 VALUES(3,31); +INSERT INTO t64 VALUES(4,41); +INSERT INTO t64 VALUES(5,51); +INSERT INTO t64 VALUES(6,61); +INSERT INTO t64 VALUES(7,71); +INSERT INTO t64 VALUES(8,81); +INSERT INTO t64 VALUES(9,91); +INSERT INTO t64 VALUES(10,101); +INSERT INTO t65 VALUES(1,11); +INSERT INTO t65 VALUES(2,21); +INSERT INTO t65 VALUES(3,31); +INSERT INTO t65 VALUES(4,41); +INSERT INTO t65 VALUES(5,51); +INSERT INTO t65 VALUES(6,61); +INSERT INTO t65 VALUES(7,71); +INSERT INTO t65 VALUES(8,81); +INSERT INTO t65 VALUES(9,91); +INSERT INTO t65 VALUES(10,101); +INSERT INTO t66 VALUES(1,11); +INSERT INTO t66 VALUES(2,21); +INSERT INTO t66 VALUES(3,31); +INSERT INTO t66 VALUES(4,41); +INSERT INTO t66 VALUES(5,51); +INSERT INTO t66 VALUES(6,61); +INSERT INTO t66 VALUES(7,71); +INSERT INTO t66 VALUES(8,81); +INSERT INTO t66 VALUES(9,91); +INSERT INTO t66 VALUES(10,101); +INSERT INTO t67 VALUES(1,11); +INSERT INTO t67 VALUES(2,21); +INSERT INTO t67 VALUES(3,31); +INSERT INTO t67 VALUES(4,41); +INSERT INTO t67 VALUES(5,51); +INSERT INTO t67 VALUES(6,61); +INSERT INTO t67 VALUES(7,71); +INSERT INTO t67 VALUES(8,81); +INSERT INTO t67 VALUES(9,91); +INSERT INTO t67 VALUES(10,101); +INSERT INTO t68 VALUES(1,11); +INSERT INTO t68 VALUES(2,21); +INSERT INTO t68 VALUES(3,31); +INSERT INTO t68 VALUES(4,41); +INSERT INTO t68 VALUES(5,51); +INSERT INTO t68 VALUES(6,61); +INSERT INTO t68 VALUES(7,71); +INSERT INTO t68 VALUES(8,81); +INSERT INTO t68 VALUES(9,91); +INSERT INTO t68 VALUES(10,101); +INSERT INTO t69 VALUES(1,11); +INSERT INTO t69 VALUES(2,21); +INSERT INTO t69 VALUES(3,31); +INSERT INTO t69 VALUES(4,41); +INSERT INTO t69 VALUES(5,51); +INSERT INTO t69 VALUES(6,61); +INSERT INTO t69 VALUES(7,71); +INSERT INTO t69 VALUES(8,81); +INSERT INTO t69 VALUES(9,91); +INSERT INTO t69 VALUES(10,101); +INSERT INTO t70 VALUES(1,11); +INSERT INTO t70 VALUES(2,21); +INSERT INTO t70 VALUES(3,31); +INSERT INTO t70 VALUES(4,41); +INSERT INTO t70 VALUES(5,51); +INSERT INTO t70 VALUES(6,61); +INSERT INTO t70 VALUES(7,71); +INSERT INTO t70 VALUES(8,81); +INSERT INTO t70 VALUES(9,91); +INSERT INTO t70 VALUES(10,101); +INSERT INTO t71 VALUES(1,11); +INSERT INTO t71 VALUES(2,21); +INSERT INTO t71 VALUES(3,31); +INSERT INTO t71 VALUES(4,41); +INSERT INTO t71 VALUES(5,51); +INSERT INTO t71 VALUES(6,61); +INSERT INTO t71 VALUES(7,71); +INSERT INTO t71 VALUES(8,81); +INSERT INTO t71 VALUES(9,91); +INSERT INTO t71 VALUES(10,101); +INSERT INTO t72 VALUES(1,11); +INSERT INTO t72 VALUES(2,21); +INSERT INTO t72 VALUES(3,31); +INSERT INTO t72 VALUES(4,41); +INSERT INTO t72 VALUES(5,51); +INSERT INTO t72 VALUES(6,61); +INSERT INTO t72 VALUES(7,71); +INSERT INTO t72 VALUES(8,81); +INSERT INTO t72 VALUES(9,91); +INSERT INTO t72 VALUES(10,101); +INSERT INTO t73 VALUES(1,11); +INSERT INTO t73 VALUES(2,21); +INSERT INTO t73 VALUES(3,31); +INSERT INTO t73 VALUES(4,41); +INSERT INTO t73 VALUES(5,51); +INSERT INTO t73 VALUES(6,61); +INSERT INTO t73 VALUES(7,71); +INSERT INTO t73 VALUES(8,81); +INSERT INTO t73 VALUES(9,91); +INSERT INTO t73 VALUES(10,101); +INSERT INTO t74 VALUES(1,11); +INSERT INTO t74 VALUES(2,21); +INSERT INTO t74 VALUES(3,31); +INSERT INTO t74 VALUES(4,41); +INSERT INTO t74 VALUES(5,51); +INSERT INTO t74 VALUES(6,61); +INSERT INTO t74 VALUES(7,71); +INSERT INTO t74 VALUES(8,81); +INSERT INTO t74 VALUES(9,91); +INSERT INTO t74 VALUES(10,101); +INSERT INTO t75 VALUES(1,11); +INSERT INTO t75 VALUES(2,21); +INSERT INTO t75 VALUES(3,31); +INSERT INTO t75 VALUES(4,41); +INSERT INTO t75 VALUES(5,51); +INSERT INTO t75 VALUES(6,61); +INSERT INTO t75 VALUES(7,71); +INSERT INTO t75 VALUES(8,81); +INSERT INTO t75 VALUES(9,91); +INSERT INTO t75 VALUES(10,101); +INSERT INTO t76 VALUES(1,11); +INSERT INTO t76 VALUES(2,21); +INSERT INTO t76 VALUES(3,31); +INSERT INTO t76 VALUES(4,41); +INSERT INTO t76 VALUES(5,51); +INSERT INTO t76 VALUES(6,61); +INSERT INTO t76 VALUES(7,71); +INSERT INTO t76 VALUES(8,81); +INSERT INTO t76 VALUES(9,91); +INSERT INTO t76 VALUES(10,101); +INSERT INTO t77 VALUES(1,11); +INSERT INTO t77 VALUES(2,21); +INSERT INTO t77 VALUES(3,31); +INSERT INTO t77 VALUES(4,41); +INSERT INTO t77 VALUES(5,51); +INSERT INTO t77 VALUES(6,61); +INSERT INTO t77 VALUES(7,71); +INSERT INTO t77 VALUES(8,81); +INSERT INTO t77 VALUES(9,91); +INSERT INTO t77 VALUES(10,101); +INSERT INTO t78 VALUES(1,11); +INSERT INTO t78 VALUES(2,21); +INSERT INTO t78 VALUES(3,31); +INSERT INTO t78 VALUES(4,41); +INSERT INTO t78 VALUES(5,51); +INSERT INTO t78 VALUES(6,61); +INSERT INTO t78 VALUES(7,71); +INSERT INTO t78 VALUES(8,81); +INSERT INTO t78 VALUES(9,91); +INSERT INTO t78 VALUES(10,101); +INSERT INTO t79 VALUES(1,11); +INSERT INTO t79 VALUES(2,21); +INSERT INTO t79 VALUES(3,31); +INSERT INTO t79 VALUES(4,41); +INSERT INTO t79 VALUES(5,51); +INSERT INTO t79 VALUES(6,61); +INSERT INTO t79 VALUES(7,71); +INSERT INTO t79 VALUES(8,81); +INSERT INTO t79 VALUES(9,91); +INSERT INTO t79 VALUES(10,101); +INSERT INTO t80 VALUES(1,11); +INSERT INTO t80 VALUES(2,21); +INSERT INTO t80 VALUES(3,31); +INSERT INTO t80 VALUES(4,41); +INSERT INTO t80 VALUES(5,51); +INSERT INTO t80 VALUES(6,61); +INSERT INTO t80 VALUES(7,71); +INSERT INTO t80 VALUES(8,81); +INSERT INTO t80 VALUES(9,91); +INSERT INTO t80 VALUES(10,101); +INSERT INTO t81 VALUES(1,11); +INSERT INTO t81 VALUES(2,21); +INSERT INTO t81 VALUES(3,31); +INSERT INTO t81 VALUES(4,41); +INSERT INTO t81 VALUES(5,51); +INSERT INTO t81 VALUES(6,61); +INSERT INTO t81 VALUES(7,71); +INSERT INTO t81 VALUES(8,81); +INSERT INTO t81 VALUES(9,91); +INSERT INTO t81 VALUES(10,101); +INSERT INTO t82 VALUES(1,11); +INSERT INTO t82 VALUES(2,21); +INSERT INTO t82 VALUES(3,31); +INSERT INTO t82 VALUES(4,41); +INSERT INTO t82 VALUES(5,51); +INSERT INTO t82 VALUES(6,61); +INSERT INTO t82 VALUES(7,71); +INSERT INTO t82 VALUES(8,81); +INSERT INTO t82 VALUES(9,91); +INSERT INTO t82 VALUES(10,101); +INSERT INTO t83 VALUES(1,11); +INSERT INTO t83 VALUES(2,21); +INSERT INTO t83 VALUES(3,31); +INSERT INTO t83 VALUES(4,41); +INSERT INTO t83 VALUES(5,51); +INSERT INTO t83 VALUES(6,61); +INSERT INTO t83 VALUES(7,71); +INSERT INTO t83 VALUES(8,81); +INSERT INTO t83 VALUES(9,91); +INSERT INTO t83 VALUES(10,101); +INSERT INTO t84 VALUES(1,11); +INSERT INTO t84 VALUES(2,21); +INSERT INTO t84 VALUES(3,31); +INSERT INTO t84 VALUES(4,41); +INSERT INTO t84 VALUES(5,51); +INSERT INTO t84 VALUES(6,61); +INSERT INTO t84 VALUES(7,71); +INSERT INTO t84 VALUES(8,81); +INSERT INTO t84 VALUES(9,91); +INSERT INTO t84 VALUES(10,101); +INSERT INTO t85 VALUES(1,11); +INSERT INTO t85 VALUES(2,21); +INSERT INTO t85 VALUES(3,31); +INSERT INTO t85 VALUES(4,41); +INSERT INTO t85 VALUES(5,51); +INSERT INTO t85 VALUES(6,61); +INSERT INTO t85 VALUES(7,71); +INSERT INTO t85 VALUES(8,81); +INSERT INTO t85 VALUES(9,91); +INSERT INTO t85 VALUES(10,101); +INSERT INTO t86 VALUES(1,11); +INSERT INTO t86 VALUES(2,21); +INSERT INTO t86 VALUES(3,31); +INSERT INTO t86 VALUES(4,41); +INSERT INTO t86 VALUES(5,51); +INSERT INTO t86 VALUES(6,61); +INSERT INTO t86 VALUES(7,71); +INSERT INTO t86 VALUES(8,81); +INSERT INTO t86 VALUES(9,91); +INSERT INTO t86 VALUES(10,101); +INSERT INTO t87 VALUES(1,11); +INSERT INTO t87 VALUES(2,21); +INSERT INTO t87 VALUES(3,31); +INSERT INTO t87 VALUES(4,41); +INSERT INTO t87 VALUES(5,51); +INSERT INTO t87 VALUES(6,61); +INSERT INTO t87 VALUES(7,71); +INSERT INTO t87 VALUES(8,81); +INSERT INTO t87 VALUES(9,91); +INSERT INTO t87 VALUES(10,101); +INSERT INTO t88 VALUES(1,11); +INSERT INTO t88 VALUES(2,21); +INSERT INTO t88 VALUES(3,31); +INSERT INTO t88 VALUES(4,41); +INSERT INTO t88 VALUES(5,51); +INSERT INTO t88 VALUES(6,61); +INSERT INTO t88 VALUES(7,71); +INSERT INTO t88 VALUES(8,81); +INSERT INTO t88 VALUES(9,91); +INSERT INTO t88 VALUES(10,101); +INSERT INTO t89 VALUES(1,11); +INSERT INTO t89 VALUES(2,21); +INSERT INTO t89 VALUES(3,31); +INSERT INTO t89 VALUES(4,41); +INSERT INTO t89 VALUES(5,51); +INSERT INTO t89 VALUES(6,61); +INSERT INTO t89 VALUES(7,71); +INSERT INTO t89 VALUES(8,81); +INSERT INTO t89 VALUES(9,91); +INSERT INTO t89 VALUES(10,101); +INSERT INTO t90 VALUES(1,11); +INSERT INTO t90 VALUES(2,21); +INSERT INTO t90 VALUES(3,31); +INSERT INTO t90 VALUES(4,41); +INSERT INTO t90 VALUES(5,51); +INSERT INTO t90 VALUES(6,61); +INSERT INTO t90 VALUES(7,71); +INSERT INTO t90 VALUES(8,81); +INSERT INTO t90 VALUES(9,91); +INSERT INTO t90 VALUES(10,101); +INSERT INTO t91 VALUES(1,11); +INSERT INTO t91 VALUES(2,21); +INSERT INTO t91 VALUES(3,31); +INSERT INTO t91 VALUES(4,41); +INSERT INTO t91 VALUES(5,51); +INSERT INTO t91 VALUES(6,61); +INSERT INTO t91 VALUES(7,71); +INSERT INTO t91 VALUES(8,81); +INSERT INTO t91 VALUES(9,91); +INSERT INTO t91 VALUES(10,101); +INSERT INTO t92 VALUES(1,11); +INSERT INTO t92 VALUES(2,21); +INSERT INTO t92 VALUES(3,31); +INSERT INTO t92 VALUES(4,41); +INSERT INTO t92 VALUES(5,51); +INSERT INTO t92 VALUES(6,61); +INSERT INTO t92 VALUES(7,71); +INSERT INTO t92 VALUES(8,81); +INSERT INTO t92 VALUES(9,91); +INSERT INTO t92 VALUES(10,101); +INSERT INTO t93 VALUES(1,11); +INSERT INTO t93 VALUES(2,21); +INSERT INTO t93 VALUES(3,31); +INSERT INTO t93 VALUES(4,41); +INSERT INTO t93 VALUES(5,51); +INSERT INTO t93 VALUES(6,61); +INSERT INTO t93 VALUES(7,71); +INSERT INTO t93 VALUES(8,81); +INSERT INTO t93 VALUES(9,91); +INSERT INTO t93 VALUES(10,101); +INSERT INTO t94 VALUES(1,11); +INSERT INTO t94 VALUES(2,21); +INSERT INTO t94 VALUES(3,31); +INSERT INTO t94 VALUES(4,41); +INSERT INTO t94 VALUES(5,51); +INSERT INTO t94 VALUES(6,61); +INSERT INTO t94 VALUES(7,71); +INSERT INTO t94 VALUES(8,81); +INSERT INTO t94 VALUES(9,91); +INSERT INTO t94 VALUES(10,101); +INSERT INTO t95 VALUES(1,11); +INSERT INTO t95 VALUES(2,21); +INSERT INTO t95 VALUES(3,31); +INSERT INTO t95 VALUES(4,41); +INSERT INTO t95 VALUES(5,51); +INSERT INTO t95 VALUES(6,61); +INSERT INTO t95 VALUES(7,71); +INSERT INTO t95 VALUES(8,81); +INSERT INTO t95 VALUES(9,91); +INSERT INTO t95 VALUES(10,101); +INSERT INTO t96 VALUES(1,11); +INSERT INTO t96 VALUES(2,21); +INSERT INTO t96 VALUES(3,31); +INSERT INTO t96 VALUES(4,41); +INSERT INTO t96 VALUES(5,51); +INSERT INTO t96 VALUES(6,61); +INSERT INTO t96 VALUES(7,71); +INSERT INTO t96 VALUES(8,81); +INSERT INTO t96 VALUES(9,91); +INSERT INTO t96 VALUES(10,101); +INSERT INTO t97 VALUES(1,11); +INSERT INTO t97 VALUES(2,21); +INSERT INTO t97 VALUES(3,31); +INSERT INTO t97 VALUES(4,41); +INSERT INTO t97 VALUES(5,51); +INSERT INTO t97 VALUES(6,61); +INSERT INTO t97 VALUES(7,71); +INSERT INTO t97 VALUES(8,81); +INSERT INTO t97 VALUES(9,91); +INSERT INTO t97 VALUES(10,101); +INSERT INTO t98 VALUES(1,11); +INSERT INTO t98 VALUES(2,21); +INSERT INTO t98 VALUES(3,31); +INSERT INTO t98 VALUES(4,41); +INSERT INTO t98 VALUES(5,51); +INSERT INTO t98 VALUES(6,61); +INSERT INTO t98 VALUES(7,71); +INSERT INTO t98 VALUES(8,81); +INSERT INTO t98 VALUES(9,91); +INSERT INTO t98 VALUES(10,101); +INSERT INTO t99 VALUES(1,11); +INSERT INTO t99 VALUES(2,21); +INSERT INTO t99 VALUES(3,31); +INSERT INTO t99 VALUES(4,41); +INSERT INTO t99 VALUES(5,51); +INSERT INTO t99 VALUES(6,61); +INSERT INTO t99 VALUES(7,71); +INSERT INTO t99 VALUES(8,81); +INSERT INTO t99 VALUES(9,91); +INSERT INTO t99 VALUES(10,101); +INSERT INTO t100 VALUES(1,11); +INSERT INTO t100 VALUES(2,21); +INSERT INTO t100 VALUES(3,31); +INSERT INTO t100 VALUES(4,41); +INSERT INTO t100 VALUES(5,51); +INSERT INTO t100 VALUES(6,61); +INSERT INTO t100 VALUES(7,71); +INSERT INTO t100 VALUES(8,81); +INSERT INTO t100 VALUES(9,91); +INSERT INTO t100 VALUES(10,101); diff --git a/test/cache/Recovery/exp.test003.ksh b/test/cache/Recovery/exp.test003.ksh new file mode 100644 index 00000000..e14e833a --- /dev/null +++ b/test/cache/Recovery/exp.test003.ksh @@ -0,0 +1,13 @@ +CREATE TABLE t1 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t1_PRIMARY on t1 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE INDEX t1_idx2 on t1 ( f2 ) HASH SIZE 10007 ; +INSERT INTO t1 VALUES(1,11); +INSERT INTO t1 VALUES(2,21); +INSERT INTO t1 VALUES(3,31); +INSERT INTO t1 VALUES(4,41); +INSERT INTO t1 VALUES(5,51); +INSERT INTO t1 VALUES(6,61); +INSERT INTO t1 VALUES(7,71); +INSERT INTO t1 VALUES(8,81); +INSERT INTO t1 VALUES(9,91); +INSERT INTO t1 VALUES(10,101); diff --git a/test/cache/Recovery/exp.test004.ksh b/test/cache/Recovery/exp.test004.ksh new file mode 100644 index 00000000..e14e833a --- /dev/null +++ b/test/cache/Recovery/exp.test004.ksh @@ -0,0 +1,13 @@ +CREATE TABLE t1 (f1 INT NOT NULL , f2 INT ); +CREATE INDEX t1_PRIMARY on t1 ( f1 ) HASH UNIQUE SIZE 10007 ; +CREATE INDEX t1_idx2 on t1 ( f2 ) HASH SIZE 10007 ; +INSERT INTO t1 VALUES(1,11); +INSERT INTO t1 VALUES(2,21); +INSERT INTO t1 VALUES(3,31); +INSERT INTO t1 VALUES(4,41); +INSERT INTO t1 VALUES(5,51); +INSERT INTO t1 VALUES(6,61); +INSERT INTO t1 VALUES(7,71); +INSERT INTO t1 VALUES(8,81); +INSERT INTO t1 VALUES(9,91); +INSERT INTO t1 VALUES(10,101); diff --git a/test/cache/Recovery/insert.sql b/test/cache/Recovery/insert.sql new file mode 100644 index 00000000..4a48fe62 --- /dev/null +++ b/test/cache/Recovery/insert.sql @@ -0,0 +1,10 @@ +insert into t1 values(1,11); +insert into t1 values(2,21); +insert into t1 values(3,31); +insert into t1 values(4,41); +insert into t1 values(5,51); +insert into t1 values(6,61); +insert into t1 values(7,71); +insert into t1 values(8,81); +insert into t1 values(9,91); +insert into t1 values(10,101); diff --git a/test/cache/Recovery/test001.ksh b/test/cache/Recovery/test001.ksh new file mode 100755 index 00000000..42a79da5 --- /dev/null +++ b/test/cache/Recovery/test001.ksh @@ -0,0 +1,64 @@ +#!/bin/ksh + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail + +# mysql is not connecting becos odbc.ini does not have anything. +# try to cache the table created in target db +# it should fail + +CSQL_CONF=${PWD}/cache/Recovery/csql.conf +REL_PATH=. +if [ -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/Recovery +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +echo $DS +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +isql $DS < $REL_PATH/drop.sql > /dev/null 2>&1 +isql $DS < $REL_PATH/createt1.sql > /dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +echo "1 t1 NULL NULL NULL $DSN" > /tmp/csql/csqltable.conf + + +mv ~/.odbc.ini /tmp +touch ~/.odbc.ini + +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlserver -c >/dev/null 2>&1 +if [ $? -ne 0 ] +then + mv /tmp/.odbc.ini ~ + rm -f /tmp/csql/csqlds.conf + touch /tmp/csql/csqlds.conf + isql $DS < $REL_PATH/drop.sql > /dev/null 2>&1 + exit 0; +fi +mv /tmp/.odbc.ini ~ +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +isql $DS < $REL_PATH/drop.sql > /dev/null 2>&1 +exit 3; diff --git a/test/cache/Recovery/test002.ksh b/test/cache/Recovery/test002.ksh new file mode 100755 index 00000000..6a391a89 --- /dev/null +++ b/test/cache/Recovery/test002.ksh @@ -0,0 +1,70 @@ +#!/bin/ksh +#This test requires kernel.shmmax to be 1GB, otherwise it may fail +# + +# Start TDB and create 100 tables in TDB t1(f1 int primary key, f2 int), i +# t2(f1 int primary key, f2 int), ... t100 and insert 10 records each. +# Add entries for all 100 tables in csqltable.conf. +# Recover with csqlserver -c option. +# Verify that it recovers all the tables with index information and all +# the records using the csqldump tool. + +CSQL_CONF=${PWD}/cache/Recovery/csql.conf +input=${PWD}/cache/Recovery/create.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/Recovery +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +isql $DS < $REL_PATH/create.sql >/dev/null 2>&1 +if [ $? -ne 0 ] +then + exit 2; +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +a=1 + +while [[ $a -lt 101 ]];do + echo "1 t$a NULL NULL NULL $DSN" + (( a +=1 )) +done >> /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver -c >/dev/null 2>&1 & +pid=$! +sleep 60 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqldump +if [ $? -ne 0 ] +then + kill -9 $pid > /dev/null 2>&1 + ipcrm -M 1199 -M 2277 + isql $DS < $REL_PATH/dropall.sql > /dev/null 2>&1 + exit 3; +fi + +isql $DS < $REL_PATH/dropall.sql > /dev/null 2>&1 +rm -f /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +touch /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +kill -9 $pid > /dev/null 2>&1 +ipcrm -M 1199 -M 2277 +exit 0; diff --git a/test/cache/Recovery/test003.ksh b/test/cache/Recovery/test003.ksh new file mode 100755 index 00000000..af3e0744 --- /dev/null +++ b/test/cache/Recovery/test003.ksh @@ -0,0 +1,71 @@ +#!/bin/ksh +# Start TDB and create table in TDB t1(f1 int primary key, f2 int ), +# create index idx2 on t1 (f2) and insert 10 records each. +# Add entry for t1 table in csqltable.conf file. +# Recover with csqlserver -c option. +# Verify that it recovers the table with both the index information and +# all the records using the csqldump tool. + +CSQL_CONF=${PWD}/cache/Recovery/csql.conf +input=${PWD}/cache/Recovery/createt1.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/Recovery +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + +if [ $DSN = "oracle" ] + then + isql $DS < $REL_PATH/createt1.oracle > /dev/null 2>&1 + if [ $? -ne 0 ] + then + exit 2; + fi + else + isql $DS < $REL_PATH/createt1.sql > /dev/null 2>&1 + if [ $? -ne 0 ] + then + exit 2; + fi +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +echo "1 t1 NULL NULL NULL $DSN" >> /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver -c >/dev/null 2>&1 & +pid=$! +sleep 5 + +rm -f /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +touch /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf + +$CSQL_INSTALL_ROOT/bin/csqldump +if [ $? -ne 0 ] +then + isql $DS < $REL_PATH/drop.sql > /dev/null 2>&1 + exit 5; +fi + +kill -9 $pid > /dev/null 2>&1 + +isql $DS < $REL_PATH/drop.sql > /dev/null 2>&1 +ipcrm -M 1199 -M 2277 +rm -f /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +touch /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +exit 0; + diff --git a/test/cache/Recovery/test004.ksh b/test/cache/Recovery/test004.ksh new file mode 100755 index 00000000..280256c9 --- /dev/null +++ b/test/cache/Recovery/test004.ksh @@ -0,0 +1,85 @@ +#!/bin/ksh + +# 4. Create table t1(f1 int, f2 int, primary key (f1)); in mysql +# insert into t1 values(1, 11); +# Cache the table in CSQL. +# Insert the same tuple in csql. +# It should fail with unique key violation. + +#Run this test only under csql/test or on this directory. +#Otherwise, it may fail +CSQL_CONF=${PWD}/cache/Recovery/csql.conf +input=${PWD}/cache/Recovery/createt1.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/Recovery +fi + +rm -f /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + exit 1; +fi + + +if [ $DSN = "oracle" ] + then + isql $DS < $REL_PATH/createt1.oracle > /dev/null 2>&1 + if [ $? -ne 0 ] + then + rm -f /tmp/csql/csqlds.conf + touch /tmp/csql/csqlds.conf + exit 2; + fi + else + isql $DS < $REL_PATH/createt1.sql > /dev/null 2>&1 + if [ $? -ne 0 ] + then + rm -f /tmp/csql/csqlds.conf + touch /tmp/csql/csqlds.conf + exit 2; + fi +fi + +if [ $? -ne 0 ] +then + exit 1; +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +echo "1 t1 NULL NULL NULL $DSN" >> /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver -c >/dev/null 2>&1 & +pid=$! +sleep 5 + +$CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/insert.sql >/dev/null 2>&1 + +rm -f /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +touch /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf + +$CSQL_INSTALL_ROOT/bin/csqldump +if [ $? -ne 0 ] +then + exit 5; +fi + +kill -9 $pid > /dev/null 2>&1 + +isql $DS < $REL_PATH/drop.sql > /dev/null 2>&1 +ipcrm -M 1199 -M 2277 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; + diff --git a/test/cache/Recovery/test005.ksh b/test/cache/Recovery/test005.ksh new file mode 100755 index 00000000..67af1ff0 --- /dev/null +++ b/test/cache/Recovery/test005.ksh @@ -0,0 +1,72 @@ +#!/bin/ksh + +# Table recovery with composite index. +# Start TDB and create table in TDB t1 (f1 int,f2 int,f3 int,f4 char(10),i +# primary key(f1,f2)), Add entry for t1 table in csqltable.conf file. +# Recover with csqlserver -c option. +# Verify that it recovers the table with both the index information i +# and all the records using csqldump tool + +CSQL_CONF=${PWD}/cache/Recovery/csql.conf +input=${PWD}/cache/Recovery/createt1.sql +REL_PATH=. +if [ -s "$input" -a -s "$CSQL_CONF" ] +then + REL_PATH=${PWD}/cache/Recovery +fi +rm -f /tmp/csql.conf +if [ $DSN = "db2" ] +then + echo "create table t1(f1 int not null, f2 int not null,f3 int,f4 char(10),primary key(f1,f2));">$REL_PATH/t1.sql +else + echo "create table t1(f1 int , f2 int,f3 int,f4 char(10),primary key(f1,f2));">$REL_PATH/t1.sql +fi +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + rm -f $REL_PATH/t1.sql + exit 1; +fi + +isql $DS < $REL_PATH/t1.sql > /dev/null 2>&1 +if [ $? -ne 0 ] +then + rm -f $REL_PATH/t1.sql + exit 2; +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +echo "1 t1 NULL NULL NULL $DSN" >> /tmp/csql/csqltable.conf +$CSQL_INSTALL_ROOT/bin/csqlserver -c >/dev/null 2>&1 & +pid=$! +sleep 5 + +rm -f /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +touch /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf + +$CSQL_INSTALL_ROOT/bin/csqldump +if [ $? -ne 0 ] +then + rm -f $REL_PATH/t1.sql + exit 5; +fi + +kill -9 $pid > /dev/null 2>&1 +echo "drop table t1;">>$REL_PATH/drt1.sql +isql $DSN < $REL_PATH/drt1.sql > /dev/null 2>&1 +rm -f $REL_PATH/t1.sql +rm -f $REL_PATH/drt1.sql +ipcrm -M 1199 -M 2277 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; + diff --git a/test/cache/Recovery/test006.ksh b/test/cache/Recovery/test006.ksh new file mode 100755 index 00000000..aca9c21a --- /dev/null +++ b/test/cache/Recovery/test006.ksh @@ -0,0 +1,72 @@ +#!/bin/ksh + +# Table recovery with primary composite and secondary composite index +# Start TDB and create table in TDB t1 (f1 int,f2 int,f3 int,f4 char(10),i +# primary key(f1,f2)) create index idx2 on t1 (f3,f4) +# Add entry for t1 table in csqltable.conf file. +# Recover with csqlserver -c option. +# Verify that it recovers the table with both the index information and all +# the records using csqldump tool + +input=${PWD}/cache/Recovery/createt1.sql +REL_PATH=. +if [ -s "$input" ] +then + REL_PATH=${PWD}/cache/Recovery +fi +echo "create table t1(f1 int , f2 int,f3 int,f4 char(10),primary key(f1,f2));">$REL_PATH/t1.sql +echo "create index idx2 on t1(f3,f4);">>$REL_PATH/t1.sql + +rm /tmp/csql.conf +cp $REL_PATH/csql.conf /tmp +export CSQL_CONFIG_FILE=/tmp/csql.conf + +echo DSN=$DSN >>$CSQL_CONFIG_FILE +DS="$DSN $DBUSER $PASSWORD" +rm -f /tmp/csql/csqlds.conf +touch /tmp/csql/csqlds.conf +$CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a +if [ $? -ne 0 ] +then + rm -f $REL_PATH/t1.sql + exit 1; +fi + +isql $DS < $REL_PATH/t1.sql > /dev/null 2>&1 +if [ $? -ne 0 ] +then + rm -f $REL_PATH/t1.sql + exit 2; +fi + +# edit /tmp/csql/csqltable.conf +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +echo "1 t1 NULL NULL NULL $DSN" > /tmp/csql/csqltable.conf + +$CSQL_INSTALL_ROOT/bin/csqlserver -c > /dev/null 2>&1 & +pid=$! +sleep 5 + +rm -f /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +touch /tmp/csql/csqltable.conf /tmp/csql/csqlds.conf +echo "drop table t1;">>$REL_PATH/drt1.sql + +$CSQL_INSTALL_ROOT/bin/csqldump +if [ $? -ne 0 ] +then + rm -f $REL_PATH/t1.sql + isql $DS < $REL_PATH/drt1.sql > /dev/null 2>&1 + rm -f $REL_PATH/drt1.sql + exit 3; +fi + +kill -9 $pid > /dev/null 2>&1 +isql $DSN < $REL_PATH/drt1.sql > /dev/null 2>&1 +rm -f $REL_PATH/t1.sql +rm -f $REL_PATH/drt1.sql +ipcrm -M 1199 -M 2277 +rm -f /tmp/csql/csqltable.conf +touch /tmp/csql/csqltable.conf +exit 0; + diff --git a/test/csql.conf b/test/csql.conf new file mode 100644 index 00000000..46f54281 --- /dev/null +++ b/test/csql.conf @@ -0,0 +1,142 @@ +# CSQL System Configuration File + +#####################################Server Section######################## +#Important: For Server section parameters, make sure that the value is same for the +# server process and all the csql client process which connects to it. otherwise, +# behavior is undefined + +# Page size. Each database is logically divided into pages and allocation happens +# in this unit of pages. Increasing this value will reduce frequent allocation of pages. +PAGE_SIZE= 8192 + +#Total number of client process which can connect and work with the +# database concurrently +MAX_PROCS = 100 + +# Maximum size of the system database. +MAX_SYS_DB_SIZE=1048576 + +#Maximum size of the user database file. +MAX_DB_SIZE=10485760 + +#Shared memory key to be used by the system to create and locate system database. +SYS_DB_KEY=2222 + +#Shared memory key to be used by the system to create and locate user database. +USER_DB_KEY=3333 + +#Log level 0->no logging 1->Fine 2->Finer 3->Finest +LOG_LEVEL=0 + +#Give full path for the log file where important system actions are stored. +LOG_FILE=/tmp/csql/log/log.out + +#The virtual memory start address at which the shared memory segment +# will be created and attached. +MAP_ADDRESS=400000000 + +# Whether to enable durability +DURABILITY=false + +# Can be set true only when DURABILITY is true +MMAP=false + +# Specifies the durability mode for redo log generation +# Valid values are +# 1 ->uses standard redo logging with O_APPEND mode +# 2 ->uses standard logging with serialization +# 3 ->uses O_SYNC flag +# 4 ->uses O_DIRECT flag + +DURABLE_MODE=1 + +#Give full path for the database file where table and record information will +#be stored for durability +DATABASE_FILE=/tmp/csql/db + +#Important: For Server section parameters, make sure that the value is same for the server process and all the csql client process which connects to it. otherwise, behavior is undefined + +# Give full path for the std error file to store all the errors during database operations +STDERR_FILE=stderr + +#####################################Client Section######################## + +#Mutex timeout interval seconds +MUTEX_TIMEOUT_SECS=0 +MUTEX_TIMEOUT_USECS=5000 +MUTEX_TIMEOUT_RETRIES=10 + +#Lock timeout interval seconds +LOCK_TIMEOUT_SECS=0 +LOCK_TIMEOUT_USECS=5000 +LOCK_TIMEOUT_RETRIES=10 + +#####################################Cache Section######################## + +#Whether to enable caching of tables from target database +CACHE_TABLE=false + +#Set cache id for multiple bidirectional cache node for single data source +SITE_ID=1 + +#DSN Name to connect to the target database. +#This should be present in ~/odbc.ini file +DSN=myodbc3 + +# Whethere to enable bidirectional updates for cached tables. +ENABLE_BIDIRECTIONAL_CACHE=false + +CACHE_RECEIVER_WAIT_SECS=10 + +#Mode of operation SYNC or ASYNC +CACHE_MODE=SYNC + +##########################SqlNetworkServer Section######################## + +# Whether to enable SqlNetwork server +CSQL_SQL_SERVER=true + +#Set port for Network access +PORT=5678 + +# Max number of seconds that the network layer waits to receive a pkt +NETWORK_RESPONSE_TIMEOUT=3 + +# Max number of seconds that the network layer waits to connect to sql server +NETWORK_CONNECT_TIMEOUT=5 + +#Whether to enable Replication across the sites +REPLICATION=false + +#No of sites to replicate +REPLICATION_SITES=16 + +#Give full path for the file where all the table information is stored +TABLE_CONFIG_FILE=/tmp/csql/csqltable.conf + +#Give full path of the file where all the DSN information is stored +DS_CONFIG_FILE=/tmp/csql/csqlds.conf + +#Give full path for the file where all the peer site information is stored +NETWORK_CONFIG_FILE=/tmp/csql/csqlnw.conf + +# Give full path for conflict Resolution file +CONFL_RESOL_FILE=/tmp/csql/conflResoFile.txt + +# MSGKEY for creating msg queue for MsgQueue Server +MSG_KEY=2525 + +# Maximum message that the message queue server is able to handle for +# asynchronous updates. This value is is default value of 'kernel.msgmax' +# parameter. +ASYNC_MSGMAX=8192 + +# Maximum number of messages that the message queue server will hold for a site +# that is down in the replication group. +MAX_QUEUE_LOGS=100 + +# Shared memory key for id generators +ID_SHM_KEY=1947 +#####################################End Section######################## +DSN=myodbc3 +DSN=myodbc3 diff --git a/test/execCacheTests.ksh b/test/execCacheTests.ksh new file mode 100755 index 00000000..84626f75 --- /dev/null +++ b/test/execCacheTests.ksh @@ -0,0 +1,435 @@ +#!/bin/ksh + +# First argument is the data source name to be used +# Second argument is the target database name +# valid names: MYSQL, PSQL, ORACLE +# Third argument is user name +# Fourth argument is password + +################### Settings ######################################## +#Timeout value for the hanging scripts +HANG_TIMEOUT=200 + +################### TIMEOUT HANDLER ################################# +timeout_handler() { +if [ $CMD_PID != "" ] +then + HANG_FLAG=Yes + echo "HANG_FLAG is set here" + kill -9 $CMD_PID 2>/dev/null +fi +} +restart_csqlserver() { + echo "Restarting the server" + kill -2 ${SERVER_PID} + killcsqlsqlserver + SRVPID=`ps -ef | grep csqlserver|grep -v "grep" |tail -1| awk -F" " '{ print $2 }'` + if [ "$SRVPID" != "" ] + then + echo CSQL Server $SRVPID is being killed + kill -2 $SRVPID + sleep 1 + kill -9 $SRVPID + ipcrm -M 2222 -M 3333 -M 1947 + fi + + echo "csqlserver killed PID=${SERVER_PID}" >>$TEST_LOG +# rm -f /tmp/csql.conf + rm -rf /tmp/csql/* + mkdir /tmp/csql/log + mkdir /tmp/csql/db + cp $CSQL_SRCROOT/csql.conf /tmp/csql/csql.conf + export CSQL_CONFIG_FILE=/tmp/csql/csql.conf + echo "MMAP=false" >>/tmp/csql/csql.conf + echo "CSQL_SQL_SERVER=true">>/tmp/csql/csql.conf +# rm -rf /tmp/csql/* +# mkdir /tmp/csql/log +# mkdir /tmp/csql/db + touch /tmp/csql/csqltable.conf + touch /tmp/csql/csqlnw.conf + touch /tmp/csql/csqlds.conf + $CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a + $CSQL_INSTALL_ROOT/bin/csqlserver >${SERVOUT} & + SERVER_PID=$! + echo "csqlserver restarted with PID=${SERVER_PID}" >>$TEST_LOG + sleep 5 +} + +killcsqlsqlserver() { + #return; + while true + do + SQLPID=`ps -ef | grep csqlsqlserver|grep -v "grep" |tail -1| awk -F" " '{ print $2 }'` + if [ "$SQLPID" != "" ] + then + echo SQL Server $SQLPID is being killed + kill -2 $SQLPID + sleep 1 + else break; + fi + done + #kill checkpoint setver + while true + do + CHKPTPID=`ps -ef | grep csqlcheckpointserver |grep -v "grep" |tail -1| awk -F" " '{ print $2 }'` + if [ "$CHKPTPID" != "" ] + then + echo Checkpoint server $CHKPTPID is being killed + kill -2 $CHKPTPID + sleep 1 + else break; + fi + done +} + +##################### Test Executor main starts here ################## +echo MY pid is $$ +if [ ! "$CSQL_CONFIG_FILE" ] +then + echo "setupenv.ksh script is not run" + exit 1 +fi +SHELL=/bin/sh +#TEST_RUN_DIR should be set before running this +if [ ! "$TEST_RUN_ROOT" -a ! "$MODULE_NAME" ] +then + echo "TEST_RUN_ROOT should be set before running the tests" + exit 1 +fi +if [ ! "$CSQL_INSTALL_ROOT" ] +then + echo "CSQL_INSTALL_ROOT should be set before running the tests" + exit 1 +fi + +cp $CSQL_SRCROOT/csql.conf /tmp/csql/csql.conf +export CSQL_CONFIG_FILE=/tmp/csql/csql.conf +echo "MMAP=false" >>/tmp/csql.conf +echo "CSQL_SQL_SERVER=true">>/tmp/csql.conf +export DSN=$1 +export DBUSER=$3 +export PASSWORD=$4 +export TDB=$2 +echo "First argument is " $1 +if [ $# -ne 4 ] +then + isql $1 $3 $4 /dev/null 2>/dev/null + if [ $? -ne 0 ] + then + echo "Unable to connect to data source" + exit 1 + fi + echo DSN=$1 >>$CSQL_CONFIG_FILE +else + isql $1 $3 $4/dev/null 2>/dev/null + if [ $? -ne 0 ] + then + echo "Unable to connect to data source" + exit 1 + fi + echo DSN=$1 >>$CSQL_CONFIG_FILE +fi + +#setting up multiDSN +. ./setMultiDsn.ksh +if [ ! "$MYSQL_DSN" ] +then + echo "Set up needs to be done for MultiDSN by edit setMultiDsn.ksh file for all TDBs." + exit 1 +fi + +ROOT_DIR=`pwd` +if [ ! "$MODULE_NAME" ] +then +{ +mkdir -p $TEST_RUN_ROOT +SERVOUT=$TEST_RUN_ROOT/serv.out +touch $SERVOUT +$CSQL_INSTALL_ROOT/bin/csqlserver >${SERVOUT} & +SERVER_PID=$! +echo "Starting Server" +sleep 5 +while read MODULE +do + echo $MODULE | grep "#" >/dev/null + if [ $? -eq 0 ] + then + continue + fi + echo "MODULE READ is $MODULE" +#if [ "$MODULE" = "adapter/Connect" -o "$MODULE" = "adapter/Parameter" -o "$MODULE" = "adapter/Select" ] +#then + rm -f /tmp/csql/csqlds.conf + touch /tmp/csql/csqlds.conf + $CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a + if [ $? -ne 0 ] + then + exit 1; + fi +#fi +TEST_SCRIPT_DIR=${ROOT_DIR}/${MODULE} +TEST_RUN_DIR=${TEST_RUN_ROOT}/${MODULE} +if [ -s "$TEST_RUN_DIR" ] +then + kill -9 $SERVER_PID + ipcrm -M 2222 -M 3333 -M 1947 + echo "TEST_RUN_ROOT directory is not empty. Clean and try again." + exit 1 +fi +mkdir -p $TEST_RUN_DIR + +# TODO::check whether server is running + +TEST_LOG=$TEST_RUN_DIR/testlog + +if [ -s "$TEST_LOG" ] +then + echo "TEST_RUN_DIR has files in it. Remove before running the tests" + exit 1 +fi + +TEST_EXEC_DIR=$TEST_RUN_DIR/tests +mkdir $TEST_EXEC_DIR + + +echo "Test Executor log file" >$TEST_LOG +echo "----------------------" >>$TEST_LOG + +TestList=`ls ${TEST_SCRIPT_DIR}/test*` +for test in $TestList +do +echo "Running $test" +echo "Running $test" >>$TEST_LOG +echo "Test started at : `date` " +echo "Test started at : `date` " >>$TEST_LOG + +expPresent="no" +arch="no" +os="no" +EXPECTED_FILE=exp.`basename ${test}` +ARCH=`uname -m` +EXP_FILE=$EXPECTED_FILE +if [ "$ARCH" = "x86_64" ] +then + EXP_FILE=$EXPECTED_FILE.$ARCH + arch="yes" +fi +if [ -s "${TEST_SCRIPT_DIR}/${EXP_FILE}" -a "$arch" = "yes" ] +then + expPresent="yes" +fi +OS=`uname` +if [ "$OS" = "SunOS" ] +then + EXP_FILE=$EXPECTED_FILE.$OS + os="yes" +fi +if [ -s "${TEST_SCRIPT_DIR}/${EXP_FILE}" -a "$os" = "yes" ] +then + expPresent="yes" +fi +if [ "$expPresent" = "no" ] +then + EXP_FILE=$EXPECTED_FILE.$DSN +fi +if [ -s "${TEST_SCRIPT_DIR}/${EXP_FILE}" ] +then + expPresent="yes" +fi +if [ "$expPresent" = "no" ] +then + if [ -s "${TEST_SCRIPT_DIR}/${EXPECTED_FILE}" ] + then + expPresent="yes" + EXP_FILE=$EXPECTED_FILE + fi +fi + +echo "EXP_FILE is $EXP_FILE" + +HANG_FLAG=No +trap timeout_handler USR1 +sleep ${HANG_TIMEOUT} && kill -s USR1 $$ & +SLEEP_PID=$! + +if [ "$expPresent" = "yes" ] +then + cp ${TEST_SCRIPT_DIR}/${EXP_FILE} ${TEST_EXEC_DIR} + ${test} > ${TEST_EXEC_DIR}/cur.${EXP_FILE} 2>/dev/null & +else + ${test} >> ${TEST_LOG} 2>/dev/null & +fi +CMD_PID=$! +wait ${CMD_PID} 2>/dev/null +ret=$? +echo "Test Ended at : `date` " +echo "Test Ended at : `date` " >>$TEST_LOG +unset CMD_PID +trap "" USR1 +kill -9 ${SLEEP_PID} 2>/dev/null + +if [ "$HANG_FLAG" = "Yes" ] +then + echo "Test Hung. so it is killed." >>$TEST_LOG + echo "FAILED:Test $test failed" >>$TEST_LOG + #TODO::Reinitalize the database, as it may be in corrupted state. + CURTIME=`date +%s` + mv ${SERVOUT} ${SERVOUT}.${SERVER_PID}.${CURTIME} + restart_csqlserver + continue +fi + +HANG_FLAG=No + +if [ $ret -eq 0 ] +then + if [ "$expPresent" = "yes" ] + then + #compare exp and current output + diff ${TEST_SCRIPT_DIR}/${EXP_FILE} ${TEST_EXEC_DIR}/cur.${EXP_FILE} > ${TEST_EXEC_DIR}/diff.${EXP_FILE} + if [ $? -eq 0 ] + then + + echo "Exp and current output matched." + echo "Test $test passed" + echo "Exp and current output matched." >>$TEST_LOG + echo "PASSED:Test $test passed" >>$TEST_LOG + rm ${TEST_EXEC_DIR}/cur.${EXP_FILE} + rm ${TEST_EXEC_DIR}/diff.${EXP_FILE} + rm ${TEST_EXEC_DIR}/${EXP_FILE} + else + echo "Exp and current output not matched." + echo "Test $test failed" + echo "Exp and current output not matched." >>${TEST_LOG} + echo "FAILED:Test $test failed" >>$TEST_LOG + #TODO::Reinitalize the database, as it may be in corrupted state. + CURTIME=`date +%s` + mv ${SERVOUT} ${SERVOUT}.${SERVER_PID}.${CURTIME} + echo "Refer ${SERVOUT}.${SERVER_PID}.${CURTIME} file for server log" >>$TEST_LOG + restart_csqlserver + fi + else + echo "Returned 0." + echo "Test $test passed" + echo "Returned 0." >>$TEST_LOG + echo "PASSED:Test $test passed" >>$TEST_LOG + fi + +else + echo "Returned $ret " + echo "Test $test failed" + echo "Returned $ret " >>$TEST_LOG + echo "FAILED:Test $test failed" >>$TEST_LOG + #TODO::Reinitalize the database, as it may be in corrupted state. + CURTIME=`date +%s` + mv ${SERVOUT} ${SERVOUT}.${SERVER_PID}.${CURTIME} + echo "Refer ${SERVOUT}.${SERVER_PID}.${CURTIME} file for server log" >>$TEST_LOG + restart_csqlserver +fi + +done +done < CacheTestModules +kill -9 ${SERVER_PID} +killcsqlsqlserver +ipcrm -M 2222 -M 3333 -M 1947 +echo "csqlserver killed PID=${SERVER_PID}" >>${TEST_LOG} +} +else +{ +#For Single Script Test + if [ ! "$SCRIPT_NAME" ] + then + echo "Set SCRIPT_NAME to execute single script" + exit 1 + fi + $CSQL_INSTALL_ROOT/bin/csqlserver >/dev/null 2>&1 & + SERVER_PID=$! + echo "Starting Server" + sleep 5 + echo "MODULE Name is $MODULE_NAME" + echo "SCRIPT Name is $SCRIPT_NAME" + if [ "$MODULE_NAME" = "adapter/Connect" -o "$MODULE_NAME" = "adapter/Parameter" -o "$MODULE_NAME" = "adapter/Select" ] + then + rm -f /tmp/csql/csqlds.conf + touch /tmp/csql/csqlds.conf + $CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a + if [ $? -ne 0 ] + then + exit 1; + fi + fi + test=${ROOT_DIR}/${MODULE_NAME}/${SCRIPT_NAME} + echo "Running $test" + echo "Test started at : `date` " + expPresent="no" + EXPECTED_FILE=exp.`basename ${test}` + EXP_FILE=$EXPECTED_FILE.$DSN + TEST_SCRIPT_DIR=${ROOT_DIR}/${MODULE_NAME} + if [ -s "${TEST_SCRIPT_DIR}/${EXP_FILE}" ] + then + expPresent="yes" + fi + if [ "$expPresent" = "no" ] + then + if [ -s "${TEST_SCRIPT_DIR}/${EXPECTED_FILE}" ] + then + expPresent="yes" + EXP_FILE=$EXPECTED_FILE + fi + fi + echo "EXP_FILE is $EXP_FILE" + HANG_FLAG=No + trap timeout_handler USR1 + sleep ${HANG_TIMEOUT} && kill -s USR1 $$ & + SLEEP_PID=$! + if [ "$expPresent" = "yes" ] + then + cp ${TEST_SCRIPT_DIR}/${EXP_FILE} ${ROOT_DIR} + ${test} >${ROOT_DIR}/cur.${EXP_FILE} 2>/dev/null & + else + ${test} 2>/dev/null & + fi + CMD_PID=$! + wait ${CMD_PID} 2>/dev/null + ret=$? + echo "Test Ended at : `date` " + unset CMD_PID + trap "" USR1 + kill -9 ${SLEEP_PID} 2>/dev/null + if [ "$HANG_FLAG" = "Yes" ] + then + CURTIME=`date +%s` + mv ${SERVOUT} ${SERVOUT}.${SERVER_PID}.${CURTIME} + kill -9 ${SERVER_PID} + ipcrm -M 2222 -M 3333 + echo "csqlserver killed due to HANG_FLAG PID=${SERVER_PID}" + fi + HANG_FLAG=No + if [ $ret -eq 0 ] + then + if [ "$expPresent" = "yes" ] + then + diff ${TEST_SCRIPT_DIR}/${EXP_FILE} ${ROOT_DIR}/cur.${EXP_FILE} > ${ROOT_DIR}/diff.${EXP_FILE} + if [ $? -eq 0 ] + then + echo "Exp and current output matched." + echo "Test $test passed" + rm -f ${ROOT_DIR}/cur.${EXP_FILE} ${ROOT_DIR}/diff.${EXP_FILE} ${ROOT_DIR}/${EXP_FILE} + else + echo "Exp and current output not matched." + echo "Test $test failed" + fi + else + echo "Returned 0." + echo "Test $test passed" + fi + else + echo "Returned $ret " + echo "Test $test failed" + fi + kill -9 ${SERVER_PID} + killcsqlsqlserver + ipcrm -M 2222 -M 3333 -M 1947 +} +fi +exit 0 diff --git a/test/execTests.ksh b/test/execTests.ksh new file mode 100755 index 00000000..b92a251c --- /dev/null +++ b/test/execTests.ksh @@ -0,0 +1,279 @@ +#!/bin/ksh + +################### Settings ######################################## +#Timeout value for the hanging scripts +HANG_TIMEOUT=150 + +################### TIMEOUT HANDLER ################################# +timeout_handler() { +if [ $CMD_PID != "" ] +then + HANG_FLAG=Yes + echo "HANG_FLAG is set here" + kill -9 $CMD_PID 2>/dev/null +fi +} +restart_csqlserver() { + echo "Restarting the server" + killcsqlsqlserver + kill -2 ${SERVER_PID} + SRVPID=`ps -ef | grep csqlserver|grep -v "grep" |tail -1| awk -F" " '{ print $2 }'` + if [ "$SRVPID" != "" ] + then + echo CSQL Server $SRVPID is being killed + kill -2 $SRVPID + sleep 1 + kill -9 $SRVPID + ipcrm -M 2222 -M 3333 -M 1947 + fi + + echo "csqlserver killed PID=${SERVER_PID}" >>$TEST_LOG + rm $DBFILE/* + sleep 1 + $CSQL_INSTALL_ROOT/bin/csqlserver >${SERVOUT} & + SERVER_PID=$! + echo "csqlserver restarted with PID=${SERVER_PID}" >>$TEST_LOG + sleep 5 +} + +killcsqlsqlserver() { + #return; + while true + do + SQLPID=`ps -ef | grep csqlsqlserver|grep -v "grep" |tail -1| awk -F" " '{ print $2 }'` + if [ "$SQLPID" != "" ] + then + echo SQL Server $SQLPID is being killed + kill -2 $SQLPID + sleep 1 + else break; + fi + done + #kill checkpoint setver + while true + do + CHKPTPID=`ps -ef | grep csqlcheckpointserver |grep -v "grep" |tail -1| awk -F" " '{ print $2 }'` + if [ "$CHKPTPID" != "" ] + then + echo Checkpoint server $CHKPTPID is being killed + kill -2 $CHKPTPID + sleep 1 + else break; + fi + done +} + +##################### Test Executor main starts here ################## +echo MY pid is $$ +SHELL=/bin/sh +#TEST_RUN_DIR should be set before running this +if [ ! "$TEST_RUN_ROOT" ] +then + echo "TEST_RUN_ROOT should be set before running the tests" + exit 1 +fi +if [ ! "$CSQL_INSTALL_ROOT" ] +then + echo "CSQL_INSTALL_ROOT should be set before running the tests" + exit 1 +fi + +if [ ! "$CSQL_CONFIG_FILE" ] +then + echo "setupenv.ksh should be run before running the tests" + exit 1 +fi +DBFILE=/tmp/csql/db +CACHECONFFILE=`grep TABLE_CONFIG_FILE $CSQL_CONFIG_FILE| awk -F= '{ print $2}'` +rm $DBFILE/* +rm $CACHECONFFILE +touch $CACHECONFFILE +echo $DBFILE +ROOT_DIR=`pwd` +mkdir -p $TEST_RUN_ROOT +SERVOUT=$TEST_RUN_ROOT/serv.out +touch $SERVOUT + +export CSQL_CONFIG_FILE=csql.conf +$CSQL_INSTALL_ROOT/bin/csqlserver >${SERVOUT} & +SERVER_PID=$! +echo "Starting Server" +sleep 5 +while read MODULE +do + echo $MODULE | grep "#" >/dev/null + if [ $? -eq 0 ] + then + continue + fi + echo "MODULE READ is $MODULE" + +TEST_SCRIPT_DIR=${ROOT_DIR}/${MODULE} +TEST_RUN_DIR=${TEST_RUN_ROOT}/${MODULE} +if [ -s "$TEST_RUN_DIR" ] +then + echo "TEST_RUN_ROOT directory is not empty. Clean and try again." + exit 1 +fi +mkdir -p $TEST_RUN_DIR + +# TODO::check whether server is running + +TEST_LOG=$TEST_RUN_DIR/testlog + +if [ -s "$TEST_LOG" ] +then + echo "TEST_RUN_DIR has files in it. Remove before running the tests" + exit 1 +fi + +TEST_EXEC_DIR=$TEST_RUN_DIR/tests +mkdir $TEST_EXEC_DIR + + +echo "Test Executor log file" >$TEST_LOG +echo "----------------------" >>$TEST_LOG + +TestList=`ls ${TEST_SCRIPT_DIR}/test*` +for test in $TestList +do +if [ "$MODULE" = "system/lock" -o "$MODULE" = "system/trans" -o "$MODULE" = "system/Allocator" ] +then + restart_csqlserver +fi +echo "Running $test" +echo "Running $test" >>$TEST_LOG +echo "Test started at : `date` " +echo "Test started at : `date` " >>$TEST_LOG + +expPresent="no" +EXPECTED_FILE=exp.`basename ${test}` +ARCH=`uname -m` +EXP_FILE=$EXPECTED_FILE +if [ "$ARCH" = "x86_64" ] +then + EXP_FILE=$EXPECTED_FILE.$ARCH +fi + +if [ -s "${TEST_SCRIPT_DIR}/${EXP_FILE}" ] +then + expPresent="yes" +fi + +if [ "$expPresent" = "no" ] +then + if [ -s "${TEST_SCRIPT_DIR}/${EXPECTED_FILE}" ] + then + expPresent="yes" + EXP_FILE=$EXPECTED_FILE + fi +fi +echo "EXP_FILE is $EXP_FILE" + + +HANG_FLAG=No +trap timeout_handler USR1 +sleep ${HANG_TIMEOUT} && kill -s USR1 $$ & +SLEEP_PID=$! + +if [ "$expPresent" = "yes" ] +then + cp ${TEST_SCRIPT_DIR}/${EXP_FILE} ${TEST_EXEC_DIR} + ${test} > ${TEST_EXEC_DIR}/cur.${EXP_FILE} 2>/dev/null & +else + ${test} >> ${TEST_LOG} 2>/dev/null & +fi +CMD_PID=$! +wait ${CMD_PID} 2>/dev/null +ret=$? +echo "Test Ended at : `date` " +echo "Test Ended at : `date` " >>$TEST_LOG +unset CMD_PID +trap "" USR1 +kill -9 ${SLEEP_PID} 2>/dev/null + +if [ "$HANG_FLAG" = "Yes" ] +then + echo "Test Hung. so it is killed." >>$TEST_LOG + echo "FAILED:Test $test failed" >>$TEST_LOG + #TODO::Reinitalize the database, as it may be in corrupted state. + CURTIME=`date +%s` + mv ${SERVOUT} ${SERVOUT}.${SERVER_PID}.${CURTIME} + restart_csqlserver + continue +fi + +HANG_FLAG=No + +if [ $ret -eq 0 ] +then + if [ "$expPresent" = "yes" ] + then + #compare exp and current output + diff ${TEST_SCRIPT_DIR}/${EXP_FILE} ${TEST_EXEC_DIR}/cur.${EXP_FILE} > ${TEST_EXEC_DIR}/diff.${EXP_FILE} + if [ $? -eq 0 ] + then + + echo "Exp and current output matched." + echo "Test $test passed" + echo "Exp and current output matched." >>$TEST_LOG + echo "PASSED:Test $test passed" >>$TEST_LOG + rm ${TEST_EXEC_DIR}/cur.${EXP_FILE} + rm ${TEST_EXEC_DIR}/diff.${EXP_FILE} + rm ${TEST_EXEC_DIR}/${EXP_FILE} + else + echo "Exp and current output not matched." + echo "Test $test failed" + echo "Exp and current output not matched." >>${TEST_LOG} + echo "FAILED:Test $test failed" >>$TEST_LOG + #TODO::Reinitalize the database, as it may be in corrupted state. + CURTIME=`date +%s` + mv ${SERVOUT} ${SERVOUT}.${SERVER_PID}.${CURTIME} + echo "Refer ${SERVOUT}.${SERVER_PID}.${CURTIME} file for server log" >>$TEST_LOG + restart_csqlserver + fi + else + echo "Returned 0." + echo "Test $test passed" + echo "Returned 0." >>$TEST_LOG + echo "PASSED:Test $test passed" >>$TEST_LOG + fi + +else + echo "Returned $ret " + echo "Test $test failed" + echo "Returned $ret " >>$TEST_LOG + echo "FAILED:Test $test failed" >>$TEST_LOG + #TODO::Reinitalize the database, as it may be in corrupted state. + CURTIME=`date +%s` + mv ${SERVOUT} ${SERVOUT}.${SERVER_PID}.${CURTIME} + echo "Refer ${SERVOUT}.${SERVER_PID}.${CURTIME} file for server log" >>$TEST_LOG + restart_csqlserver +fi + +done +done < TestModules +#kill -9 `ps -e | grep csqlsqlserver | gawk -F" " '{ print $1 }'` +killcsqlsqlserver +kill -9 ${SERVER_PID} +ipcrm -M 2222 -M 3333 -M 1947 +echo "csqlserver killed PID=${SERVER_PID}" >>${TEST_LOG} +rm $DBFILE/* + +exit 0 +#--------------------------------------------------------------------- +#function definitions +dummy_restart_csqlserver() { + echo "Restarting the server" + killcsqlsqlserver + kill -9 ${SERVER_PID} + ipcrm -M 2222 -M 3333 -M 1947 + echo "csqlserver killed PID=${SERVER_PID}" >>$TEST_LOG + rm $DBFILE/* + $CSQL_INSTALL_ROOT/bin/csqlserver >${SERVOUT} & + SERVER_PID=$! + echo "csqlserver restarted with PID=${SERVER_PID}" >>$TEST_LOG + echo "Restarting Server" + sleep 5 +} + diff --git a/test/genReport.ksh b/test/genReport.ksh new file mode 100755 index 00000000..946107bb --- /dev/null +++ b/test/genReport.ksh @@ -0,0 +1,50 @@ +#!/bin/ksh +##################Test Report Generator main starts here############## +FILE=TestModules +#FILE=CacheTestModules +if [ $1 = "Cache" ] +then + FILE=CacheTestModules +fi + +#TEST_RUN_DIR should be set before running this +if [ ! "$TEST_RUN_ROOT" ] +then + echo "TEST_RUN_ROOT should be set before running the tests" + exit 1 +fi +#if [ -s "$TEST_RUN_ROOT" ] +#then +# echo "TEST_RUN_ROOT directory does not exist. Create it and try again." +# exit 1 +#fi +ROOT_DIR=`pwd` +TOTALPASSED=0 +TOTALFAILED=0 +echo "====================================================================" +echo " MODULE TESTPASSED TESTFAILED " +echo "====================================================================" +while read MODULE +do + echo $MODULE | grep "#" >/dev/null 2>/dev/null + if [ $? -eq 0 ] + then + continue + fi + TEST_RUN_DIR=${TEST_RUN_ROOT}/${MODULE} + TEST_LOG=$TEST_RUN_DIR/testlog + TESTPASSED=`grep PASSED $TEST_LOG 2>/dev/null | wc -l ` + TESTFAILED=`grep FAILED $TEST_LOG 2>/dev/null | wc -l ` + printf "%25s\t\t %5d\t\t %5d\t\t\n" $MODULE $TESTPASSED $TESTFAILED + (( TOTALPASSED = TOTALPASSED + TESTPASSED )) + (( TOTALFAILED = TOTALFAILED + TESTFAILED )) + +done < $FILE + +TOTSTRING=TOTAL +echo "====================================================================" +printf "%25s\t\t %5d\t\t %5d\t\t\n" $TOTSTRING $TOTALPASSED $TOTALFAILED +echo "====================================================================" +(( TOTALEXECUTED= TOTALPASSED + TOTALFAILED )) +echo "TOTAL Executed: $TOTALEXECUTED" +exit 0 diff --git a/test/setMultiDsn.ksh b/test/setMultiDsn.ksh new file mode 100755 index 00000000..98646766 --- /dev/null +++ b/test/setMultiDsn.ksh @@ -0,0 +1,36 @@ +export MYSQL_DSN=myodbc3 +export MYSQL_TDB=mysql +export MYSQL_USER=root +export MYSQL_PASSWORD= + +export POSTGRES_DSN= +export POSTGRES_TDB= +export POSTGRES_USER= +export POSTGRES_PASSWORD= + +export DB2_DSN= +export DB2_TDB= +export DB2_USER= +export DB2_PASSWORD= + +export ORACLE_DSN= +export ORACLE_TDB= +export ORACLE_USER= +export ORACLE_PASSWORD= + +export SYBASE_DSN= +export SYBASE_TDB= +export SYBASE_USER= +export SYBASE_PASSWORD= + +export DS1="$MYSQL_DSN $MYSQL_USER $MYSQL_PASSWORD" +export DS2="$POSTGRES_DSN $POSTGRES_USER $POSTGRES_PASSWORD" +export DS3="$DB2_DSN $DB2_USER $DB2_PASSWORD" +export DS4="$ORACLE_DSN $ORACLE_USER $ORACLE_PASSWORD" + + + + + + + -- 2.11.4.GIT