pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: Ben K. <bkim@coe.tamu.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: Returning String as Integer
Date: Sun, 07 May 2006 10:39:48 +0200
Message-ID: <445DB254.5060606@logix-tt.com> (raw)
In-Reply-To: <Pine.GSO.4.64.0605061457510.7602@coe.tamu.edu>
References: <18AE59788A3FC640A367E5652E664D8002093F0C@xmb-sjc-237.amer.cisco.com>
	<200605051852.19596.jgodoy@gmail.com>
	<20060506153916.GA3434@wolff.to>
	<Pine.GSO.4.64.0605061457510.7602@coe.tamu.edu>

Hi, Ben,

Ben K. schrieb:
> I tried int8(id) but java didn't take it as Integer. (It took int8 as
> something like Long.)

Yes, and that's good, as PostgreSQL int8 and java long actually are the
same datatype (64-bit signed two's-complement).

PostgreSQL int4 and Java int are the same (32-bit), as well as int2 and
short.

HTH,
Markus



view thread (10+ messages)

Message-ID: <445DB254.5060606@logix-tt.com>
Permalink:  ../445DB254.5060606@logix-tt.com/
Also on:    postgresql.org/message-id/445DB254.5060606@logix-tt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: schabi@logix-tt.com, bkim@coe.tamu.edu
  Subject: Re: Returning String as Integer
  In-Reply-To: <445DB254.5060606@logix-tt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox