Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7550D632872 for ; Tue, 10 Aug 2010 00:29:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 04242-03; Tue, 10 Aug 2010 03:29:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f46.google.com (mail-pw0-f46.google.com [209.85.160.46]) by mail.postgresql.org (Postfix) with ESMTP id 82857632739; Tue, 10 Aug 2010 00:29:40 -0300 (ADT) Received: by pwj7 with SMTP id 7so1584805pwj.19 for ; Mon, 09 Aug 2010 20:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=rOhr0Id3z4HIboQzEHBb3FbzQ2+9ahdsg3V+0L/+lh4=; b=Y1k4EmNhIluM7+aXRfYV5hyXQIr8xUOate1lqyqfk7/AijlS6G15HyR865ZoC7oRIk 2I3QdQrFuA38i3WTN2AFmb+Ti5ovLbyArHS3vk2+T7lE/ZduZUCm/Ofsni//q6xdCCbH O4E++on/zK/DyLBA+mgPydkdxv81Tvg0wiciM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=Z8ixSnSdiEq1BMHNDv8so79nU+aAksxXJaYPMuJuPzk49cUPWVOYKQ3x1Tdfi9wLvZ kPkR9cPI9vUulmqS/PeFgcGfie+4iMgQlsoBZqFnkZAaQv59saKVC8tBNPSZl3MEZp9M JJ6K7FW95Tlb25CztvJgYC0uLjMyMTkwBlkbk= Received: by 10.114.131.19 with SMTP id e19mr16020289wad.147.1281410979328; Mon, 09 Aug 2010 20:29:39 -0700 (PDT) Received: from [10.0.2.101] (p0245ed.tokyff01.ap.so-net.ne.jp [121.2.69.237]) by mx.google.com with ESMTPS id s5sm11783430wak.12.2010.08.09.20.29.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 09 Aug 2010 20:29:36 -0700 (PDT) Message-ID: <4C60C7A9.10307@gmail.com> Date: Tue, 10 Aug 2010 12:29:45 +0900 From: Satoshi Nagayasu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Robert Haas CC: pgsql-docs , Michael Meskes Subject: Re: ECPG - Some errno definitions don't match to the manual References: <4C4847D0.9030001@gmail.com> <4C602E9D.40501@gmail.com> In-Reply-To: <4C602E9D.40501@gmail.com> Content-Type: multipart/mixed; boundary="------------070209020905020205080606" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-5 required=5 tests=BAYES_50=0.8, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/17 X-Sequence-Number: 5841 This is a multi-part message in MIME format. --------------070209020905020205080606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2010/08/10 1:36, Satoshi Nagayasu wrote: > On 2010/08/09 21:27, Robert Haas wrote: >>> I'm now investigating SQLCODE and SQLSTATE, and I have found >>> that some of the errno definitions don't match to the manual. > >>> What does it mean? The manual is not up to date? >> >> Yeah, I think that's what it means. Perhaps you could provide a patch >> for the docs? > > Sure, I will make a patch for this. Please wait a moment. A patch to fix this problem is attached. Please take a look. Regards, -- NAGAYASU Satoshi --------------070209020905020205080606 Content-Type: text/plain; name="ecpg.sgml.90b1.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ecpg.sgml.90b1.patch" *** ecpg.sgml.orig 2010-05-13 09:55:05.000000000 +0900 --- ecpg.sgml 2010-08-10 12:21:42.000000000 +0900 *************** *** 4791,4796 **** --- 4791,4816 ---- + 0 (ECPG_NO_ERROR) + + + (SQLSTATE 00000) + + + + + + 100 (ECPG_NOT_FOUND) + + + This is a harmless condition indicating that the last command + retrieved or processed zero rows, or that you are at the end of + the cursor. (SQLSTATE 02000) + + + + + -12 (ECPG_OUT_OF_MEMORY) *************** *** 4883,4889 **** ! -207 (ECPG_CONVERT_BOOL) This means the host variable is of type bool and --- 4903,4957 ---- ! -207 (ECPG_NUMERIC_FORMAT) ! ! ! The host variable is of type numeric and the datum ! in the database is of another type and contains a value that ! cannot be interpreted as a numeric. ! (SQLSTATE 42804) ! ! ! ! ! ! -208 (ECPG_INTERVAL_FORMAT) ! ! ! The host variable is of type interval and the datum ! in the database is of another type and contains a value that ! cannot be interpreted as a interval. ! (SQLSTATE 42804) ! ! ! ! ! ! -209 (ECPG_DATE_FORMAT) ! ! ! The host variable is of type date and the datum in ! the database is of another type and contains a value that ! cannot be interpreted as a date. ! (SQLSTATE 42804) ! ! ! ! ! ! -210 (ECPG_TIMESTAMP_FORMAT) ! ! ! The host variable is of type timestamp and the ! datum in the database is of another type and contains a value ! that cannot be interpreted as a timestamp. ! (SQLSTATE 42804) ! ! ! ! ! ! -211 (ECPG_CONVERT_BOOL) This means the host variable is of type bool and *************** *** 4894,4900 **** ! -208 (ECPG_EMPTY) The statement sent to the PostgreSQL --- 4962,4968 ---- ! -212 (ECPG_EMPTY) The statement sent to the PostgreSQL *************** *** 4906,4912 **** ! -209 (ECPG_MISSING_INDICATOR) A null value was returned and no null indicator variable was --- 4974,4980 ---- ! -213 (ECPG_MISSING_INDICATOR) A null value was returned and no null indicator variable was *************** *** 4916,4922 **** ! -210 (ECPG_NO_ARRAY) An ordinary variable was used in a place that requires an --- 4984,4990 ---- ! -214 (ECPG_NO_ARRAY) An ordinary variable was used in a place that requires an *************** *** 4926,4932 **** ! -211 (ECPG_DATA_NOT_ARRAY) The database returned an ordinary variable in a place that --- 4994,5000 ---- ! -215 (ECPG_DATA_NOT_ARRAY) The database returned an ordinary variable in a place that *************** *** 4936,4941 **** --- 5004,5021 ---- + -216 (ECPG_ARRAY_INSERT) + + + The value could not be inserted into the array.(This is + disabled by #if 0 in + ecpg.) + (SQLSTATE 42804) + + + + + -220 (ECPG_NO_CONN) *************** *** 4966,4971 **** --- 5046,5063 ---- + -239 (ECPG_INFORMIX_DUPLICATE_KEY) + + + Duplicate key error, and a violation for the unique + constraint (Informix compatible mode). + (SQLSTATE 23505) + + + + + + -240 (ECPG_UNKNOWN_DESCRIPTOR) *************** *** 5018,5023 **** --- 5110,5125 ---- + -284 (ECPG_INFORMIX_SUBSELECT_NOT_ONE) + + + A result of the subquery is not single row (Informix compatibie mode). + (SQLSTATE 21000) + + + + + -400 (ECPG_PGSQL) *************** *** 5050,5064 **** ! 100 (ECPG_NOT_FOUND) ! This is a harmless condition indicating that the last command ! retrieved or processed zero rows, or that you are at the end of ! the cursor. (SQLSTATE 02000) --- 5152,5231 ---- ! -403 (ECPG_DUPLICATE_KEY) ! Duplicate key error, and a violation for the unique ! constraint. ! (SQLSTATE 23505) ! ! ! ! ! ! -404 (ECPG_SUBSELECT_NOT_ONE) ! ! ! A result for the subquery is not single row. (SQLSTATE 21000) ! ! ! ! ! ! -600 (ECPG_WARNING_UNRECOGNIZED) ! ! ! A query is ignored by the END. ! ! ! ! ! ! -601 (ECPG_WARNING_QUERY_IGNORED) ! ! ! Current transaction is aborted. Query is ignored by end of the ! transaction block. ! ! ! ! ! ! -602 (ECPG_WARNING_UNKNOWN_PORTAL) ! ! ! Invalid cursor name is given. (SQLSTATE 34000) ! ! ! ! ! ! -603 (ECPG_WARNING_IN_TRANSACTION) ! ! ! Transaction is in progress. (SQLSTATE 25001) ! ! ! ! ! ! -604 (ECPG_WARNING_NO_TRANSACTION) ! ! ! There is no active (in-progress) transaction. (SQLSTATE 25P01) + + + -605 (ECPG_WARNING_PORTAL_EXISTS) + + + An existing cursor name is specified. (SQLSTATE 42P03) + + + + --------------070209020905020205080606--