8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00

Fixed CORE-856 - Unable to set FName, MName, LName fields in security to blank

This commit is contained in:
alexpeshkoff 2007-04-23 12:57:39 +00:00
parent 1883acf285
commit 4e5adaf94c

View File

@ -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, "");
}
} }