anchor.diff:          "d BOOLEAN NOT NULL, "
           "PRIMARY KEY  ((c,a,b), c,a,b,d))"),
       {ok, Q} = get_query(
  -          "SELECT * FROM tab1 WHERE a = 1000 AND b = 'bval' AND c = 3.5"),
  +          "SELECT * FROM tabab WHERE a = 1000 AND b = 'bval' AND c = 3.5"),
       {ok, [Select]} = compile(DDL, Q, 100),
       Key = 
           [{<<"c">>,double,3.5}, {<<"a">>,sint64,1000},{<<"b">>,varchar,<<"bval">>}],
  
positive.code:         compile(DDL, Q, 100)
      ).
  
  no_quantum_in_query_2_test() ->
      DDL = get_ddl(
          "CREATE TABLE tabab("
  
negative.code:         Select#riak_select_v1.'WHERE'
      ).
  
  
  no_quantum_in_query_3_test() ->
      DDL = get_ddl(
          "CREATE TABLE tababa("
          "a SINT64 NOT NULL, "
          "b VARCHAR NOT NULL, "
          "c DOUBLE NOT NULL, "
          "d BOOLEAN NOT NULL, "
          "PRIMARY KEY  ((c,a,b), c,a,b,d))"),
      {ok, Q} = get_query(
            "SELECT * FROM tababa WHERE a = 1000 AND b = 'bval' AND c = 3.5 AND d = true"),
      {ok, [Select]} = compile(DDL, Q, 100),
      Key =
          [{<<"c">>,double,3.5}, {<<"a">>,sint64,1000},{<<"b">>,varchar,<<"bval">>}],
      ?assertEqual(
          [{startkey, Key},
           {endkey, Key},
           {filter,{'=',{field,<<"d">>,boolean},{const, true}}},
           {end_inclusive,true}],
          Select#riak_select_v1.'WHERE'
      ).
  
  -endif.
  