Changeset: a0377a71ba6d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a0377a71ba6d
Branch: nested
Log Message:

merge default


diffs (31 lines):

diff --git a/testing/sqllogictest.py b/testing/sqllogictest.py
--- a/testing/sqllogictest.py
+++ b/testing/sqllogictest.py
@@ -295,6 +295,13 @@ class SQLLogic:
                 self.crs.execute(f'drop user "{dq(row[0])}"')
             except pymonetdb.Error:
                 pass
+        # drop custom types created in test
+        self.crs.execute("select sqlname from sys.types where systemname is 
null order by id")
+        for row in self.crs.fetchall():
+            try:
+                self.crs.execute('drop type "{}"'.format(row[0]))
+            except pymonetdb.Error:
+                pass
 
     def exec_statement(self, statement, expectok,
                        err_stmt=None,
diff --git a/testing/sqltest.py b/testing/sqltest.py
--- a/testing/sqltest.py
+++ b/testing/sqltest.py
@@ -739,5 +739,10 @@ class SQLTestCase():
                 for row in crs.fetchall():
                     crs.execute('drop user "{}"'.format(row[0]))
 
+                # drop custom types created in test
+                crs.execute("select sqlname from sys.types where systemname is 
null order by id")
+                for row in crs.fetchall():
+                    crs.execute('drop type "{}"'.format(row[0]))
+
         except (pymonetdb.Error, ValueError) as e:
             pass
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to