X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 29B2A3A3DEA for ; Mon, 17 Jan 2005 18:47:28 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40615-07 for ; Mon, 17 Jan 2005 18:47:22 +0000 (GMT) Received: from axiontech.com (unknown [216.52.172.78]) by svr1.postgresql.org (Postfix) with SMTP id 391F83A3DCE for ; Mon, 17 Jan 2005 18:47:21 +0000 (GMT) Received: (qmail 10694 invoked from network); 17 Jan 2005 18:47:33 -0000 Received: from pc-00161 (HELO yudie) (192.168.1.161) by mail.axiontech.com (192.168.1.6) with SMTP; 17 Jan 2005 18:47:33 -0000 Message-ID: <000d01c4fcc4$90fc9b40$a101a8c0@home.axiontech.com> From: "Yudie" To: Subject: query configuration for validate empty quote to zero Date: Mon, 17 Jan 2005 12:44:20 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0008_01C4FC92.43C1DDE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.233 tagged_above=0 required=5 tests=AWL, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200501/124 X-Sequence-Number: 19912 This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C4FC92.43C1DDE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable We just changed the postgresql server and got some problem with sql = command in our old server we can exexute this query:=20 SELECT * FROM product WHERE prdtnumber =3D '' field prdtnumber data type is integer and the empty quote somehow can be = assumed into 0 (zero) Now, if I use the same query it return an error: invalid input syntax for integer: "" Anyone know what's the problem?? Thanks Yudie ------=_NextPart_000_0008_01C4FC92.43C1DDE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
We just changed the postgresql server = and got some=20 problem with sql command
in our old server we can exexute this = query:=20
 
SELECT * FROM product WHERE prdtnumber = =3D=20 ''
 
field prdtnumber data type=20 is integer and the empty = quote somehow=20 can be assumed into 0 (zero)
Now,  if I use the same query it = return an=20 error:
invalid input syntax for integer: = ""
 
Anyone know what's the = problem??
 
Thanks
 
Yudie
 
 
------=_NextPart_000_0008_01C4FC92.43C1DDE0--