dbTalk Databases Forums  

Re: [BUGS] ECPG: "char*" instead of "const char*" in ecpglib.h

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] ECPG: "char*" instead of "const char*" in ecpglib.h in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Qingqing Zhou
 
Posts: n/a

Default Re: [BUGS] ECPG: "char*" instead of "const char*" in ecpglib.h - 11-13-2005 , 05:01 AM








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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.