pgsql: Fix portability issues in 86c43f4e22c0771fd0cc6bce2799802c894ee2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix portability issues in 86c43f4e22c0771fd0cc6bce2799802c894ee2
Date: 2016-03-29 04:53:59
Message-ID: E1aklfD-0001y8-Dx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix portability issues in 86c43f4e22c0771fd0cc6bce2799802c894ee2ec.

INT64_MIN/MAX should be spelled PG_INT64_MIN/MAX, per well established
convention in our sources. Less obviously, a symbol named DOUBLE causes
problems on Windows builds, so rename that to DOUBLE_CONST; and rename
INTEGER to INTEGER_CONST for consistency.

Also, get rid of incorrect/obsolete hand-munging of yycolumn, and fix
the grammar for float constants to handle expected cases such as ".1".

First two items by Michael Paquier, second two by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/656ee8489053aafc85324b9ef7e91b645674ffb9

Modified Files
--------------
src/bin/pgbench/exprparse.y | 10 +++++-----
src/bin/pgbench/exprscan.l | 9 ++++++---
src/bin/pgbench/pgbench.c | 2 +-
3 files changed, 12 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-03-29 04:56:19 Re: [COMMITTERS] pgsql: pgbench: Support double constants and functions.
Previous Message Christian Ullrich 2016-03-29 04:36:04 Re: [COMMITTERS] pgsql: Sync tzload() and tzparse() APIs with IANA release tzcode2016c.