~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_if.result

  • Committer: Jay Pipes
  • Date: 2009-02-28 17:49:22 UTC
  • mto: (910.2.6 mordred-noatomics)
  • mto: This revision was merged to the branch mainline in revision 908.
  • Revision ID: jpipes@serialcoder-20090228174922-jczgt4d0662fqmnf
Merging in old r902 temporal changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
select IF(0,"ERROR","this"),IF(1,"is","ERROR"),IF(NULL,"ERROR","a"),IF(1,2.0,3.0)+0 ;
3
3
IF(0,"ERROR","this")    IF(1,"is","ERROR")      IF(NULL,"ERROR","a")    IF(1,2.0,3.0)+0
4
4
this    is      a       2.0
5
 
CREATE TEMPORARY TABLE t1 (st varchar(255) NOT NULL, u int NOT NULL) ENGINE=MyISAM;
 
5
CREATE TABLE t1 (st varchar(255) NOT NULL, u int NOT NULL) ENGINE=MyISAM;
6
6
INSERT INTO t1 VALUES ('a',1),('A',1),('aa',1),('AA',1),('a',1),('aaa',0),('BBB',0);
7
7
select if(1,st,st) s from t1 order by s;
8
8
s