We're having some Pro*C sources into which there is defined C macro named "max" and SQL queries using the function "max" to calculate some results. In Eclipse CDT with Proc extension this results in syntax error "Macro usage error" (illustrated below) on these queries.
Follows the example code:
EXEC SQL INCLUDE sqlca.h;
#define max(A,B) ((A) > (B) ? (A) : (B))
int main(int argc, char * argv[])
{
int res;
EXEC SQL SELECT max(1)
INTO :res
FROM dual;
}
We're having some Pro*C sources into which there is defined C macro named "max" and SQL queries using the function "max" to calculate some results. In Eclipse CDT with Proc extension this results in syntax error "Macro usage error" (illustrated below) on these queries.
Follows the example code: