pgsql: Use non-literal format for possibly non-standard strftime format

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use non-literal format for possibly non-standard strftime format
Date: 2011-04-29 00:03:11
Message-ID: E1QFbAt-0006QI-MA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use non-literal format for possibly non-standard strftime formats.

Per recent -hackers discussion. The formats in question are %G and %V,
and cause warnings on MinGW at least. We assume the ecpg application
knows what it's doing if it passes these formats to the library.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c49e4ae1f886e74efb4bc94c09b993098232d5f9

Modified Files
--------------
src/interfaces/ecpg/pgtypeslib/timestamp.c | 42 +++++++++++++++++----------
1 files changed, 26 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message User Itagaki 2011-04-29 05:06:49 reorg - pg_reorg: Fixed database corruption when target tables have
Previous Message Tom Lane 2011-04-28 20:30:10 Re: pgsql: Fix pg_size_pretty() to avoid overflow for inputs close to INT64