Opened 5 years ago

Closed 5 years ago

#21589 closed Bug (invalid)

syncdb fails aparently in the createsuperuser stage

Reported by: shlomoa Owned by: nobody
Component: Database layer (models, ORM) Version: 1.6
Severity: Normal Keywords: field_cast_sql, syncdb, createsuperuser
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


This is pretty long a complicated, sorry

Tool Versions:
OS: Linux SuSE11
Python: 2.6.5
SQL server: 2008 R2
djanjo_pyodbc from lionheart (0.2.1)
pyodbc based on FreeTDS 0.82

Connection and permissions are okay,
%> python2.6.5 inspectdb
Worked, the output is messy but, I can handle it.

The error is:

return connection.ops.field_cast_sql(db_type, internal_type) % lhs

TypeError: field_cast_sql() takes exactly 2 arguments (3 given)

Stack trace is attached, as a newbie to django I am not familiar enough with the DB modelsts to make a call (debug efficiently)
Attached is a stack trace.

Attachments (1)

fail.log (4.2 KB) - added by shlomoa 5 years ago.

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by shlomoa

Attachment: fail.log added


comment:1 Changed 5 years ago by Tim Graham

Resolution: invalid
Status: newclosed

This seems like it's probably an issue between the version of Django you are using and django_pyodbc. This ticket tracker isn't appropriate for getting help with these types of issues. Please see

Note: See TracTickets for help on using tickets.
Back to Top