X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2FD2BD95CE for ; Mon, 24 Oct 2005 10:02:21 -0300 (ADT) 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 20007-03 for ; Mon, 24 Oct 2005 13:02:15 +0000 (GMT) Received: from majolee.info (dnsroots.com [70.85.141.98]) by svr1.postgresql.org (Postfix) with ESMTP id B3863D81A9 for ; Mon, 24 Oct 2005 10:02:17 -0300 (ADT) Received: from MI11 [220.224.38.121] by majolee.info with ESMTP (SMTPD32-8.05) id AB5112A700D0; Mon, 24 Oct 2005 07:02:09 -0600 Message-ID: <00a101c5d89b$296bfa80$0100a8c0@MI11> From: "Partners Majolee Infotech" To: Subject: Date type in pl/pgsql function checking passed parameter Date: Mon, 24 Oct 2005 18:32:10 +0530 X-Unsent: 1 MIME-Version: 1.0 CustomID: 25 UID: 165845 Alert: 1 Content-Type: multipart/alternative; boundary="----=_NextPart_000_009D_01C5D8C9.3EDB9050" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-mxGuard-Info: Processed by dnsroots.com using mxGuard v1.6.2 X-mxGuard-Spool-ID: db5112a700d0c8d4 X-mxGuard-Auth-Sender: info@majolee.info@majolee.info X-mxGuard-Sender: info@majolee.info X-mxGuard-Spam-Score: 0 X-mxGuard-Spam-Probability: CLEAN X-Note: This message has been scanned for spam and viruses. X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.395 required=5 tests=[AWL=-1.317, FORGED_RCVD_HELO=0.05, HTML_IMAGE_ONLY_16=1.279, HTML_MESSAGE=0.001, HTML_TEXT_AFTER_BODY=0.151, HTML_TEXT_AFTER_HTML=0.205, RCVD_IN_NJABL_PROXY=1.026] X-Spam-Level: * X-Archive-Number: 200510/42 X-Sequence-Number: 3310 This is a multi-part message in MIME format. ------=_NextPart_000_009D_01C5D8C9.3EDB9050 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello All, We have a pl/pgsql function functionName(date) .. here if it has been = called using functionName('23456') it gives error .. we need to raise an = exception(customized error message) if the passed value is not date.. = how can we do that. Thanks.. ------=_NextPart_000_009D_01C5D8C9.3EDB9050 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello All,
 
We have a pl/pgsql function = functionName(date) ..=20 here if it has been called using functionName('23456') it gives error .. = we need=20 to raise an exception(customized error message) if the passed value is = not=20 date.. how can we do that.
 
Thanks..



Make sure YOUR emails = don't get lost! Download Mailinfo here = =00 ------=_NextPart_000_009D_01C5D8C9.3EDB9050--