Daer All,

I am trying to run DJango 1.8 test cases .

I am getting several IntegrityError  error  on AUTH_USER table .


SQL generated by test case

INSERT INTO "AUTH_USER" ("PASSWORD", "LAST_LOGIN", "IS_SUPERUSER", 
"USERNAME", "FIRST_NAME", "LAST_NAME", "EMAIL", "IS_STAFF", "IS_ACTIVE", 
"DATE_JOINED") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)

Values it tries to insert 

(None, None, True, u'superuser', None, None, None, False, True, 
u'2015-09-17 12:31:09.562000')

Error 
ibm_db_dbi::IntegrityError: Statement Execute Failed: [IBM][CLI 
Driver][DB2/NT] SQL0407N  Assignment of a NULL value to a NOT NULL column 
"TBSPACEID=2, TABLEID=24, COLNO=1" is not allowed.  SQLSTATE=23502\r 
SQLCODE=-407

In the table only LAST_LOGIN is nullable field .
But the sql generated tries to insert none to other fields .DB2 throw error 
because of this .

I think there is some problem in the sql generated .
I am getting several same  errors on this table .

Can someone comment please .

Thanks
Jose



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8e21f914-52c9-419d-8646-678d8aef96e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to