fernandobatels / rsfbclient

Rust Firebird Client
MIT License
74 stars 10 forks source link

RoleName not passed to connection #138

Closed fernandobatels closed 1 year ago

fernandobatels commented 1 year ago

Discussed in https://github.com/fernandobatels/rsfbclient/discussions/137

Originally posted by **zhus** December 21, 2022 My connection string is "firebird://user:pass@server:3050/control.gdb?encoding=WIN1250&&roleName=R_USER" but RoleName not passed to connection. So I found fn build_dpb and patched with { let role_name = "R_USER".to_string(); dpb.extend(&[ibase::isc_dpb_sql_role_name as u8, role_name.len() as u8]); dpb.extend(role_name.bytes()); } Is there a valid way to pass RoleName to connection? with builder_native().with_dyn_load("fbclient.dll")