Hi Simon,
I am working on this support .
But the test case generates sql with null values for non null fields.
We cannot change the model ,because this is part of python ,i believe.
The problem might be the schema generated for the table from the model .
I can see only one field as non null in DB2.
Is this different from other database?.
Thanks,
Jose
On Monday, September 21, 2015 at 8:37:51 PM UTC+5:30, Simon Charette wrote:
-- I am working on this support .
But the test case generates sql with null values for non null fields.
We cannot change the model ,because this is part of python ,i believe.
The problem might be the schema generated for the table from the model .
I can see only one field as non null in DB2.
Is this different from other database?.
Thanks,
Jose
On Monday, September 21, 2015 at 8:37:51 PM UTC+5:30, Simon Charette wrote:
Hi Jose,
I looks like ibm_db_django doesn't support Django 1.6+ yet.
Simon
Le lundi 21 septembre 2015 07:14:39 UTC-4, Jose Paul a écrit :I am trying to run DJango 1.8 test cases with DB2Several insert statement failsHere is the insert command 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)Value : (None, None, True, u'superuser', None, None, None, False, True, u'2015-09-17 12:31:09.562000')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=-407Except last_login none of the field are nullable .But still DJango testcase generate insert statement as above and pass None as value which fails .Why this happens ?.Why correct non null values are not generated for non null field .Please help .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+unsubscribe@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/0a3e908b-13ee-43f0-a7d5-57769472c6fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment