Open danmarsden opened 6 years ago
Mysql "IF" in select.
https://github.com/vfremaux/moodle-local_shop/blob/master/classes/Catalog.class.php#L686
this one will probably fail in other db types due to missing clauses in the group by statement: https://github.com/vfremaux/moodle-local_shop/blob/master/classes/Customer.class.php#L121
IF removed and replaced by CASE WHEN ... THEN .... ELSE .... END syntax
GROUP_CONCAT, REGEXP mysql specific functions - it would be a good idea for you to test this on postgres to see what other sql needs to be fixed.