Changeset: 15833a2a237e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/15833a2a237e
Modified Files:
        testing/sqllogictest.py
        testing/sqltest.py
Branch: nested
Log Message:

Fix automatic drop type call order


diffs (24 lines):

diff --git a/testing/sqllogictest.py b/testing/sqllogictest.py
--- a/testing/sqllogictest.py
+++ b/testing/sqllogictest.py
@@ -296,7 +296,7 @@ class SQLLogic:
             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")
+        self.crs.execute("select sqlname from sys.types where systemname is 
null order by id desc")
         for row in self.crs.fetchall():
             try:
                 self.crs.execute('drop type "{}"'.format(row[0]))
diff --git a/testing/sqltest.py b/testing/sqltest.py
--- a/testing/sqltest.py
+++ b/testing/sqltest.py
@@ -740,7 +740,7 @@ class SQLTestCase():
                     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")
+                crs.execute("select sqlname from sys.types where systemname is 
null order by id desc")
                 for row in crs.fetchall():
                     crs.execute('drop type "{}"'.format(row[0]))
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to