Re: Rejection of the smallest int8

From: sugita(at)sra(dot)co(dot)jp
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Rejection of the smallest int8
Date: 2001-11-22 09:00:52
Message-ID: 20011122.180052.48523519.sugita@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: [PATCHES] Rejection of the smallest int8
Date: Wed, 21 Nov 2001 12:54:31 -0500

;;; I said:
;;; > If you can see a way around that, we're all ears ...
;;;
;;; Of course there's always the brute-force solution:
;;;
;;; if (strcmp(ptr, "-9223372036854775808") == 0)
;;; return -9223372036854775808;
;;; else
;;; <<proceed with int8in>>
;;;
;;; (modulo some #ifdef hacking to attach the correct L or LL suffix to the
;;; constant, but you get the idea)
;;;
;;; This qualifies as pretty durn ugly, but might indeed be more portable
;;; than any other alternative. Comments?

I made a new patch. Toward zero fault is fixed.

Kind regards,

Kenji Sugita
sugita(at)sra(dot)co(dot)jp

Attachment Content-Type Size
unknown_filename text/plain 1.6 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Turbo Fredriksson 2001-11-22 09:31:04 Database mirroring
Previous Message Hannu Krosing 2001-11-22 08:59:50 Re: Further open item (Was: Status of 7.2)

Browse pgsql-patches by date

  From Date Subject
Next Message Colin 't Hart 2001-11-22 11:14:54 Re: Version checking when loading psql
Previous Message Stephan Szabo 2001-11-22 06:57:54 Re: More FK patches