Code

Opened 4 months ago

Closed 4 months 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

Description

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 manage.py 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 4 months ago.
stack

Download all attachments as: .zip

Change History (2)

Changed 4 months ago by shlomoa

stack

comment:1 Changed 4 months ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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 https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.