john-bodley commented on code in PR #24488:
URL: https://github.com/apache/superset/pull/24488#discussion_r1240047263
##########
superset/utils/core.py:
##########
@@ -849,6 +850,24 @@ def ping_connection(connection: Connection, branch: bool)
-> None:
# restore 'close with result'
connection.should_close_with_result = save_should_close_with_result
+ if some_engine.dialect.name == "sqlite":
+
+ @event.listens_for(some_engine, "connect")
+ def set_sqlite_pragma( # pylint: disable=unused-argument
Review Comment:
Hopefully (if approved) this will remove the need for
[this](https://github.com/search?q=repo%3Aapache%2Fsuperset+backend%28%29+%3D%3D+%22sqlite%22&type=code)
logic in a number of tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]