Split test for clarity
Peter Rabbitson [Sat, 28 Mar 2009 02:01:03 +0000 (02:01 +0000)]
t/02where.t

index 6368a1c..c875047 100755 (executable)
@@ -170,10 +170,17 @@ my @handle_tests = (
 
     {
         where => {
-            id  => [],
             bar => {'!=' => []},
         },
-        stmt => " WHERE ( 1=1 AND 0=1 )",
+        stmt => " WHERE ( 1=1 )",
+        bind => [],
+    },
+
+    {
+        where => {
+            id  => [],
+        },
+        stmt => " WHERE ( 0=1 )",
         bind => [],
     },