]> granicus.if.org Git - postgresql/commit
Add const qualifier to tzn returned by timestamp2tm()
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Mar 2012 19:17:19 +0000 (21:17 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Mar 2012 19:17:19 +0000 (21:17 +0200)
commiteb990a2b9efff853d0c68a9cf902b1df23498540
tree36ec5e50918ef06c3f0a75744191c139f411460a
parent531e60aec02fa14d02185e42363b2277427e2119
Add const qualifier to tzn returned by timestamp2tm()

The tzn value might come from tm->tm_zone, which libc declares as
const, so it's prudent that the upper layers know about this as well.
src/backend/utils/adt/datetime.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/timestamp.c
src/backend/utils/adt/xml.c
src/include/utils/timestamp.h
src/interfaces/ecpg/pgtypeslib/timestamp.c