Thread: Fwd: ERRONIOUS .cpg parsing

Fwd: ERRONIOUS .cpg parsing

From
Unixprgrmr@aol.com
Date:
I discovered and can easily repeat:

EXEC SQL TRUNCATE TABLE foo;

being translated to:

EXEC SQL DROP TABLE foo;

in the cpg preprocessor!!!
Is there a valid reason for this? OR is this a COCK-ROACH????

Thanks for your help!
Lynn

Re: Fwd: ERRONIOUS .cpg parsing

From
Tom Lane
Date:
Unixprgrmr@aol.com writes:
> I discovered and can easily repeat:
> EXEC SQL TRUNCATE TABLE foo;
> being translated to:
> EXEC SQL DROP TABLE foo;
> in the cpg preprocessor!!!

That was fixed a long time ago ... update to a newer release.

            regards, tom lane