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

Function lookup_name

src/yvalve/user_dsql.cpp:1187–1211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185
1186
1187static dsql_name* lookup_name(const TEXT* name, dsql_name* list)
1188{
1189/**************************************
1190 *
1191 * l o o k u p _ n a m e
1192 *
1193 **************************************
1194 *
1195 * Functional description
1196 * Look up the given name in the designated list.
1197 *
1198 **************************************/
1199
1200 Firebird::ReadLockGuard guard(global_sync, FB_FUNCTION);
1201
1202 const USHORT l = name_length(name);
1203 for (; list; list = list->name_next)
1204 {
1205 if (scompare(name, l, list->name_symbol, list->name_length)) {
1206 break;
1207 }
1208 }
1209
1210 return list;
1211}
1212
1213
1214static dsql_stmt* lookup_stmt(const TEXT* name, dsql_name* list, name_type type)

Callers 2

lookup_stmtFunction · 0.85

Calls 2

name_lengthFunction · 0.70
scompareFunction · 0.70

Tested by

no test coverage detected