mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 07:23:04 +01:00
Change type of user flags from int to bool.
This commit is contained in:
parent
0ec5daac05
commit
f85f43ae9c
@ -9280,7 +9280,7 @@ void CreateAlterUserNode::execute(thread_db* tdbb, DsqlCompilerScratch* dsqlScra
|
||||
|
||||
if (active.specified)
|
||||
{
|
||||
userData->act.set(active.value);
|
||||
userData->act.set((int) active.value);
|
||||
userData->act.setEntered(1);
|
||||
}
|
||||
|
||||
|
@ -1846,8 +1846,8 @@ public:
|
||||
Firebird::string* middleName;
|
||||
Firebird::string* lastName;
|
||||
Firebird::string* comment;
|
||||
Nullable<int> adminRole;
|
||||
Nullable<int> active;
|
||||
Nullable<bool> adminRole;
|
||||
Nullable<bool> active;
|
||||
Mode mode;
|
||||
|
||||
void addProperty(Firebird::MetaName* pr, Firebird::string* val = NULL)
|
||||
|
@ -5889,10 +5889,10 @@ user_fixed_opt($node)
|
||||
: FIRSTNAME utf_string { setClause($node->firstName, "FIRSTNAME", $2); }
|
||||
| MIDDLENAME utf_string { setClause($node->middleName, "MIDDLENAME", $2); }
|
||||
| LASTNAME utf_string { setClause($node->lastName, "LASTNAME", $2); }
|
||||
| GRANT ADMIN ROLE { setClause($node->adminRole, "ADMIN ROLE", Nullable<int>(1)); }
|
||||
| REVOKE ADMIN ROLE { setClause($node->adminRole, "ADMIN ROLE", Nullable<int>(0)); }
|
||||
| ACTIVE { setClause($node->active, "ACTIVE/INACTIVE", Nullable<int>(1)); }
|
||||
| INACTIVE { setClause($node->active, "ACTIVE/INACTIVE", Nullable<int>(0)); }
|
||||
| GRANT ADMIN ROLE { setClause($node->adminRole, "ADMIN ROLE", Nullable<bool>(true)); }
|
||||
| REVOKE ADMIN ROLE { setClause($node->adminRole, "ADMIN ROLE", Nullable<bool>(false)); }
|
||||
| ACTIVE { setClause($node->active, "ACTIVE/INACTIVE", Nullable<bool>(true)); }
|
||||
| INACTIVE { setClause($node->active, "ACTIVE/INACTIVE", Nullable<bool>(false)); }
|
||||
;
|
||||
|
||||
%type user_var_opts(<createAlterUserNode>)
|
||||
|
Loading…
Reference in New Issue
Block a user