WilliamRen / django-pyodbc

Automatically exported from code.google.com/p/django-pyodbc
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

extra where and extra params causes issues with the django trunk #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use django-pyodbc with revision of Django after 12502
2. Issue a query with a where clause

What is the expected output? What do you see instead?
Instead of the query executing, you see:
AttributeError: 'Query' object has no attribute 'extra_where'
or
AttributeError: 'Query' object has no attribute 'extra_params'

What version of the product are you using? On what operating system?
I am using the latest trunk (177) on Ubuntu connecting to sql server 2008.

Basically, in Django revision 12502
(http://code.djangoproject.com/changeset/12502) they removed the extra
params and where clause from django.db.models.sql.query.py.

I attached a fix.

Original issue reported on code.google.com by djfis...@gmail.com on 4 Mar 2010 at 1:00

Attachments:

GoogleCodeExporter commented 8 years ago
I should mention that the fix is not thoroughly tested.

Original comment by djfis...@gmail.com on 4 Mar 2010 at 1:09

GoogleCodeExporter commented 8 years ago
Worked like a charm for me. Thanks!

Original comment by glen.som...@gmail.com on 10 Mar 2010 at 7:24

GoogleCodeExporter commented 8 years ago
It's working for me! Thank you.

Original comment by reconbot on 18 Mar 2010 at 1:43

GoogleCodeExporter commented 8 years ago
It's working for me too! Thank you.

Original comment by xiehaife...@gmail.com on 26 Apr 2010 at 2:47

GoogleCodeExporter commented 8 years ago
Fixed in revision 179, thanks.

Original comment by vcc.ch...@gmail.com on 30 Apr 2010 at 5:09