MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getInfo

Method getInfo

src/common/classes/ClumpletReader.cpp:985–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983}
984
985bool AuthReader::getInfo(Info& info)
986{
987 if (isEof())
988 {
989 return false;
990 }
991
992 erase(info.type);
993 erase(info.name);
994 erase(info.plugin);
995 erase(info.secDb);
996 erase(info.origPlug);
997
998 ClumpletReader internal(WideUnTagged, getBytes(), getClumpLength());
999 for (internal.rewind(); !internal.isEof(); internal.moveNext())
1000 {
1001 switch(internal.getClumpTag())
1002 {
1003 case AUTH_TYPE:
1004 set(info.type, internal);
1005 break;
1006 case AUTH_NAME:
1007 set(info.name, internal);
1008 break;
1009 case AUTH_PLUGIN:
1010 set(info.plugin, internal);
1011 break;
1012 case AUTH_SECURE_DB:
1013 set(info.secDb, internal);
1014 break;
1015 case AUTH_ORIG_PLUG:
1016 set(info.origPlug, internal);
1017 break;
1018 default:
1019 break;
1020 }
1021 }
1022
1023 return true;
1024}
1025
1026#ifdef AUTH_BLOCK_DEBUG
1027void dumpAuthBlock(const char* text, ClumpletReader* pb, unsigned char param)

Callers 1

dumpAuthBlockFunction · 0.45

Calls 6

getClumpTagMethod · 0.80
eraseFunction · 0.70
setFunction · 0.70
rewindMethod · 0.45
isEofMethod · 0.45
moveNextMethod · 0.45

Tested by

no test coverage detected