From zhangyuanchao@highgo.com Mon Nov 30 03:56:54 2015 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a3FaA-0006nm-2G for pgsql-jdbc@arkaria.postgresql.org; Mon, 30 Nov 2015 03:56:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a3Fa8-0007dH-E9 for pgsql-jdbc@arkaria.postgresql.org; Mon, 30 Nov 2015 03:56:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a3FZc-00074u-Ky for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2015 03:56:20 +0000 Received: from [222.173.30.138] (helo=EX01.highgo.com) by magus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1a3FZV-0007Cy-9J for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2015 03:56:17 +0000 Received: from EX01.highgo.com (192.168.110.194) by EX01.highgo.com (192.168.110.194) with Microsoft SMTP Server (TLS) id 15.0.775.38; Mon, 30 Nov 2015 11:31:34 +0800 Received: from EX01.highgo.com ([fe80::615c:3b6b:7acb:5f99]) by EX01.highgo.com ([fe80::615c:3b6b:7acb:5f99%10]) with mapi id 15.00.0775.031; Mon, 30 Nov 2015 11:31:22 +0800 From: =?gb2312?B?1cXUqrOs?= To: "pgsql-jdbc@postgresql.org" Subject: Some question about statement Thread-Topic: Some question about statement Thread-Index: AdErIMGsfzPQBZroQseXmB4ljOGpOQ== Date: Mon, 30 Nov 2015 03:31:22 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [58.58.27.50] Content-Type: multipart/alternative; boundary="_000_fec1781ebe6340bf868d125c4eadec4cEX01highgocom_" MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 222.173.30.138 (failed) X-Pg-Spam-Score: 1.0 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --_000_fec1781ebe6340bf868d125c4eadec4cEX01highgocom_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGksDQogICAgICAgICBJIGhhdmUgcXVlc3Rpb24gYWJvdXQgc3RhdGVtZW50LlNvbWUgbWV0aG9k IHRoYXQgcHJvdmlkZWQgYnkgSkFWQSBBUEkgd2VyZSBub3QgaW1wbGVtZW50ZWQgaW4gcG9zdGdy ZXNxbCBqZGJjLg0KSSBmb2N1cyBvbiBtZXRob2QgbmFtZWQgoa5zZXRDaGFyYWN0ZXJTdHJlYW0o aW50IHBhcmFtZXRlckluZGV4LCBSZWFkZXIgdmFsdWUsIGxvbmcgbGVuZ3RoKaGvLGl0IHdhcyBu b3QgaW1wbGVtZW50ZWQsYnV0DQqhrnNldENoYXJhY3RlclN0cmVhbShpbnQgaSwgamF2YS5pby5S ZWFkZXIgeCwgaW50IGxlbmd0aCmhryB3YXMgaW1wbGVtZW50ZWQuVGhlIGRpZmZlcmVudCBiZXR3 ZWVuIHRoZW0gaXMgdGhlIHR5cGUgb2YgdGhlIHRoaXJkDQpwYXJhbWV0ZXIuIEkgZG9uoa90IGtu b3cgd2h5IHRoZSBmaXJzdCBtZXRob2Qgd2FzIG5vdCBpbXBsZW1lbnQsYmVjYXVzZSB0aGUgY29s dW1uIGNhbiBub3Qgc3RvcmUgdGhlIKGudmFsdWWhryB3aG9lcyBsZW5ndGgNCmlzIHRoZSChrmxl bmd0aKGvPyBPciBvdGhlciByZWFzb24/IFRoYW5rIHlvdS4NCg== --_000_fec1781ebe6340bf868d125c4eadec4cEX01highgocom_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Hi,

     &= nbsp;   I have question about statement.Some method that provided= by JAVA API were not implemented in postgresql jdbc.

I focus on method named =A1=AEs= etCharacterStream(int parameterIndex, Reader value, long length)=A1=AF,it w= as not implemented,but

=A1=AEsetCharacterStream(int i,= java.io.Reader x, int length)=A1=AF was implemented.The different between = them is the type of the third

parameter. I don=A1=AFt know wh= y the first method was not implement,because the column can not store the = =A1=AEvalue=A1=AF whoes length

is the =A1=AElength=A1=AF? Or o= ther reason? Thank you.

--_000_fec1781ebe6340bf868d125c4eadec4cEX01highgocom_-- From zhangyuanchao@highgo.com Mon Nov 30 05:32:16 2015 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a3H4S-0002nn-Sb for pgsql-jdbc@arkaria.postgresql.org; Mon, 30 Nov 2015 05:32:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a3H4R-0005fU-Pt for pgsql-jdbc@arkaria.postgresql.org; Mon, 30 Nov 2015 05:32:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a3H3w-00057P-Rb for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2015 05:31:44 +0000 Received: from [222.173.30.138] (helo=EX01.highgo.com) by magus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1a3H3c-0000ax-Tj for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2015 05:31:29 +0000 Received: from EX01.highgo.com (192.168.110.194) by EX01.highgo.com (192.168.110.194) with Microsoft SMTP Server (TLS) id 15.0.775.38; Mon, 30 Nov 2015 13:06:31 +0800 Received: from EX01.highgo.com ([fe80::615c:3b6b:7acb:5f99]) by EX01.highgo.com ([fe80::615c:3b6b:7acb:5f99%10]) with mapi id 15.00.0775.031; Mon, 30 Nov 2015 13:06:31 +0800 From: =?gb2312?B?1cXUqrOs?= To: "pgsql-jdbc@postgresql.org" Subject: Some question about statement Thread-Topic: Some question about statement Thread-Index: AdErL/hZgNlJD7mfSyu+ZjB+SIhbLg== Date: Mon, 30 Nov 2015 05:06:30 +0000 Message-ID: <12fea0627c29480bbef183471e61b8ee@EX01.highgo.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [58.58.27.50] Content-Type: multipart/alternative; boundary="_000_12fea0627c29480bbef183471e61b8eeEX01highgocom_" MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 222.173.30.138 (failed) X-Pg-Spam-Score: -0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --_000_12fea0627c29480bbef183471e61b8eeEX01highgocom_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGksDQogICAgICAgICBJIGhhdmUgcXVlc3Rpb24gYWJvdXQgc3RhdGVtZW50LlNvbWUgbWV0aG9k IHRoYXQgcHJvdmlkZWQgYnkgSkFWQSBBUEkgd2VyZSBub3QgaW1wbGVtZW50ZWQgaW4gcG9zdGdy ZXNxbCBqZGJjLg0KSSBmb2N1cyBvbiBtZXRob2QgbmFtZWQgoa5zZXRDaGFyYWN0ZXJTdHJlYW0o aW50IHBhcmFtZXRlckluZGV4LCBSZWFkZXIgdmFsdWUsIGxvbmcgbGVuZ3RoKaGvLGl0IHdhcyBu b3QgaW1wbGVtZW50ZWQsYnV0DQqhrnNldENoYXJhY3RlclN0cmVhbShpbnQgaSwgamF2YS5pby5S ZWFkZXIgeCwgaW50IGxlbmd0aCmhryB3YXMgaW1wbGVtZW50ZWQuVGhlIGRpZmZlcmVudCBiZXR3 ZWVuIHRoZW0gaXMgdGhlIHR5cGUgb2YgdGhlIHRoaXJkDQpwYXJhbWV0ZXIuIEkgZG9uoa90IGtu b3cgd2h5IHRoZSBmaXJzdCBtZXRob2Qgd2FzIG5vdCBpbXBsZW1lbnQsYmVjYXVzZSB0aGUgY29s dW1uIGNhbiBub3Qgc3RvcmUgdGhlIKGudmFsdWWhryB3aG9lcyBsZW5ndGgNCmlzIHRoZSChrmxl bmd0aKGvPyBPciBvdGhlciByZWFzb24/IFRoYW5rIHlvdS4NCg0K --_000_12fea0627c29480bbef183471e61b8eeEX01highgocom_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Hi,

     &= nbsp;   I have question about statement.Some method that provided= by JAVA API were not implemented in postgresql jdbc.

I focus on method named =A1=AEs= etCharacterStream(int parameterIndex, Reader value, long length)=A1=AF,it w= as not implemented,but

=A1=AEsetCharacterStream(int i,= java.io.Reader x, int length)=A1=AF was implemented.The different between = them is the type of the third

parameter. I don=A1=AFt know wh= y the first method was not implement,because the column can not store the = =A1=AEvalue=A1=AF whoes length

is the =A1=AElength=A1=AF? Or o= ther reason? Thank you.

 

--_000_12fea0627c29480bbef183471e61b8eeEX01highgocom_-- From dblanch@hoplasoftware.com Mon Nov 30 06:28:27 2015 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a3Hwo-0005Ve-Uo for pgsql-jdbc@arkaria.postgresql.org; Mon, 30 Nov 2015 06:28:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a3Hwo-0000Jm-Cu for pgsql-jdbc@arkaria.postgresql.org; Mon, 30 Nov 2015 06:28:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a3Hwn-0000Jf-Sn for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2015 06:28:26 +0000 Received: from hermes.doblenet.net ([213.27.130.15]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a3Hwj-0000R0-UN for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2015 06:28:24 +0000 Content-Type: multipart/alternative; boundary="Apple-Mail=_65FD633A-7780-4408-BADE-389CF70B8A7B" Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: Some question about statement From: Daniel Blanch Bataller In-Reply-To: <12fea0627c29480bbef183471e61b8ee@EX01.highgo.com> Date: Mon, 30 Nov 2015 07:28:17 +0100 Cc: "pgsql-jdbc@postgresql.org" Message-Id: <62630FA5-1611-4EBD-B6BC-01780A4E8853@hoplasoftware.com> References: <12fea0627c29480bbef183471e61b8ee@EX01.highgo.com> To: =?utf-8?B?5byg5YWD6LaF?= X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --Apple-Mail=_65FD633A-7780-4408-BADE-389CF70B8A7B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I guess its simply because String fields in postgres can not be larger = than 1 GB, long type could represent length values far beyond this limit = surpassing postgres limits. -Daniel > El 30 nov 2015, a las 6:06, =E5=BC=A0=E5=85=83=E8=B6=85 = escribi=C3=B3: >=20 > Hi, > I have question about statement.Some method that provided by = JAVA API were not implemented in postgresql jdbc. > I focus on method named =E2=80=98setCharacterStream(int = parameterIndex, Reader value, long length)=E2=80=99,it was not = implemented,but > =E2=80=98setCharacterStream(int i, java.io.Reader x, int length)=E2=80=99= was implemented.The different between them is the type of the third > parameter. I don=E2=80=99t know why the first method was not = implement,because the column can not store the =E2=80=98value=E2=80=99 = whoes length > is the =E2=80=98length=E2=80=99? Or other reason? Thank you. --Apple-Mail=_65FD633A-7780-4408-BADE-389CF70B8A7B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

I = guess its simply because String fields in postgres can not be larger = than 1 GB, long type could represent length values far beyond this limit = surpassing postgres limits.

-Daniel



El 30 nov 2015, a las 6:06, =E5=BC=A0=E5=85=83=E8=B6=85 = <zhangyuanchao@highgo.com> escribi=C3=B3:

Hi,
         I have = question about statement.Some method that provided by JAVA API were not = implemented in postgresql jdbc.
I focus on method named =E2=80=98setCharacterStream(int = parameterIndex, Reader value, long length)=E2=80=99,it was not = implemented,but
=E2=80=98setCharacterStream(int i, java.io.Reader x, int = length)=E2=80=99 was implemented.The different between them is the type = of the third
parameter. I don=E2=80=99t know why the first method was not = implement,because the column can not store the =E2=80=98value=E2=80=99 = whoes length
is the = =E2=80=98length=E2=80=99? Or other reason? Thank = you.

= --Apple-Mail=_65FD633A-7780-4408-BADE-389CF70B8A7B-- From sitnikov.vladimir@gmail.com Mon Nov 30 06:30:19 2015 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a3Hyd-0005bW-JW for pgsql-jdbc@arkaria.postgresql.org; Mon, 30 Nov 2015 06:30:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a3Hyd-0000z9-1t for pgsql-jdbc@arkaria.postgresql.org; Mon, 30 Nov 2015 06:30:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a3Hyc-0000yw-LB for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2015 06:30:18 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1a3HyS-0001oF-8z for pgsql-jdbc@postgresql.org; Mon, 30 Nov 2015 06:30:17 +0000 Received: by wmvv187 with SMTP id v187so140653869wmv.1 for ; Sun, 29 Nov 2015 22:30:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PQ7uirkJahfiXtpHmgVXJ4G9dmvi8hDAnIHuYL8LfW4=; b=Jkycwu7dgS/JHdMhNYbpDcLtBw1Vo8d6Lgctb9TrL1G0f1fMt65W7LSGN9bUNEOadG OGisXncl9E8ixvQjUYfWy0Jj1NXTiRCBBNk7DSk+wi+z95i3zi3TgxKfgyAbK00cX82F P3FJgLatnZs7S6Y5QALYEsWcVa5osxUedtzV1xqh4w7OVIvLnFbC6t+kAhvegtjI3aVH PuNKelmktdJ9Ho7MLsxNb8uspF8VTfWJSRgavrz390yXBbw/qg8wiy9c1KMXT8kYOT+p nFqKOk1PQ0Kfd5fIXpLRk8PPFLOCQbib3fc61HfUsV5my/eIgTIAyFBbE+d0g4YMz2Iv vkjw== MIME-Version: 1.0 X-Received: by 10.194.179.162 with SMTP id dh2mr71204662wjc.17.1448865006909; Sun, 29 Nov 2015 22:30:06 -0800 (PST) Received: by 10.27.229.132 with HTTP; Sun, 29 Nov 2015 22:30:06 -0800 (PST) In-Reply-To: <62630FA5-1611-4EBD-B6BC-01780A4E8853@hoplasoftware.com> References: <12fea0627c29480bbef183471e61b8ee@EX01.highgo.com> <62630FA5-1611-4EBD-B6BC-01780A4E8853@hoplasoftware.com> Date: Mon, 30 Nov 2015 09:30:06 +0300 Message-ID: Subject: Re: Some question about statement From: Vladimir Sitnikov To: Daniel Blanch Bataller Cc: =?UTF-8?B?5byg5YWD6LaF?= , "pgsql-jdbc@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org I think `long` method just check bounds and delegate to int one. Vladimir -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc