Created
January 7, 2014 20:08
-
-
Save gcavalcante8808/8306004 to your computer and use it in GitHub Desktop.
Django-PyODBC error with django 1.6.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in get_response | |
response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/contrib/admin/options.py", line 432, in wrapper | |
return self.admin_site.admin_view(view)(*args, **kwargs) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/utils/decorators.py", line 99, in _wrapped_view | |
response = view_func(request, *args, **kwargs) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/views/decorators/cache.py", line 52, in _wrapped_view_func | |
response = view_func(request, *args, **kwargs) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 198, in inner | |
return view(request, *args, **kwargs) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/utils/decorators.py", line 29, in _wrapper | |
return bound_func(*args, **kwargs) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/utils/decorators.py", line 99, in _wrapped_view | |
response = view_func(request, *args, **kwargs) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/utils/decorators.py", line 25, in bound_func | |
return func(self, *args2, **kwargs2) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1306, in changelist_view | |
self) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/contrib/admin/views/main.py", line 106, in __init__ | |
self.get_results(request) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/contrib/admin/views/main.py", line 220, in get_results | |
result_count = paginator.count | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/core/paginator.py", line 77, in _get_count | |
self._count = len(self.object_list) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/query.py", line 77, in __len__ | |
self._fetch_all() | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/query.py", line 854, in _fetch_all | |
self._result_cache = list(self.iterator()) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/query.py", line 220, in iterator | |
for row in compiler.results_iter(): | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 710, in results_iter | |
for rows in self.execute_sql(MULTI): | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 771, in execute_sql | |
sql, params = self.as_sql() | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django_pyodbc/compiler.py", line 211, in as_sql | |
with_col_aliases=with_col_aliases) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 93, in as_sql | |
where, w_params = self.query.where.as_sql(qn=qn, connection=self.connection) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/sql/where.py", line 103, in as_sql | |
sql, params = child.as_sql(qn=qn, connection=connection) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/sql/where.py", line 106, in as_sql | |
sql, params = self.make_atom(child, qn, connection) | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/sql/where.py", line 192, in make_atom | |
field_sql, field_params = self.sql_for_columns(lvalue, qn, connection, field_internal_type), [] | |
File "/home/RFOC/01388863189/dev/pyodbc_test/lib/python2.7/site-packages/django/db/models/sql/where.py", line 273, in sql_for_columns | |
return connection.ops.field_cast_sql(db_type, internal_type) % lhs | |
TypeError: field_cast_sql() takes exactly 2 arguments (3 given) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment