Small addition to PGInterval

Started by Hartmut Benzover 19 years ago3 messagespatches
Jump to latest
#1Hartmut Benz
hartmut.benz@ti-wmc.nl

Hi all,

please find attached a small extension to PGInterval:
- getTimeInMills - returns the number of milliseconds in the interval
- copying constructor PGInterval(PGInterval) for type-safe, cast-free
cloning
- now implements Comaparable<PGInterval>

--
Hartmut Benz,
TI-WMC, http://www.ti-wmc.nl

Attachments:

PGInterval.diff.gzapplication/gzip; name=PGInterval.diff.gzDownload
#2Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Hartmut Benz (#1)
Re: Small addition to PGInterval

Hartmut Benz wrote:

please find attached a small extension to PGInterval:
- getTimeInMills - returns the number of milliseconds in the interval
- copying constructor PGInterval(PGInterval) for type-safe, cast-free
cloning
- now implements Comaparable<PGInterval>

This list is for patches to PostgreSQL server. Please send patches to
the JDBC driver to the pgsql-jdbc mailing list.

PS. Thanks for the patch!

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

#3Bruce Momjian
bruce@momjian.us
In reply to: Heikki Linnakangas (#2)
Re: Small addition to PGInterval

Heikki Linnakangas wrote:

Hartmut Benz wrote:

please find attached a small extension to PGInterval:
- getTimeInMills - returns the number of milliseconds in the interval
- copying constructor PGInterval(PGInterval) for type-safe, cast-free
cloning
- now implements Comaparable<PGInterval>

This list is for patches to PostgreSQL server. Please send patches to
the JDBC driver to the pgsql-jdbc mailing list.

Oh, and you should probably send the jdbc people a context diff, diff
-c.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +