We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28cf578 commit af89531Copy full SHA for af89531
src/memos/graph_dbs/polardb.py
@@ -183,7 +183,10 @@ def _get_connection(self):
183
"""Get a connection from the pool."""
184
if self._pool_closed:
185
raise RuntimeError("Connection pool has been closed")
186
- return self.connection_pool.getconn()
+ conn = self.connection_pool.getconn()
187
+ # Set autocommit for PolarDB compatibility
188
+ conn.autocommit = True
189
+ return conn
190
191
def _return_connection(self, connection):
192
"""Return a connection to the pool."""
0 commit comments