mariuz / django-firebird-1.4

django-firebird 1.4.x exported from code.google.com/p/django-firebird
0 stars 0 forks source link

Error runnning query with SafeUnicode param #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From Gregor Ibic email

When I try to use Django and Firebird with some project (Prometeo ERP) I get 
this error when I invoke the home page:

Django version 1.3.1, using settings 'prometeo.settings'
Development server is running at http://0.0.0.0:81/
Quit the server with CONTROL-C.
[22/Jan/2012 10:28:05] "GET / HTTP/1.1" 302 0
[22/Jan/2012 10:28:05] "GET /users/login?next=/ HTTP/1.1" 301 0
python2: _kiconversion_to_db.c:822: 
_PyObject2XSQLVAR_check_range_SQL_CHARACTER: Assertion 
`((((PyObject*)(py_s))->ob_type) == &PyString_Type)' failed. 

---

The problem is with execute method when a param is type of SafeUnicode

Original issue reported on code.google.com by maxirobaina on 17 Feb 2012 at 8:53

GoogleCodeExporter commented 9 years ago
Same problem running django tests suite:

test_safestr (regressiontests.i18n.tests.TestModels) ... python: 
_kiconversion_to_db.c:822: _PyObject2XSQLVAR_check_range_SQL_CHARACTER: La 
declaración `((((PyObject*)(py_s))->ob_type) == &PyString_Type)' no se cumple.

Original comment by maxirobaina on 8 Sep 2012 at 2:32