Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 30DAA1337990 for ; Mon, 27 Sep 2010 23:38:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 37661-07 for ; Tue, 28 Sep 2010 02:38:42 +0000 (UTC) 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 E1BB91337B4C for ; Mon, 27 Sep 2010 23:38:40 -0300 (ADT) Received: by pwi1 with SMTP id 1so199283pwi.19 for ; Mon, 27 Sep 2010 19:38:41 -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=QE3TdUHv1S5ZK5BFidOf53pSbtuWjkztbJHuuQUocKk=; b=wuiYhAfwAVCmVo/GV9tQvEsM/INWe0tEZdO97vqiAulaDyrPiAWMYhXSniBT/b4Z7C k6k445A1h5EM1S0BQ1TfCw0wRcUWcFltjSGzG9sdbImZnNezMLouRocskRGFrP5meqO4 CxVAJYB7Pfm+A4b0F+LWfSJA4WKmBoqsrkNpE= 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=e7El5m40pPuElC54t//2alrGES7ucWk4wD9IRhf7eWNukqBqx0RcNMnbhvOYmpQTsj ov7mXzbNlxGD7TfRAqaOZZSJcyZJH9SUx3gEH6vuMCUvpBG1C5crbCxWXeiReXSizktT xgcMcwqhukxOwDcDPNfXVQA1F6QbU163tzq1g= Received: by 10.114.127.20 with SMTP id z20mr9575422wac.218.1285641521025; Mon, 27 Sep 2010 19:38:41 -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 c10sm11603874wam.13.2010.09.27.19.38.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 27 Sep 2010 19:38:39 -0700 (PDT) Message-ID: <4CA15534.1060602@gmail.com> Date: Tue, 28 Sep 2010 11:38:44 +0900 From: Satoshi Nagayasu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Greg Smith CC: Robert Haas , Peter Eisentraut , pgsql-docs Subject: Re: ECPG - Some errno definitions don't match to the manual References: <4C4847D0.9030001@gmail.com> <4C602E9D.40501@gmail.com> <4C60C7A9.10307@gmail.com> <4C634586.7090908@gmail.com> <1285502270.1601.1.camel@vanquo.pezone.net> <4CA11FF7.1090403@gmail.com> <4CA13D11.7050905@gmail.com> <4CA1458F.9030707@2ndquadrant.com> In-Reply-To: <4CA1458F.9030707@2ndquadrant.com> Content-Type: multipart/mixed; boundary="------------080007090306030809060309" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201009/130 X-Sequence-Number: 6120 This is a multi-part message in MIME format. --------------080007090306030809060309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2010/09/28 10:31, Greg Smith wrote: > If the patch you generated applies to the git version of the repo cleanly, you may be fine for now. The anon-cvs version is mainly intended as a source to get a copy of the source code just to compile or read, not to develop patches against. For that it would be better to switch to git when you get some time to spend on that. So, I have created another patch from git repository. The attached one could be applied to the latest code. Thanks, -- NAGAYASU Satoshi --------------080007090306030809060309 Content-Type: text/plain; name="ecpg-git.sgml.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ecpg-git.sgml.diff" diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml index 3245064..e45ca77 100644 --- a/doc/src/sgml/ecpg.sgml +++ b/doc/src/sgml/ecpg.sgml @@ -4794,11 +4794,31 @@ struct + 0 (ECPG_NO_ERROR) + + + Indicates 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) - Indicates that your virtual memory is exhausted. (SQLSTATE - YE001) + Indicates that your virtual memory is exhausted, defined as -ENOMEM. + (SQLSTATE YE001) @@ -4886,6 +4906,54 @@ struct + -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) @@ -4939,6 +5007,18 @@ struct + -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) @@ -4969,6 +5049,18 @@ struct + -239 (ECPG_INFORMIX_DUPLICATE_KEY) + + + Duplicate key error, and a violation for the unique + constraint (Informix compatible mode). + (SQLSTATE 23505) + + + + + + -240 (ECPG_UNKNOWN_DESCRIPTOR) @@ -5021,6 +5113,16 @@ struct + -284 (ECPG_INFORMIX_SUBSELECT_NOT_ONE) + + + A result of the subquery is not single row (Informix compatibie mode). + (SQLSTATE 21000) + + + + + -400 (ECPG_PGSQL) @@ -5053,15 +5155,80 @@ struct - 100 (ECPG_NOT_FOUND) + -403 (ECPG_DUPLICATE_KEY) - 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) + 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) + + + + --------------080007090306030809060309--