mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 16:03:02 +01:00
Use array notation.
This commit is contained in:
parent
93b683c8c0
commit
4de9c4050b
@ -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;
|
const int cnt = node->nod_arg[e_exec_stmt_inputs]->nod_count;
|
||||||
StrArray names(*getDefaultMemoryPool(), cnt);
|
StrArray names(*getDefaultMemoryPool(), cnt);
|
||||||
|
|
||||||
dsql_nod** prm = node->nod_arg[e_exec_stmt_inputs]->nod_arg;
|
const dsql_nod* const* prm = node->nod_arg[e_exec_stmt_inputs]->nod_arg;
|
||||||
if ((*prm)->nod_arg[e_named_param_name]) {
|
if (prm[0]->nod_arg[e_named_param_name]) {
|
||||||
for (int i = 0; i < cnt; i++, prm++)
|
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)) {
|
if (names.exist(name->str_data)) {
|
||||||
ERRD_post(isc_sqlerr, isc_arg_number, (SLONG) -637,
|
ERRD_post(isc_sqlerr, isc_arg_number, (SLONG) -637,
|
||||||
|
Loading…
Reference in New Issue
Block a user