Re: pgsql: Fix misplaced const - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Fix misplaced const
Date
Msg-id 16047.1553606306@sss.pgh.pa.us
Whole thread Raw
In response to pgsql: Fix misplaced const  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-committers
Peter Eisentraut <peter@eisentraut.org> writes:
> Fix misplaced const
> These instances were apparently trying to carry the const qualifier
> from the arguments through the complex casts, but for that the const
> qualifier was misplaced.

Hmm, maybe even better to make it like this?

    const char *sa = *((const char *const *) a);

            regards, tom lane


pgsql-committers by date:

Previous
From: Magnus Hagander
Date:
Subject: pgsql: Fix typo
Next
From: Michael Paquier
Date:
Subject: pgsql: Improve error handling of column references in expressiontransf