You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exp_error(parser_ctx, QString( "%1 function is called with wrong number of arguments" ).arg( QgsExpression::Functions()[fnIndex]->name() ).toLocal8Bit().constData() );
exp_error(&yyloc, parser_ctx, QString( "%1 function is called with wrong number of arguments" ).arg( QgsExpression::Functions()[fnIndex]->name() ).toLocal8Bit().constData() );
212
220
delete $3;
213
221
YYERROR;
214
222
}
@@ -223,14 +231,18 @@ expression:
223
231
{
224
232
// this should not actually happen because already in lexer we check whether an identifier is a known function
225
233
// (if the name is not known the token is parsed as a column)
exp_error(&yyloc, parser_ctx, "Function is not known");
227
237
YYERROR;
228
238
}
229
239
// 0 parameters is expected, -1 parameters means leave it to the
230
240
// implementation
231
241
if ( QgsExpression::Functions()[fnIndex]->params() > 0 )
232
242
{
233
-
exp_error(parser_ctx, QString( "%1 function is called with wrong number of arguments" ).arg( QgsExpression::Functions()[fnIndex]->name() ).toLocal8Bit().constData() );
exp_error(&yyloc, parser_ctx, QString( "%1 function is called with wrong number of arguments" ).arg( QgsExpression::Functions()[fnIndex]->name() ).toLocal8Bit().constData() );
234
246
YYERROR;
235
247
}
236
248
$$ = new QgsExpressionNodeFunction(fnIndex, new QgsExpressionNode::NodeList());
@@ -258,7 +270,9 @@ expression:
258
270
}
259
271
else
260
272
{
261
-
exp_error(parser_ctx, QString("%1 function is not known").arg(*$1).toLocal8Bit().constData());
0 commit comments