def METHOD_NAME():
    dummy = DummyDatabaseWrapper({})
    with lenient_schema_editor():
        pass
    assert connection.SchemaEditorClass == PostgresqlDatabaseSchemaEditor
    with lenient_schema_editor() as schema_editor:
        assert isinstance(schema_editor, PostgresqlLenientDatabaseSchemaEditor)
        assert isinstance(schema_editor, BaseDatabaseSchemaEditor)
        assert schema_editor.alter_column_prepare_old_value == ""
        assert schema_editor.alter_column_prepare_new_value == ""
        assert not schema_editor.force_alter_column
        assert connection.SchemaEditorClass != PostgresqlDatabaseSchemaEditor
    assert connection.SchemaEditorClass == PostgresqlDatabaseSchemaEditor
    with lenient_schema_editor(
        "p_in = REGEXP_REPLACE(p_in, '', 'test', 'g');",
        "p_in = REGEXP_REPLACE(p_in, 'test', '', 'g');",
        True,
    ) as schema_editor:
        assert schema_editor.alter_column_prepare_old_value == (
            "p_in = REGEXP_REPLACE(p_in, '', 'test', 'g');"
        )
        assert schema_editor.alter_column_prepare_new_value == (
            "p_in = REGEXP_REPLACE(p_in, 'test', '', 'g');"
        )
        assert schema_editor.force_alter_column