|
1 |
| -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.298 2004/10/18 13:36:23 meskes Exp $*/ |
| 1 | +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.299 2004/11/01 13:17:12 davec Exp $*/ |
2 | 2 |
|
3 | 3 | /* Copyright comment*/
|
4 | 4 | %{
|
@@ -208,10 +208,16 @@ static char *
|
208 | 208 | adjust_informix(structarguments *list)
|
209 | 209 | {
|
210 | 210 | /* Informix accepts DECLARE with variables that are out of scope when OPEN is called.
|
| 211 | + * for instance you can declare variables in a function, and then subsequently use them |
| 212 | + * { |
| 213 | + * declare_vars(); |
| 214 | + * exec sql ... which uses vars declared in the above function |
| 215 | + * |
211 | 216 | * This breaks standard and leads to some very dangerous programming.
|
212 | 217 | * Since they do, we have to work around and accept their syntax as well.
|
213 | 218 | * But we will do so ONLY in Informix mode.
|
214 |
| - * We have to change the variables to our own struct and just store the pointer instead of the variable*/ |
| 219 | + * We have to change the variables to our own struct and just store the pointer instead of the variable |
| 220 | +*/ |
215 | 221 |
|
216 | 222 | structarguments *ptr;
|
217 | 223 | char *result =make_str("");
|
@@ -2100,7 +2106,7 @@ GrantStmt:GRANT privileges ON privilege_target TO grantee_list opt_grant_grant_
|
2100 | 2106 |
|
2101 | 2107 | RevokeStmt:REVOKEopt_revoke_grant_optionprivilegesONprivilege_targetFROMgrantee_listopt_drop_behavior
|
2102 | 2108 | {
|
2103 |
| -$$ = cat_str(9, make_str("revoke"),$2,$3, make_str("on"),$5, make_str("from"),$7,$8); |
| 2109 | +$$ = cat_str(8, make_str("revoke"),$2,$3, make_str("on"),$5, make_str("from"),$7,$8); |
2104 | 2110 | }
|
2105 | 2111 |
|
2106 | 2112 | ;
|
|