(dbapi_connection, connection_record)
| 994 | @event.listens_for(engine, "connect", insert=True) |
| 995 | @event.listens_for(engine, "first_connect", insert=True) |
| 996 | def connect(dbapi_connection, connection_record): |
| 997 | cursor = dbapi_connection.cursor() |
| 998 | cursor.execute( |
| 999 | "SET SESSION standard_conforming_strings = %s" |
| 1000 | % ("off" if not explicit_setting else "on") |
| 1001 | ) |
| 1002 | dbapi_connection.commit() |
| 1003 | |
| 1004 | with engine.connect(): |
| 1005 | eq_(engine.dialect._backslash_escapes, expected) |
no test coverage detected