pgsql: Do not try to change a const variable.

Started by Michael Meskesover 17 years ago3 messagescomitters
Jump to latest
#1Michael Meskes
meskes@postgresql.org

Log Message:
-----------
Do not try to change a const variable.

Modified Files:
--------------
pgsql/src/interfaces/ecpg:
ChangeLog (r1.392 -> r1.393)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ChangeLog?r1=1.392&r2=1.393)
pgsql/src/interfaces/ecpg/ecpglib:
misc.c (r1.44 -> r1.45)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/misc.c?r1=1.44&r2=1.45)

#2Simon Riggs
simon@2ndQuadrant.com
In reply to: Michael Meskes (#1)
Re: pgsql: Do not try to change a const variable.

On Mon, 2008-12-15 at 15:34 +0000, Michael Meskes wrote:

Modified Files:
--------------

pgsql/src/interfaces/ecpg/ecpglib:
misc.c (r1.44 -> r1.45)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/misc.c?r1=1.44&r2=1.45)

I get this

misc.c:253: warning: assignment discards qualifiers from pointer target
type

I'm guessing that error comes from this commit?

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Simon Riggs (#2)
Re: pgsql: Do not try to change a const variable.

Simon Riggs <simon@2ndQuadrant.com> writes:

I get this

misc.c:253: warning: assignment discards qualifiers from pointer target
type

I'm guessing that error comes from this commit?

Yeah. It's got worse problems than that too: it's not accounting for
possibility that internationalized string is significantly longer than
the ASCII version. Fixed, I think.

regards, tom lane