On Wed, 9 Nov 2005, Tomasz Ostrowski wrote:
Quote:
Using "char*" as an argument type instead of "const char*" in ecpglib.h
causes that for example the following sample program, basically
copied from docmentation
http://www.postgresql.org/docs/8.1/i...g-dynamic.html ,
does not compile using "gcc-4.0.1":
$g++ test.c -lecpg
test.pgc: In function 'int main()':
test.pgc:11: error: invalid conversion from 'const char*' to 'char*'
test.pgc:11: error: initializing argument 3 of 'bool ECPGprepare(int, char*, char*)' |
Agreed. A patch has been submitted to pg-patches.
Regards,
Qingqing
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly