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