Closed kfsass closed 1 month ago
Looks like a byte-order mark https://en.wikipedia.org/wiki/Byte_order_mark
It's added by Windows programs such as Notepad. There's probably an option somewhere to save the file without it.
Yup! RustRover had an option to remove it in the file encoding dropdown. I'd guess it hasn't come up prior since I've been creating files on Mac (?) - I have like 5 prior migration files with no BOM ever prepended, whereas all the files I've created today do. Tacking another reason to hate Windows onto the list. Thanks for the help! 🥰
Git probably would have stripped them out on-commit, huh 🙃
Bug Description
Hi, Bonander! <3
I'm working on my portfolio and using Axum + SQLx for an API project (I've been shamelessly modeling my code off your realworld example). I'm running into an issue using fixtures where a
syntax error at or near \"\u{feff}INSERT\"
error is thrown for valid SQL. The query runs fine outside of SQLx. I don't know where the unicode ZWNBSP is coming from...I was hesitant to open an issue because I feel like I'm missing something so obvious or weird... text encoding? line endings? 🥴
Minimal Reproduction
offending query:
user
table definition:test snippet:
Info
rustc --version
: rustc 1.80.0 (051478957 2024-07-21)I haven't tried to repro on my MacBook yet. TIA for your help. I miss ya 🥰