mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 14:03:07 +01:00
Fixed CORE-856 - Unable to set FName, MName, LName fields in security to blank
This commit is contained in:
parent
1883acf285
commit
4e5adaf94c
@ -281,12 +281,21 @@ static void userInfoToSpb(char*& spb,
|
|||||||
if (userInfo.first_name_entered) {
|
if (userInfo.first_name_entered) {
|
||||||
stuffSpb2(spb, isc_spb_sec_firstname, userInfo.first_name);
|
stuffSpb2(spb, isc_spb_sec_firstname, userInfo.first_name);
|
||||||
}
|
}
|
||||||
|
else if (userInfo.first_name_specified) {
|
||||||
|
stuffSpb2(spb, isc_spb_sec_firstname, "");
|
||||||
|
}
|
||||||
if (userInfo.middle_name_entered) {
|
if (userInfo.middle_name_entered) {
|
||||||
stuffSpb2(spb, isc_spb_sec_middlename, userInfo.middle_name);
|
stuffSpb2(spb, isc_spb_sec_middlename, userInfo.middle_name);
|
||||||
}
|
}
|
||||||
|
else if (userInfo.middle_name_specified) {
|
||||||
|
stuffSpb2(spb, isc_spb_sec_middlename, "");
|
||||||
|
}
|
||||||
if (userInfo.last_name_entered) {
|
if (userInfo.last_name_entered) {
|
||||||
stuffSpb2(spb, isc_spb_sec_lastname, userInfo.last_name);
|
stuffSpb2(spb, isc_spb_sec_lastname, userInfo.last_name);
|
||||||
}
|
}
|
||||||
|
else if (userInfo.last_name_specified) {
|
||||||
|
stuffSpb2(spb, isc_spb_sec_lastname, "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user