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.
This commit is contained in:
Dimitri Fontaine 2016-03-26 20:23:12 +01:00
parent 7b33b9c853
commit 3d061a5f88

View File

@ -496,7 +496,7 @@
(format nil "~s::text" name) (format nil "~s::text" name)
(format nil "~s" name)))) (format nil "~s" name))))
(sql (format nil (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 cols
tname tname
cols cols