From ce1233b10cfe07624d60c69a17aa68a2e375d4a5 Mon Sep 17 00:00:00 2001 From: robocop Date: Fri, 13 Mar 2015 15:31:14 +0000 Subject: [PATCH] rdb$system_flag is not nullable in FB3. --- src/dsql/metd.epp | 4 ++-- src/jrd/scl.epp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dsql/metd.epp b/src/dsql/metd.epp index 721bbf3b7e..8df96eb1b9 100644 --- a/src/dsql/metd.epp +++ b/src/dsql/metd.epp @@ -91,7 +91,7 @@ namespace FOR(REQUEST_HANDLE handle TRANSACTION_HANDLE transaction) R IN RDB$RELATIONS WITH R.RDB$RELATION_NAME EQ relName AND - R.RDB$SYSTEM_FLAG EQUIV 1 + R.RDB$SYSTEM_FLAG EQ 1 { rc = true; } @@ -108,7 +108,7 @@ namespace FOR(REQUEST_HANDLE handle TRANSACTION_HANDLE transaction) R IN RDB$FIELDS WITH R.RDB$FIELD_NAME EQ fldName AND - R.RDB$SYSTEM_FLAG EQUIV 1 + R.RDB$SYSTEM_FLAG EQ 1 { rc = true; } diff --git a/src/jrd/scl.epp b/src/jrd/scl.epp index 7313511c6d..c8fe605040 100644 --- a/src/jrd/scl.epp +++ b/src/jrd/scl.epp @@ -1035,7 +1035,6 @@ bool SCL_admin_role(thread_db* tdbb, const TEXT* sql_role) FOR(REQUEST_HANDLE request) R IN RDB$ROLES WITH R.RDB$ROLE_NAME EQ sql_role - AND R.RDB$SYSTEM_FLAG NOT MISSING AND R.RDB$SYSTEM_FLAG != 0 { adminRole = true;