waliwali / ibm-db

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

django adapter: To add to operations.DatabaseOperations method tablespace_sql #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
operations.DatabaseOperations method tablespace_sql which django uses
is currently supported only by oracle adapter. This method can be easily
implemented for db2 too. 

There are some settings in model which define this property for table
(db_tablespace?). 

Example of implementation:

def tablespace_sql(self, tablespace, inline=False):
    return "IN %s" % self.quote_name(tablespace)

btw. other issue which is related to tablespace is that in oracle adapter
they use temporary tablespace when creating and destroying test database.
Maybe similar thing can be done in db2 (or to use temp tables?)

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

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. Keeping this as a little lower priority, I would 
surely 
investigate this and update you for the same. 

However, we really appreciate your feedback. If you wish to actively 
participate, 
then we can accept you as a contributor wherein you can directly send us 
patches and 
we can regress it and push it through into releases. You can go through the link
http://code.google.com/p/ibm-db/wiki/Contributions and if it is okay for you 
then we 
can accept you as an ongoing contributor for the IBM_DB project.

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:03

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
The patch in attachment should do the job. Haven't runned tests against, tested 
only
manually on several cases.

Original comment by trebor74hr@gmail.com on 7 Jan 2010 at 1:07

Attachments:

GoogleCodeExporter commented 9 years ago
patch - for create tables - tablespace information, for column index - no 
tablespace,
for indexes - no tablespace information

Original comment by trebor74hr@gmail.com on 8 Jan 2010 at 11:41

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch. I would review it and then would include this in our 
future
release.

Original comment by rahul.pr...@in.ibm.com on 11 Jan 2010 at 6:23

GoogleCodeExporter commented 9 years ago
tablespace_sql have been added in ibm_db_django-0.2.0

Original comment by rahul.pr...@in.ibm.com on 27 Mar 2010 at 8:47