| 1185 | |
| 1186 | |
| 1187 | static 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 | |
| 1214 | static dsql_stmt* lookup_stmt(const TEXT* name, dsql_name* list, name_type type) |
no test coverage detected