X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 36C083ABF1E for ; Tue, 28 Dec 2004 21:56:32 +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 50915-08 for ; Tue, 28 Dec 2004 21:56:13 +0000 (GMT) Received: from hotmail.com (bay10-f46.bay10.hotmail.com [64.4.37.46]) by svr1.postgresql.org (Postfix) with ESMTP id 2497B3AC04C for ; Tue, 28 Dec 2004 21:51:03 +0000 (GMT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 28 Dec 2004 13:51:02 -0800 Message-ID: Received: from 62.178.117.119 by by10fd.bay10.hotmail.msn.com with HTTP; Tue, 28 Dec 2004 21:50:09 GMT X-Originating-IP: [62.178.117.119] X-Originating-Email: [seppwimmer@hotmail.com] X-Sender: seppwimmer@hotmail.com From: "Robert Wimmer" To: pgsql-interfaces@postgresql.org Subject: type cast/validation functions Date: Tue, 28 Dec 2004 21:50:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 28 Dec 2004 21:51:02.0586 (UTC) FILETIME=[530991A0:01C4ED27] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.963 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER X-Spam-Level: X-Archive-Number: 200412/52 X-Sequence-Number: 5222 as i posted a few weeks ago, it is a handicap for me writing client side appliciations with postgres, that you cant catch errorcodes - especially after type casts. so you have to rewrite type check functions for every client system. programers life would become a lot easier if one would be able to let the db-system do this work. to remove this drawback i wrote a c-module for parsing/casting input data and integrated it into postgres. if someone is interested in my solution there is a demo and a short description available at http://www.wiro.co.at/postgres/test/demo_en.php please let me know, what you think about this solution. regards sepp wimmer _________________________________________________________________ Match.com - ein Ort, an dem der Liebe keine Grenzen gesetzt sind! http://match.msn.at