X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 819753A42B4 for ; Fri, 12 Nov 2004 13:01:29 +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 91951-01 for ; Fri, 12 Nov 2004 13:01:12 +0000 (GMT) Received: from fw.qcm.cz (fw.qcm.cz [194.213.51.18]) by svr1.postgresql.org (Postfix) with ESMTP id 6525D3A408F for ; Fri, 12 Nov 2004 13:01:14 +0000 (GMT) Received: from fw.qcm.cz (root@localhost) by fw.qcm.cz (8.12.9-20030917/8.12.9) with SMTP id iACD1DhK004015 for ; Fri, 12 Nov 2004 14:01:13 +0100 Received: from xeon.qcm.cz (xeon.qcm.cz [192.168.10.2]) by fw.qcm.cz (8.12.9-20030917/8.12.9) with ESMTP id iACD1Chm004010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 12 Nov 2004 14:01:12 +0100 Received: from [192.168.10.32] ([192.168.10.32]) by xeon.qcm.cz (8.12.9-20030917/8.12.9) with ESMTP id iACD1AjS000418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 12 Nov 2004 14:01:12 +0100 Message-ID: <4194B417.9020206@volny.cz> Date: Fri, 12 Nov 2004 14:01:11 +0100 From: Dawid Ferenczy User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-php@postgresql.org Subject: PgSQL error codes in PHP X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/8 X-Sequence-Number: 2952 Hi, I need help, please - I tried Google, some specialized mailinglist and I got no result for a week. I would like to determine PgSQL error codes in PHP after executing a query, but I found functions for getting error messages only which I found not usable (messages are often localised and so on). On PHP manual pages is for that reason some patch, but only for PHP 4.x and with broken link ;) I need solution in PHP 5. For example: 'CREATE TABLE xxx;' If table already exists, PgSQL return error message "Relation xxx already exists" or "Relace xxx jiz existuje" in czech language and (not in UTF-8 coding ;) So now, I know that some error occurs but I cannot determine cause :( (compare error messages is nonsense). If I'll not find relevant solution, I'm going to write this function in PgSQL extension (oh my God!!! [I'm atheist ;) ]) Sorry for my english, it isn't my strong side, if you want I'll welcome some language corrections ;) Thanx a lot, you are my last chance before I'll go to write my own implementation... -- Dawid Ferenczy http://xcoder.jinak.cz ICQ: 85997864