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

Use array notation.

This commit is contained in:
robocop 2008-04-12 11:54:42 +00:00
parent 93b683c8c0
commit 4de9c4050b

View File

@ -1747,11 +1747,11 @@ dsql_nod* PASS1_statement(dsql_req* request, dsql_nod* input, bool proc_flag)
const int cnt = node->nod_arg[e_exec_stmt_inputs]->nod_count;
StrArray names(*getDefaultMemoryPool(), cnt);
dsql_nod** prm = node->nod_arg[e_exec_stmt_inputs]->nod_arg;
if ((*prm)->nod_arg[e_named_param_name]) {
for (int i = 0; i < cnt; i++, prm++)
const dsql_nod* const* prm = node->nod_arg[e_exec_stmt_inputs]->nod_arg;
if (prm[0]->nod_arg[e_named_param_name]) {
for (int i = 0; i < cnt; i++)
{
dsql_str* name = (dsql_str*) (*prm)->nod_arg[e_named_param_name];
dsql_str* name = (dsql_str*) prm[i]->nod_arg[e_named_param_name];
if (names.exist(name->str_data)) {
ERRD_post(isc_sqlerr, isc_arg_number, (SLONG) -637,