Changeset: afb7301ca11b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/afb7301ca11b
Modified Files:
sql/test/testdb-upgrade-chain-hge/Tests/upgrade.py
sql/test/testdb-upgrade-chain/Tests/upgrade.py
sql/test/testdb-upgrade-hge/Tests/upgrade.py
sql/test/testdb-upgrade/Tests/upgrade.py
Branch: default
Log Message:
Drop all foreign language functions during upgrade.
Also add comment why we don't do this in all upgrade tests.
diffs (46 lines):
diff --git a/sql/test/testdb-upgrade-chain-hge/Tests/upgrade.py
b/sql/test/testdb-upgrade-chain-hge/Tests/upgrade.py
--- a/sql/test/testdb-upgrade-chain-hge/Tests/upgrade.py
+++ b/sql/test/testdb-upgrade-chain-hge/Tests/upgrade.py
@@ -42,7 +42,7 @@ with process.server(args=['--clean-BBP']
stdout=process.PIPE,
stderr=process.PIPE,
server=srv) as clt:
- cltout, clterr = clt.communicate('drop function if exists
testsschema.capi00;\ndrop function if exists testsschema.rapi01;\ndrop function
if exists testsschema.rapi02;\n')
+ cltout, clterr = clt.communicate('drop function if exists
testschema.pyapi01;\ndrop function if exists testschema.pyapi02;\ndrop function
if exists testschema.rapi01;\ndrop function if exists testschema.rapi02;\ndrop
function if exists testschema.capi00;\ndrop function if exists
testschema.pyapi10_mult;\ndrop aggregate if exists testschema.aggrmedian;\n')
srvout, srverr = srv.communicate()
srvout = [line for line in srvout.splitlines(keepends=True) if not
line.startswith('#')]
diff --git a/sql/test/testdb-upgrade-chain/Tests/upgrade.py
b/sql/test/testdb-upgrade-chain/Tests/upgrade.py
--- a/sql/test/testdb-upgrade-chain/Tests/upgrade.py
+++ b/sql/test/testdb-upgrade-chain/Tests/upgrade.py
@@ -42,7 +42,7 @@ with process.server(args=['--clean-BBP',
stdout=process.PIPE,
stderr=process.PIPE,
server=srv) as clt:
- cltout, clterr = clt.communicate('drop function if exists
testsschema.capi00;\ndrop function if exists testsschema.rapi01;\ndrop function
if exists testsschema.rapi02;\n')
+ cltout, clterr = clt.communicate('drop function if exists
testschema.pyapi01;\ndrop function if exists testschema.pyapi02;\ndrop function
if exists testschema.rapi01;\ndrop function if exists testschema.rapi02;\ndrop
function if exists testschema.capi00;\ndrop function if exists
testschema.pyapi10_mult;\ndrop aggregate if exists testschema.aggrmedian;\n')
srvout, srverr = srv.communicate()
srvout = [line for line in srvout.splitlines(keepends=True) if not
line.startswith('#')]
diff --git a/sql/test/testdb-upgrade-hge/Tests/upgrade.py
b/sql/test/testdb-upgrade-hge/Tests/upgrade.py
--- a/sql/test/testdb-upgrade-hge/Tests/upgrade.py
+++ b/sql/test/testdb-upgrade-hge/Tests/upgrade.py
@@ -41,6 +41,7 @@ with process.server(mapiport='0',
stdout=process.PIPE,
stderr=process.PIPE,
server=srv) as clt:
+ # don't drop foreign language functions since we want to test dump
cltout, clterr = clt.communicate('select count(*) from
testschema.smallstring;\n')
srvout, srverr = srv.communicate()
diff --git a/sql/test/testdb-upgrade/Tests/upgrade.py
b/sql/test/testdb-upgrade/Tests/upgrade.py
--- a/sql/test/testdb-upgrade/Tests/upgrade.py
+++ b/sql/test/testdb-upgrade/Tests/upgrade.py
@@ -42,6 +42,7 @@ with process.server(args=['--set', 'allo
stdout=process.PIPE,
stderr=process.PIPE,
server=srv) as clt:
+ # don't drop foreign language functions since we want to test dump
cltout, clterr = clt.communicate('select count(*) from
testschema.smallstring;\n')
srvout, srverr = srv.communicate()
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]