Unix Technical Forum

BUG #2091: ecpglib.h needs to be updated....

This is a discussion on BUG #2091: ecpglib.h needs to be updated.... within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2091 Logged by: Chuck Wegrzyn Email address: lists@garbagedump.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:32 AM
Chuck Wegrzyn
 
Posts: n/a
Default BUG #2091: ecpglib.h needs to be updated....


The following bug has been logged online:

Bug reference: 2091
Logged by: Chuck Wegrzyn
Email address: lists@garbagedump.com
PostgreSQL version: 8.1.0
Operating system: Linux
Description: ecpglib.h needs to be updated....
Details:

There are a number of places in function prototypes of ECPGdo, ECPGprepare
and ECPGdeallocate where 'char *' should be changed to 'const char *'. I am
sure the other functions have similar problems.

In trying to get my make's to work cleanly (no spurious warnings), I put
-fwriteable-string as an option. But this is a deprecated option in gcc,
which spits out a complaint. So the only way to stop the madness is to cast
the function prototypes correctly. Is this a possibility for the next
release (or is it in there already)?

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 09:32 AM
Bruce Momjian
 
Posts: n/a
Default Re: BUG #2091: ecpglib.h needs to be updated....


This will be fixed when we release 8.1.1, which is planned for next
week. Before then, you can grab from CVS using the 8.1 tag.

---------------------------------------------------------------------------

Chuck Wegrzyn wrote:
>
> The following bug has been logged online:
>
> Bug reference: 2091
> Logged by: Chuck Wegrzyn
> Email address: lists@garbagedump.com
> PostgreSQL version: 8.1.0
> Operating system: Linux
> Description: ecpglib.h needs to be updated....
> Details:
>
> There are a number of places in function prototypes of ECPGdo, ECPGprepare
> and ECPGdeallocate where 'char *' should be changed to 'const char *'. I am
> sure the other functions have similar problems.
>
> In trying to get my make's to work cleanly (no spurious warnings), I put
> -fwriteable-string as an option. But this is a deprecated option in gcc,
> which spits out a complaint. So the only way to stop the madness is to cast
> the function prototypes correctly. Is this a possibility for the next
> release (or is it in there already)?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>


--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 09:32 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2091: ecpglib.h needs to be updated....

"Chuck Wegrzyn" <lists@garbagedump.com> writes:
> There are a number of places in function prototypes of ECPGdo, ECPGprepare
> and ECPGdeallocate where 'char *' should be changed to 'const char *'.


This was already addressed:
http://archives.postgresql.org/pgsql...2/msg00008.php

Do you see anything missed by that patch?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:38 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com