File "/home/scipy/venvs/99ddd7a7d38fb1b6bd5b14dda291143329a3a87e/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler raise errorclass, errorvalue DatabaseError: (1690, "BIGINT UNSIGNED value is out of range in '(((3 * `scipy2014`.`reviews_proposalresult`.`plus_one`) + `s cipy2014`.`reviews_proposalresult`.`plus_zero`) - (`scipy2014`.`reviews_proposalresult`.`minus_zero` + (3 * `scipy2014`.`revi ews_proposalresult`.`minus_one`)))'")
and jlaura has a nice hypothesis,
Is this an issue with utf8 support in the backend on those columns? Can the values be remapped to some otherint
value
to avoid this error? I would guess that the provided unicode is a mapping to a negative sign
('\xE2\x88\x921'
) which is causing the issue...maybe?
* commit 36e5005ee1a0c664404d85b01c2c4a72cef70a4c
| Author: David Wolever <da...@wolever.net>
| Date: Sun Jun 23 13:28:09 2013 -0400
|
| Damnit, MySQL...
|
| diff --git a/symposion/reviews/models.py b/symposion/reviews/models.py
| index 64d6db8..50744d5 100644
| --- a/symposion/reviews/models.py
| +++ b/symposion/reviews/models.py
| @@ -17,7 +17,7 @@ from symposion.schedule.models import Presentation
| class ProposalScoreExpression(object):
|
| def as_sql(self, qn, connection=None):
| - sql = "((3 * plus_one + plus_zero) - (minus_zero + 3 * minus_one))"
| + sql = "((3.0 * plus_one + plus_zero) - (minus_zero + 3.0 * minus_one))"
| return sql, []
|
| def prepare_database_save(self, unused):
|
I'm not entirely sure how this fixes Unicode issues…but I do remember that it was a WEIRD bug. ;)
--
You received this message because you are subscribed to the Google Groups "pinax-symposion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pinax-symposi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
sql = "((3 * plus_one + plus_zero) - (minus_zero + 3 * minus_one))"
--
You received this message because you are subscribed to a topic in the Google Groups "pinax-symposion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pinax-symposion/OJxw2vkzzX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pinax-symposi...@googlegroups.com.