The quiz_assign query_helper uses in the query_quiz function the COALESCE function to handle divisions with 0.
This works fine in mariadb, but the database query throws an error in pgsql when the division with0 takes place.
During my work on the phpunit tests i encountered a problem with different handling of the daytimesavingoffset in pgsql and mariadb. By deafault pgsql interprets the offset right and mariadb works with it like UTC+0.
The quiz_assign query_helper uses in the query_quiz function the COALESCE function to handle divisions with 0.
This works fine in mariadb, but the database query throws an error in pgsql when the division with0 takes place.
During my work on the phpunit tests i encountered a problem with different handling of the daytimesavingoffset in pgsql and mariadb. By deafault pgsql interprets the offset right and mariadb works with it like UTC+0.