mariadb/mysql-test/r/case.result
unknown 495231ea25 New myisamchk option --sort-recover
Allow delete of crashed MyISAM tables
Fixed bug when BLOB was first part of key
Fixed bug when using result from CASE in GROUP BY
Fixed core-dump bug in monthname()
Optimized calling of check_db_name()


Docs/manual.texi:
  Added more information about myisamchk
client/mysqladmin.c:
  Added error message for CREATE database and fixed possible overflow bug
include/myisam.h:
  New myisamchk option --sort-recover
libmysql/libmysql.c:
  Removed commented code
  Don't define getpwuid (breaks on SCO 3.2)
myisam/mi_check.c:
  Fixed (new) bug when using --recover --optimize
myisam/mi_delete_table.c:
  Allow delete of crashed tables
myisam/mi_key.c:
  Fixed bug when BLOB was first part of key
myisam/myisamchk.c:
  New myisamchk option --sort-recover
mysql-test/r/case.result:
  New test cases to check for reported bugs
mysql-test/r/func_time.result:
  New test cases to check for reported bugs
mysql-test/r/type_blob.result:
  New test cases to check for reported bugs
mysql-test/r/type_datetime.result:
  New test cases to check for reported bugs
mysql-test/t/case.test:
  New test cases to check for reported bugs
mysql-test/t/func_time.test:
  New test cases to check for reported bugs
mysql-test/t/type_blob.test:
  New test cases to check for reported bugs
mysql-test/t/type_datetime.test:
  New test cases to check for reported bugs
mysys/my_bitmap.c:
  Optimize
sql-bench/limits/ms-sql.cfg:
  Updated limits
sql/item_cmpfunc.cc:
  Fixed bug when using result from CASE in GROUP BY
sql/item_cmpfunc.h:
  Fixed bug when using result from CASE in GROUP BY
sql/item_timefunc.cc:
  Fixed core-dump bug in monthname()
sql/sql_db.cc:
  Optimized calling of check_db_name()
sql/sql_parse.cc:
  Optimized calling of check_db_name()
sql/table.cc:
  Fixed typo
2001-01-31 04:47:25 +02:00

42 lines
1 KiB
Text

CASE "b" when "a" then 1 when "b" then 2 END
2
CASE "c" when "a" then 1 when "b" then 2 END
NULL
CASE "c" when "a" then 1 when "b" then 2 ELSE 3 END
3
CASE BINARY "b" when "a" then 1 when "B" then 2 WHEN "b" then "ok" END
ok
CASE "b" when "a" then 1 when binary "B" then 2 WHEN "b" then "ok" END
ok
CASE concat("a","b") when concat("ab","") then "a" when "b" then "b" end
a
CASE when 1=0 then "true" else "false" END
false
CASE 1 when 1 then "one" WHEN 2 then "two" ELSE "more" END
one
CASE 2.0 when 1 then "one" WHEN 2.0 then "two" ELSE "more" END
two
(CASE "two" when "one" then "1" WHEN "two" then "2" END) | 0
2
(CASE "two" when "one" then 1.00 WHEN "two" then 2.00 END) +0.0
2.00
case 1/0 when "a" then "true" else "false" END
false
case 1/0 when "a" then "true" END
NULL
(case 1/0 when "a" then "true" END) | 0
NULL
(case 1/0 when "a" then "true" END) + 0.0
NULL
case when 1>0 then "TRUE" else "FALSE" END
TRUE
case when 1<0 then "TRUE" else "FALSE" END
FALSE
fcase count(*)
0 2
2 1
3 1
fcase count(*)
nothing 2
one 1
two 1