iheanyi / ibm-db

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

Broken code in base.py #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Call `is_usable` on the Databasewrapper with `djangoVersion[0:2] >= (1, 6)`.

What is the expected output? What do you see instead?

A NameError is raised, because `connection` is undefined in 
ibm_db_django/base.py:240
Should probably be `self.connection`.

No error should be raised.

What version of the product are you using? On what operating system?

I am using 

ibm-db-django==1.0.6
ibm-db==2.0.5
Django==1.6.4

with python 2.7 on ubuntu saucy.

Original issue reported on code.google.com by gwskoepp...@gmail.com on 13 May 2014 at 2:14

GoogleCodeExporter commented 9 years ago
thanks for reporting this bug. yes, it should be self.connection.
I have committed the changes to the google code git branch.

Original comment by rahul.pr...@in.ibm.com on 15 May 2014 at 7:14

GoogleCodeExporter commented 9 years ago
Either you can edit the base.py directly and replace connection by 
self.connection or you can download the modified source code from 
code.google.com/p/ibm-db/source/browse/#git/IBM_DB/ibm_db_django and install it 
fresh.

Original comment by rahul.pr...@in.ibm.com on 15 May 2014 at 7:22

GoogleCodeExporter commented 9 years ago
Thank you very much for the quick response and action!

Original comment by gwskoepp...@gmail.com on 16 May 2014 at 8:55