#14019: SQLInsertCompiler.as_sql() failure
---------------------------------------------------+------------------------
          Reporter:  mlavin                        |         Owner:  nobody
            Status:  new                           |     Milestone:        
         Component:  Database layer (models, ORM)  |       Version:  1.2   
        Resolution:                                |      Keywords:        
             Stage:  Unreviewed                    |     Has_patch:  1     
        Needs_docs:  0                             |   Needs_tests:  0     
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by mlavin):

 I don't have a simple example using the public API yet. The scenario that
 brought me to this issue was I have a set of unmanaged models (from a
 legacy database). An app was built to create these models but was
 violating a table constraint. When the insert failed the exception was
 caught and django-db-log tried to print out the failing SQL statement.
 Calling `Query.__str__` called `SQLInsertCompiler.as_sql` which failed
 because `return_id` was never set.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14019#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to