MartinThoma / write-math

On-line recognition of mathematical formulae
MIT License
46 stars 5 forks source link

Delete partial answer leads to Fatal Error #45

Closed MartinThoma closed 9 years ago

MartinThoma commented 9 years ago

See http://www.martin-thoma.de/write-math/view/?raw_data_id=327279&delete_partial_answer=26382


Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[22003]: Numeric value out of range: 1690 BIGINT UNSIGNED value is out of range in '(`20080912003-1`.`wm_raw_draw_data`.`user_answers_count` + -(1))'' in /opt/users/www/mart1095web57/html/write-math/api/api.functions.php:61 Stack trace: #0 /opt/users/www/mart1095web57/html/write-math/api/api.functions.php(61): PDOStatement->execute() #1 /opt/users/www/mart1095web57/html/write-math/view/index.php(269): adjust_user_answer_count('26382', -1) #2 {main} thrown in /opt/users/www/mart1095web57/html/write-math/api/api.functions.php on line 61