@cached_property
    def supports_transactions(self):
        try:
            # Make sure to run inside a managed transaction block,
            # otherwise autocommit will cause the confimation to
            # fail.
            self.connection.enter_transaction_management()
            cursor = self.connection.cursor()
            cursor.execute('CREATE TABLE ROLLBACK_TEST (X INT)')
            self.connection.commit()
            cursor.execute('INSERT INTO ROLLBACK_TEST (X) VALUES (8)')
            self.connection.rollback()
            cursor.execute('SELECT COUNT(X) FROM ROLLBACK_TEST')
            count, = cursor.fetchone()
            cursor.execute('DROP TABLE ROLLBACK_TEST')
            self.connection.commit()
        finally:
            self.connection.leave_transaction_management()
        return count == 0
Creates a general comment on a review.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/backends/__init__.py/BaseDatabaseFeatures.supports_transactions--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/resources/review_general_comment.py/ReviewGeneralCommentResource.create