From 3d061a5f8889d13e98ccbf5876bb998c3876d440 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Sat, 26 Mar 2016 20:23:12 +0100 Subject: [PATCH] Improve regression tests to detect more errors. By changing the order of the relations in the EXCEPT query, we can now detect when the target table is loaded empty. --- src/main.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.lisp b/src/main.lisp index c20477e..22bc7fa 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -496,7 +496,7 @@ (format nil "~s::text" name) (format nil "~s" name)))) (sql (format nil - "select count(*) from (select ~{~a~^, ~} from ~a except select ~{~a~^, ~} from expected.~a) ss" + "select count(*) from (select ~{~a~^, ~} from expected.~a except select ~{~a~^, ~} from ~a) ss" cols tname cols