I'm not actually sure in how far this works other than that it compiles cleanly.
Also note that Minetest will need lots of changes where
#ifdef __ANDROID__ appears to include the rpi too.
one patch is for Irrlicht (ogl-es)
other is for Minetest
|CREATE PROCEDURE `ilbot_log_line2`(IN p_time TIMESTAMP, IN p_channel VARCHAR(30), IN p_nick VARCHAR(40), IN p_line mediumtext)|
|SQL SECURITY INVOKER|
|COMMENT 'Log a line from IRC with custom timestamp'|
|DECLARE channel_id, day_id INT(11);|
|DECLARE today CHAR(10);|