Subject | gpre "Undocumented feature" |
---|---|
Author | Peter Faulks |
Post date | 2002-04-28T18:47:19Z |
G'day
Using embedded sql:
EXEC SQL SELECT i.column, [.......] FROM itable i [ETC.....]
int aclass::afunction()
{
int i;
//etc etc.....
}
gpre complains about the line 'int i' - expected dot after context
variable, encountered ";"
Change the variable name so it doesn't conflict with the table alias and
all is sweetness and light..
Why should there be an error if a variable name happens to be the same as
a table alias? Surely they are in different namespaces? Why is gpre even
looking at stuff not between EXEC SQL and a semi-colon?
Regards
Using embedded sql:
EXEC SQL SELECT i.column, [.......] FROM itable i [ETC.....]
int aclass::afunction()
{
int i;
//etc etc.....
}
gpre complains about the line 'int i' - expected dot after context
variable, encountered ";"
Change the variable name so it doesn't conflict with the table alias and
all is sweetness and light..
Why should there be an error if a variable name happens to be the same as
a table alias? Surely they are in different namespaces? Why is gpre even
looking at stuff not between EXEC SQL and a semi-colon?
Regards