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

Skip system attachmnets in SHOW USERS

This commit is contained in:
alexpeshkoff 2014-12-26 15:04:46 +00:00
parent b7621d6f9d
commit 05c1c943e3

View File

@ -5763,6 +5763,7 @@ static processing_state show_users12()
"when SEC$USER_NAME is distinct from null then ' ' else '-' end, "
"coalesce(MON$USER, SEC$USER_NAME), count(MON$USER) "
"from mon$attachments m full join sec$users u on m.MON$USER = u.SEC$USER_NAME "
"where coalesce(MON$SYSTEM_FLAG, 0) = 0 "
"group by MON$USER, SEC$USER_NAME order by coalesce(MON$USER, SEC$USER_NAME)";
Firebird::RefPtr<Firebird::IMetadataBuilder>