Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8427F632472 for ; Wed, 30 Jun 2010 05:12:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 12582-10 for ; Wed, 30 Jun 2010 08:12:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moon.antora.ru (moon.antora.ru [89.111.189.180]) by mail.postgresql.org (Postfix) with ESMTP id 944A5632422 for ; Wed, 30 Jun 2010 05:12:51 -0300 (ADT) Envelope-to: pgsql-sql@postgresql.org Received: from moon.inner.space ([10.1.1.5] helo=moon.antora.ru) by moon.antora.ru with esmtp (Exim 4.67) (envelope-from ) id 1OTsPY-0000zw-4e for pgsql-sql@postgresql.org; Wed, 30 Jun 2010 12:12:48 +0400 Received: from [192.168.1.6] [178.34.125.239] by moon.antora.ru (Axigen) with (DHE-RSA-AES256-SHA encrypted) ESMTPSA id 070A16; Wed, 30 Jun 2010 12:12:47 +0400 Message-ID: <4C2AFC7E.2050806@bankir.ru> Date: Wed, 30 Jun 2010 12:12:46 +0400 From: silly sad User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20100111 Thunderbird/3.0 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: How to select text field as interger References: <4C2A5CB4.3000601@s-wise.nl> <25124.1277849228@sss.pgh.pa.us> In-Reply-To: <25124.1277849228@sss.pgh.pa.us> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.57 tagged_above=-5 required=5 tests=BAYES_50=0.8, RCVD_IN_SORBS_WEB=0.77 X-Spam-Level: * X-Archive-Number: 201006/120 X-Sequence-Number: 34311 >> | SELECT Name FROM Test WHERE Name::INT = 1; > > But note that this is going to throw an error if there are any table > rows where the name field *doesn't* contain a valid integer. and it recalls the problem of error suppressing once again