SELECT CASE doesn't work during CREATE TABLE (4.0.2 current)

2002-04-25 Thread dbutler
: Unknown. (Use the SELECT CASE code that's current in the 3.23 branch?) >Submitter-Id: >Originator: Daniel Butler >Organization: Yup Dot Com >MySQL support: none >Synopsis: SELECT CASE doesn't work during CREATE TABLE in 4.0.2 >Severity: critical >

RE: SELECT CASE doesn't work?

2001-06-29 Thread Don Read
On 29-Jun-01 Sönke Tesch wrote: > Hi! > > The CASE statement doesn't seem to work, even the three examples given in > the > docs (7.4.8 Control Flow Functions) return errors: > > mysql> select case 1 when 1 then "one" when 2 then "two" else "more" end; > ERROR 1064: You have an error in your SQ

SELECT CASE doesn't work?

2001-06-29 Thread Sönke Tesch
Hi! The CASE statement doesn't seem to work, even the three examples given in the docs (7.4.8 Control Flow Functions) return errors: mysql> select case 1 when 1 then "one" when 2 then "two" else "more" end; ERROR 1064: You have an error in your SQL syntax near '1 when 1 then "one" when 2 then "t