kapilratnani / django_hana

[Discontinued] Django db backend for SAP HANA
BSD 3-Clause "New" or "Revised" License
20 stars 13 forks source link

Transaction commit maually #11

Closed alexgv closed 11 years ago

alexgv commented 11 years ago

Transaction do not roll back when issuing a save or update when using the django decorator @transaction.commit_manually(using="db") pretty sure it jus stays in auto commit mode.

@kapilratnani

kapilratnani commented 11 years ago

I think it is fixed now and yes it stayed in autocommit mode.

alexgv commented 11 years ago

any request to the database now produces the following error. @kapilratnani

'NoneType' object has no attribute 'setautocommit' Request Method: GET Request URL: http://10.0.4.20:8000/api/enterprisemanager/config/ Django Version: 1.4.5 Exception Type: AttributeError Exception Value:
'NoneType' object has no attribute 'setautocommit' Exception Location: /usr/local/lib/python2.7/site-packages/django_hana/base.py in _enter_transaction_management, line 235 Python Executable: /usr/local/bin/python2.7 Python Version: 2.7.3

kapilratnani commented 11 years ago

i've patched the issue. Pleas check.

alexgv commented 11 years ago

Looks like its working. Thanks.