How to avoid ROLLBACK statement in Raw SQL in flask-sqlalchemy
<p>I am trying to send NOTIFY in postgresql through sqlalchemy. Here is the part of code:</p>

<pre><code>from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
db.engine.execute("NOTIFY DHCP")
</code></pre>

<p>Which generates the following SQL code:</p>

<pre><code>2016-11-29 14:58:41 +05 [20571-16] postgres@server LOG:  statement: BEGIN
2016-11-29 14:58:41 +05 [20571-17] postgres@server LOG:  statement: NOTIFY DHCP
2016-11-29 14:58:41 +05 [20571-18] postgres@server LOG:  statement: ROLLBACK
</code></pre>

<p>Why do i have ROLLBACK statement in the code and how to change to COMMIT one?</p>