Oops: ecpg changes <> to = (not good)
| От | Stephen Birch |
|---|---|
| Тема | Oops: ecpg changes <> to = (not good) |
| Дата | |
| Msg-id | 3856A6CE.324E8242@ironmountainsystems.com обсуждение исходный текст |
| Ответы |
Re: [INTERFACES] Oops: ecpg changes <> to = (not good)
|
| Список | pgsql-interfaces |
In the process of cleaning up some memory leaks in the cvs tree, I
discovered that
the checked in version of ecpg interperates <> as =:
For example, if you run ecpg on the following:
test()
{ exec sql select xxx from yyy where zzz <> ppp;
}
You get this output:
/* Processed by ecpg (2.6.11) */
/* These two include files are added by the preprocessor */
#include <ecpgtype.h>
#include <ecpglib.h>
test()
{ { ECPGdo(__LINE__, NULL, "select xxx from yyy where zzz = ppp
",
ECPGt_EOIT, ECPGt_EORT);}
#line 5 "t.pgc"
}
Note that zzz <> ppp has been changed to zzz = ppp. This is not broken
in 6.5.3.
Not good.
I would debug this myself, but do not understand lex and yacc well
enough yet.
Steve
В списке pgsql-interfaces по дате отправления: