;
var_value: opt_boolean { $$ = $1; }
- | AllConst { $$ = $1; }
+ | AllConst { /* we have to check for a variable here because it has to be
+ replaced with its value on the client side */
+ if ($1[1] == '$')
+ {
+ $$ = make_str("$0");
+ free($1);
+ }
+ else
+ $$ = $1;
+ }
| ColId { $$ = $1; }
;
fetch_count: IntConst {
if ($1[1] == '$')
{
- /* a variable here has to be replaced on the client side, thus we have to use '?' here */
+ /* a variable here has to be replaced on the client side, thus we have to use '$0' here */
$$ = make_str("$0");
free($1);
}