(connection)
| 966 | eng.pool.logger = Mock() |
| 967 | |
| 968 | def get_default_schema_name(connection): |
| 969 | try: |
| 970 | cursor = connection.connection.cursor() |
| 971 | connection._cursor_execute(cursor, "statement", {}) |
| 972 | cursor.close() |
| 973 | except exc.DBAPIError: |
| 974 | util.warn("Exception attempting to detect") |
| 975 | |
| 976 | eng.dialect._get_default_schema_name = get_default_schema_name |
| 977 | return eng |
nothing calls this directly
no test coverage detected