~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/bool.test

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-21 01:02:23 UTC
  • mto: (960.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 961.
  • Revision ID: osullivan.padraig@gmail.com-20090321010223-j8cph7eeyt1u3xol
Fixed function object to ensure it correctly returns a boolean type since
memcmp returns an integer. Added some more comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
SELECT * FROM t1 where (1 AND a)=1;
21
21
SELECT * FROM t1 where (1 AND a) IS NULL;
22
22
 
23
 
# WL#638 - Behaviour of NOT does not follow SQL specification
24
 
set sql_mode='high_not_precedence';
25
 
select * from t1 where not a between 2 and 3;
26
 
set sql_mode=default;
27
 
select * from t1 where not a between 2 and 3;
28
 
 
29
23
# SQL boolean tests
30
24
select a, a is false, a is true, a is unknown from t1;
31
25
select a, a is not false, a is not true, a is not unknown from t1;