Martyn Smith

Results 6 comments of Martyn Smith

I just tried applying this patch (well just the Client/Connection.pm part honestly) and it seems to have fixed quite a lot of the memory leak issues I was having. Time...

I've just run into this problem myself. In particular if you're using Flask's `test_client()` to make requests and you hit something that deletes a row then commits it, things break...

The issue I actually had was writing a pattern like this: `app.model.base.db.relationship(..., backref=$X, ...)` `app/model/first_model.py` (pattern matches, yay!): ```python from app.model.base import db db.relationship(backref="abc") ``` `app/model/second_model.py` (pattern doesn't match, but...

Oh, I realised I didn't answer the priority question. In short, we _might_ be able to work around it by writing a code-preprocessor, but given the descriptions above I'd say...

What would work really well for me would be to put something that can rewrite the file content inline with semgrep. I'd happily provide something that can rewrite relative to...

@dobesv - could I grab a copy of that script, I have exactly the same use case :-)