SERVER INFORMATION
- Server: Localhost via UNIX socket
- Server type: MariaDB
- Server version: 10.3.28-MariaDB - MariaDB Server
- Protocol version: 10
- Apache
- Database client version: libmysql - 5.5.45-37.4
- PHP extension: mysqli
Our Host updated our server overnite from MariaDB 10.2 to 10.3 and now all of our case statements with multiple when are not working–example
select isbn,( Greatest(COALESCE(Fprice, 0),COALESCE(Aprice, 0),
COALESCE(NSprice, 0), COALESCE(Nprice, 0), COALESCE(BWprice, 0), COALESCE(Sprice, 0),
COALESCE(BBprice, 0), COALESCE(MKGprice, 0))) as bestprice,
case Greatest(COALESCE(Fprice, 0),COALESCE(Aprice, 0),COALESCE(NSprice, 0),
COALESCE(Nprice, 0), COALESCE(BWprice, 0), COALESCE(BBprice, 0),
COALESCE(MKGprice, 0),
COALESCE(Sprice, 0))
WHEN Sprice THEN ‘T’
WHEN Fprice THEN ‘a’
WHEN Aprice THEN ‘at’
WHEN Nprice THEN ‘na’
WHEN MKGprice THEN ‘Me’
WHEN BWPrice THEN ‘Br’
WHEN NSprice THEN ‘Ns’
WHEN BBPrice THEN ‘be’
END as bestguide from masterguide25Final
the only When that returns a result is the WHEN Sprice THEN ‘T’ so if the max is Sprice it returns T but if any other value is max it returns null–our entire system is down so any help would be really appreciated