waliwali / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

django adapter: To simplify implementation of creation.sql_create_model #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
creation.sql_create_model implementation looks very complex. Declaration:

    # As DB2 does not allow to insert NULL value in UNIQUE col, hence
modifing model.
    def sql_create_model(self, model, style, known_models=set()):

Didn't investigated too much, but it sounds to me that much smaller
adaptation on the django side of creation.sql_create could solve this much
simplier. If this is the case, then probably
django.db.backends.DatabaseFeatures needs new boolean setting for
activating this.

Original issue reported on code.google.com by trebor74hr@gmail.com on 26 Jun 2009 at 9:15

GoogleCodeExporter commented 9 years ago
Thanks for the code feedback. Would take this up and see if simplification can 
be done. 
Marking this as a lower priority for now.

Thanks and Regards
Tarun Pasrija
Open Source Application Development
IBM India Software Labs

Original comment by tarun.pa...@in.ibm.com on 1 Jul 2009 at 9:09

GoogleCodeExporter commented 9 years ago

Original comment by tarun.pa...@in.ibm.com on 1 Jul 2009 at 9:10

GoogleCodeExporter commented 9 years ago

Original comment by rahul.pr...@in.ibm.com on 12 Nov 2009 at 12:02