ECPG, sentence not complete

Поиск
Список
Период
Сортировка
Искать

ECPG, sentence not complete

От:
Marc Cousin <cousinmarc@gmail.com>
Дата:
Hi, we're translating the ecpg.xml from scratch in french, as it seems
to have moved a lot with 9.0 and 9.1.

I'm having trouble with this:

3948       desc_next</>
3949       
3950        
3951         If the query returns more than one records, multiple linked
SQLDA structures
3952         are returned, the first record is stored in the SQLDA
returned in the
3953        
3954       

Seems to me there are some words missing, but maybe it's a continuation
to the next paragraph. Anyway I don't want to guess what should be
there, so if anyone can explain this to me :)

Cheers

Marc

Re: ECPG, sentence not complete

От:
Satoshi Nagayasu <satoshi.nagayasu@gmail.com>
Дата:
Hi,

2011/06/03 18:16, Marc Cousin wrote:
> Hi, we're translating the ecpg.xml from scratch in french, as it seems
> to have moved a lot with 9.0 and 9.1.
>
> I'm having trouble with this:
>
> 3948desc_next</>
> 3949
> 3950
> 3951         If the query returns more than one records, multiple linked
> SQLDA structures
> 3952         are returned, the first record is stored in the SQLDA
> returned in the
> 3953
> 3954
>
> Seems to me there are some words missing, but maybe it's a continuation
> to the next paragraph. Anyway I don't want to guess what should be
> there, so if anyone can explain this to me :)

This problem has been living since 9.0 or before.

I think it should be rewritten as following:
---------------------------------------------------------
If the query returns more than one records, multiple linked
SQLDA structures are returned, and desc_next</>
holds a pointer to the next element (record) in the list.
---------------------------------------------------------

Thanks,
-- 
NAGAYASU Satoshi 

Re: ECPG, sentence not complete

От:
"Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Дата:
Satoshi Nagayasu  wrote:
 
> I think it should be rewritten as following:
> ---------------------------------------------------------
> If the query returns more than one records, multiple linked
> SQLDA structures are returned, and desc_next</>
> holds a pointer to the next element (record) in the list.
> ---------------------------------------------------------
 
"more than one records" isn't right -- it could be "multiple
records" or "more than one record".
 
-Kevin

Re: ECPG, sentence not complete

От:
Marc Cousin <cousinmarc@gmail.com>
Дата:

On 06/03/2011 08:30 PM, Kevin Grittner wrote:
> Satoshi Nagayasu  wrote:
>  
>> I think it should be rewritten as following:
>> ---------------------------------------------------------
>> If the query returns more than one records, multiple linked
>> SQLDA structures are returned, and desc_next</>
>> holds a pointer to the next element (record) in the list.
>> ---------------------------------------------------------
>  
> "more than one records" isn't right -- it could be "multiple
> records" or "more than one record".
>  
> -Kevin
Hi, I've found another problem in ECPG's doc:

    
      ECPG_INFORMIX_DATE_CONVERT</>
      
       
        Functions return this value if Internally it is defined to -1210
(the
        Informix definition).
       
      
     

     
      ECPG_INFORMIX_OUT_OF_MEMORY</>
      
       
        Functions return this value if Internally it is defined to -1211
(the
        Informix definition).
       
      
     

There are a few words missing.

Cheers

Re: ECPG, sentence not complete

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
On lör, 2011-06-04 at 03:10 +0900, Satoshi Nagayasu wrote:
> Hi,
> 
> 2011/06/03 18:16, Marc Cousin wrote:
> > Hi, we're translating the ecpg.xml from scratch in french, as it seems
> > to have moved a lot with 9.0 and 9.1.
> >
> > I'm having trouble with this:
> >
> > 3948desc_next</>
> > 3949
> > 3950
> > 3951         If the query returns more than one records, multiple linked
> > SQLDA structures
> > 3952         are returned, the first record is stored in the SQLDA
> > returned in the
> > 3953
> > 3954
> >
> > Seems to me there are some words missing, but maybe it's a continuation
> > to the next paragraph. Anyway I don't want to guess what should be
> > there, so if anyone can explain this to me :)
> 
> This problem has been living since 9.0 or before.
> 
> I think it should be rewritten as following:
> ---------------------------------------------------------
> If the query returns more than one records, multiple linked
> SQLDA structures are returned, and desc_next</>
> holds a pointer to the next element (record) in the list.
> ---------------------------------------------------------

Fixed.


Re: ECPG, sentence not complete

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
On lör, 2011-06-04 at 18:52 +0200, Marc Cousin wrote:

> Hi, I've found another problem in ECPG's doc:
> 
>     
>       ECPG_INFORMIX_DATE_CONVERT</>
>       
>        
>         Functions return this value if Internally it is defined to -1210
> (the
>         Informix definition).
>        
>       
>      
> 
>      
>       ECPG_INFORMIX_OUT_OF_MEMORY</>
>       
>        
>         Functions return this value if Internally it is defined to -1211
> (the
>         Informix definition).
>        
>       
>      
> 
> There are a few words missing.

Fixed.

Re: ECPG, sentence not complete

От:
Marc Cousin <cousinmarc@gmail.com>
Дата:
Sorry to give them as small batches like that. I've found 3 other ones
(the last ones I hope, as I've finished translating everything else from
the file).
Same problem as before, there are a few words missing.

      ECPG_INFORMIX_BAD_EXPONENT</>
      
       
        Functions return this value if Internally it is defined to -1216
(the
        Informix definition).
       
      
     

     
      ECPG_INFORMIX_BAD_DATE</>
      
       
        Functions return this value if Internally it is defined to -1218
(the
        Informix definition).
       
      
     

     
      ECPG_INFORMIX_EXTRA_CHARS</>
      
       
        Functions return this value if Internally it is defined to -1264
(the
        Informix definition).
       
      

Marc

Re: ECPG, sentence not complete

От:
Bruce Momjian <bruce@momjian.us>
Дата:
Marc Cousin wrote:
> 
> On 06/03/2011 08:30 PM, Kevin Grittner wrote:
> > Satoshi Nagayasu  wrote:
> >  
> >> I think it should be rewritten as following:
> >> ---------------------------------------------------------
> >> If the query returns more than one records, multiple linked
> >> SQLDA structures are returned, and desc_next</>
> >> holds a pointer to the next element (record) in the list.
> >> ---------------------------------------------------------
> >  
> > "more than one records" isn't right -- it could be "multiple
> > records" or "more than one record".
> >  
> > -Kevin
> Hi, I've found another problem in ECPG's doc:
> 
>     
>       ECPG_INFORMIX_DATE_CONVERT</>
>       
>        
>         Functions return this value if Internally it is defined to -1210
> (the
>         Informix definition).
>        
>       
>      
> 
>      
>       ECPG_INFORMIX_OUT_OF_MEMORY</>
>       
>        
>         Functions return this value if Internally it is defined to -1211
> (the
>         Informix definition).
>        
>       
>      
> 
> There are a few words missing.

I have applied the attached patch to fix these cases, and clean up the
wording a little.  Thanks for the report.  It is great you are
translating the docs into French.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml
index 9130b12..def250c 100644
--- a/doc/src/sgml/ecpg.sgml
+++ b/doc/src/sgml/ecpg.sgml
@@ -9281,7 +9281,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if an overflow occurred in a
-        calculation. Internally it is defined to -1200 (the Informix
+        calculation. Internally it is defined as -1200 (the Informix
         definition).
        
       
@@ -9292,7 +9292,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if an underflow occurred in a calculation.
-        Internally it is defined to -1201 (the Informix definition).
+        Internally it is defined as -1201 (the Informix definition).
        
       
      
@@ -9302,7 +9302,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if an attempt to divide by zero is
-        observed. Internally it is defined to -1202 (the Informix definition).
+        observed. Internally it is defined as -1202 (the Informix definition).
        
       
      
@@ -9312,7 +9312,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if a bad value for a year was found while
-        parsing a date. Internally it is defined to -1204 (the Informix
+        parsing a date. Internally it is defined as -1204 (the Informix
         definition).
        
       
@@ -9323,7 +9323,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if a bad value for a month was found while
-        parsing a date. Internally it is defined to -1205 (the Informix
+        parsing a date. Internally it is defined as -1205 (the Informix
         definition).
        
       
@@ -9334,7 +9334,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if a bad value for a day was found while
-        parsing a date. Internally it is defined to -1206 (the Informix
+        parsing a date. Internally it is defined as -1206 (the Informix
         definition).
        
       
@@ -9346,7 +9346,7 @@ risnull(CINTTYPE, (char *) &i);
        
         Functions return this value if a parsing routine needs a short date
         representation but did not get the date string in the right length.
-        Internally it is defined to -1209 (the Informix definition).
+        Internally it is defined as -1209 (the Informix definition).
        
       
      
@@ -9356,7 +9356,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if an error occurred during date
-        formatting.  Internally it is defined to -1210 (the
+        formatting.  Internally it is defined as -1210 (the
         Informix definition).
        
       
@@ -9367,7 +9367,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if memory was exhausted during
-        their operation.  Internally it is defined to -1211 (the
+        their operation.  Internally it is defined as -1211 (the
         Informix definition).
        
       
@@ -9379,7 +9379,7 @@ risnull(CINTTYPE, (char *) &i);
        
         Functions return this value if a parsing routine was supposed to get a
         format mask (like mmddyy</>) but not all fields were listed
-        correctly. Internally it is defined to -1212 (the Informix definition).
+        correctly. Internally it is defined as -1212 (the Informix definition).
        
       
      
@@ -9392,7 +9392,7 @@ risnull(CINTTYPE, (char *) &i);
         the textual representation for a numeric value because it contains
         errors or if a routine cannot complete a calculation involving numeric
         variables because at least one of the numeric variables is invalid.
-        Internally it is defined to -1213 (the Informix definition).
+        Internally it is defined as -1213 (the Informix definition).
        
       
      
@@ -9401,7 +9401,8 @@ risnull(CINTTYPE, (char *) &i);
       ECPG_INFORMIX_BAD_EXPONENT</>
       
        
-        Functions return this value if Internally it is defined to -1216 (the
+        Functions return this value if a parsing routine cannot parse
+        an exponent.  Internally it is defined as -1216 (the
         Informix definition).
        
       
@@ -9411,7 +9412,8 @@ risnull(CINTTYPE, (char *) &i);
       ECPG_INFORMIX_BAD_DATE</>
       
        
-        Functions return this value if Internally it is defined to -1218 (the
+        Functions return this value if a parsing routine cannot parse
+        a date.  Internally it is defined as -1218 (the
         Informix definition).
        
       
@@ -9421,7 +9423,8 @@ risnull(CINTTYPE, (char *) &i);
       ECPG_INFORMIX_EXTRA_CHARS</>
       
        
-        Functions return this value if Internally it is defined to -1264 (the
+        Functions return this value if a parsing routine is passed extra
+        characters is cannot parse.  Internally it is defined as -1264 (the
         Informix definition).
        
       

Re: ECPG, sentence not complete

От:
Bruce Momjian <bruce@momjian.us>
Дата:
Marc Cousin wrote:
> Sorry to give them as small batches like that. I've found 3 other ones
> (the last ones I hope, as I've finished translating everything else from
> the file).
> Same problem as before, there are a few words missing.
> 
>       ECPG_INFORMIX_BAD_EXPONENT</>
>       
>        
>         Functions return this value if Internally it is defined to -1216
> (the
>         Informix definition).
>        
>       
>      
> 
>      
>       ECPG_INFORMIX_BAD_DATE</>
>       
>        
>         Functions return this value if Internally it is defined to -1218
> (the
>         Informix definition).
>        
>       
>      
> 
>      
>       ECPG_INFORMIX_EXTRA_CHARS</>
>       
>        
>         Functions return this value if Internally it is defined to -1264
> (the
>         Informix definition).
>        
>       
> 
> Marc

Sorry, these are the cases I fixed.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml
index 9130b12..def250c 100644
--- a/doc/src/sgml/ecpg.sgml
+++ b/doc/src/sgml/ecpg.sgml
@@ -9281,7 +9281,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if an overflow occurred in a
-        calculation. Internally it is defined to -1200 (the Informix
+        calculation. Internally it is defined as -1200 (the Informix
         definition).
        
       
@@ -9292,7 +9292,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if an underflow occurred in a calculation.
-        Internally it is defined to -1201 (the Informix definition).
+        Internally it is defined as -1201 (the Informix definition).
        
       
      
@@ -9302,7 +9302,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if an attempt to divide by zero is
-        observed. Internally it is defined to -1202 (the Informix definition).
+        observed. Internally it is defined as -1202 (the Informix definition).
        
       
      
@@ -9312,7 +9312,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if a bad value for a year was found while
-        parsing a date. Internally it is defined to -1204 (the Informix
+        parsing a date. Internally it is defined as -1204 (the Informix
         definition).
        
       
@@ -9323,7 +9323,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if a bad value for a month was found while
-        parsing a date. Internally it is defined to -1205 (the Informix
+        parsing a date. Internally it is defined as -1205 (the Informix
         definition).
        
       
@@ -9334,7 +9334,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if a bad value for a day was found while
-        parsing a date. Internally it is defined to -1206 (the Informix
+        parsing a date. Internally it is defined as -1206 (the Informix
         definition).
        
       
@@ -9346,7 +9346,7 @@ risnull(CINTTYPE, (char *) &i);
        
         Functions return this value if a parsing routine needs a short date
         representation but did not get the date string in the right length.
-        Internally it is defined to -1209 (the Informix definition).
+        Internally it is defined as -1209 (the Informix definition).
        
       
      
@@ -9356,7 +9356,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if an error occurred during date
-        formatting.  Internally it is defined to -1210 (the
+        formatting.  Internally it is defined as -1210 (the
         Informix definition).
        
       
@@ -9367,7 +9367,7 @@ risnull(CINTTYPE, (char *) &i);
       
        
         Functions return this value if memory was exhausted during
-        their operation.  Internally it is defined to -1211 (the
+        their operation.  Internally it is defined as -1211 (the
         Informix definition).
        
       
@@ -9379,7 +9379,7 @@ risnull(CINTTYPE, (char *) &i);
        
         Functions return this value if a parsing routine was supposed to get a
         format mask (like mmddyy</>) but not all fields were listed
-        correctly. Internally it is defined to -1212 (the Informix definition).
+        correctly. Internally it is defined as -1212 (the Informix definition).
        
       
      
@@ -9392,7 +9392,7 @@ risnull(CINTTYPE, (char *) &i);
         the textual representation for a numeric value because it contains
         errors or if a routine cannot complete a calculation involving numeric
         variables because at least one of the numeric variables is invalid.
-        Internally it is defined to -1213 (the Informix definition).
+        Internally it is defined as -1213 (the Informix definition).
        
       
      
@@ -9401,7 +9401,8 @@ risnull(CINTTYPE, (char *) &i);
       ECPG_INFORMIX_BAD_EXPONENT</>
       
        
-        Functions return this value if Internally it is defined to -1216 (the
+        Functions return this value if a parsing routine cannot parse
+        an exponent.  Internally it is defined as -1216 (the
         Informix definition).
        
       
@@ -9411,7 +9412,8 @@ risnull(CINTTYPE, (char *) &i);
       ECPG_INFORMIX_BAD_DATE</>
       
        
-        Functions return this value if Internally it is defined to -1218 (the
+        Functions return this value if a parsing routine cannot parse
+        a date.  Internally it is defined as -1218 (the
         Informix definition).
        
       
@@ -9421,7 +9423,8 @@ risnull(CINTTYPE, (char *) &i);
       ECPG_INFORMIX_EXTRA_CHARS</>
       
        
-        Functions return this value if Internally it is defined to -1264 (the
+        Functions return this value if a parsing routine is passed extra
+        characters is cannot parse.  Internally it is defined as -1264 (the
         Informix definition).
        
       
FAQ