sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

fix: `RawSql` lifetime issues

Open abonander opened this issue 1 year ago • 2 comments

fixes #3150 fixes #3581 fixes #3591

TODO:

  • [x] Regression test

Breaking Change

Strictly speaking, this is a breaking change because it adds the DB type parameter to all methods.

abonander avatar Nov 28 '24 02:11 abonander

Hi @abonander!

I wonder if we can get this merged and released recently. And I'm curious why it's marked as breaking, since I suppose it relaxes the lifetime bound which should be backward-compatible?

tisonkun avatar Jan 04 '25 14:01 tisonkun

It adds a new type parameter to public methods, which would break UFCS calls.

abonander avatar Jun 04 '25 22:06 abonander