buntatsu / cdt-proc

Eclipse CDT extension for Oracle Pro*C
Eclipse Public License 1.0
26 stars 7 forks source link

Syntax error on coparison with a bind variable on the left #9

Closed gdsotirov closed 9 years ago

gdsotirov commented 9 years ago

There is a syntax error on queries in which there is a comparison with a bind variable on the left (see screen shot below). There is no such error when the bind variable is on the right of the expression.

ecdt_proc_bind_var_cmpr_err

The example code is:

EXEC SQL INCLUDE sqlca.h;

int main(int argc, char * argv[])
{
  char test[] = 'ABC';

  EXEC SQL SELECT *
             FROM dual
            WHERE :test <> 'TEST';

  EXEC SQL SELECT *
             FROM dual
             WHERE 'TEST' <> :test;
}
gdsotirov commented 9 years ago

Unfortunately, it doesn't work for me. I've upgraded Eclipse to 4.5.1 and CDT to 8.8, then installed release 3.0.0 following the procedure, but I still have the same error both in the example source and real sources. I've also rebuilt the C/C++ index manually, but there was no change.

eclipse_cdt_proc-version

What am I missing and what could be the problem?

buntatsu commented 9 years ago

I just commited the source. It is not yet released. Please wait for version 3.1.0.

buntatsu commented 9 years ago

I released version 3.1.0 Please try it.

gdsotirov commented 9 years ago

Yep, I confirm it fixed in release 3.1.0. I must have overlooked the release notes for release 3.0.0, but they are clearly stating the purpose of the release and commit 964813f wasn't included.

buntatsu commented 9 years ago

You're welcome. Thank you as always pointed out.