You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server is installed on a Windows Server 2016 machine, and SHOW lc_messages; returns French_France.1252.
I put a dbg! just before the point where it panics, and I got this:
Notice{storage:b"SFATAL\0VFATAL\0C28P01\0Mauthentification par mot de passe \xe9chou\xe9e pour l'utilisateur \xab postgres \xbb\0Fd:\\pginstaller.auto\\postgres.windows-x64\\src\\backend\\libpq\\auth.c\0L336\0Rauth_failed\0\0",severity:Fatal,message:(22,96,),code:(15,20,),}
It panics because of the é character, which is encoded as 0xe9 in windows-1252.
This was partially addressed by #1968, but it seems that not all fields are checked properly.
Minimal Reproduction
Just try to connect to a server as describe above, with an incorrect password.
Info
SQLx version: 0.7.4
SQLx features enabled: runtime-tokio-native-tls, postgres, chrono
Database server and version: Postgres 11.0.4 on Windows Server 2016
Operating system: Windows 11
rustc --version: 1.79
The text was updated successfully, but these errors were encountered:
Bug Description
Tried to connect to a Postgres server with the wrong password. sqlx panicked on this method:
sqlx/sqlx-postgres/src/message/response.rs
Lines 102 to 105 in 0db12a9
The server is installed on a Windows Server 2016 machine, and
SHOW lc_messages;
returnsFrench_France.1252
.I put a
dbg!
just before the point where it panics, and I got this:It panics because of the
é
character, which is encoded as0xe9
in windows-1252.This was partially addressed by #1968, but it seems that not all fields are checked properly.
Minimal Reproduction
Just try to connect to a server as describe above, with an incorrect password.
Info
runtime-tokio-native-tls
,postgres
,chrono
rustc --version
: 1.79The text was updated successfully, but these errors were encountered: