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

Method add

src/common/Auth.cpp:63–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void WriterImplementation::add(Firebird::CheckStatusWrapper* st, const char* name)
64{
65 try
66 {
67 putLevel();
68
69 current.clear();
70 current.insertString(AuthReader::AUTH_NAME, name, strlen(name));
71 fb_assert(plugin.hasData());
72 if (plugin.hasData())
73 {
74 current.insertString(AuthReader::AUTH_PLUGIN, plugin);
75 }
76 type = "USER";
77 }
78 catch (const Firebird::Exception& ex)
79 {
80 ex.stuffException(st);
81 }
82}
83
84void WriterImplementation::setPlugin(const char* m)
85{

Callers 14

setupWorkersMethod · 0.45
loadConfigMethod · 0.45
linkIdMethod · 0.45
parsePrimaryMethod · 0.45
addFieldMethod · 0.45
addItemMethod · 0.45
initializeMethod · 0.45
getVersionsFunction · 0.45
createMethod · 0.45
buildInfoItemsMethod · 0.45
parseMethod · 0.45
getDbPathInfoFunction · 0.45

Calls 4

clearMethod · 0.45
insertStringMethod · 0.45
hasDataMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected