Update ecpglib error code listing
authorPeter Eisentraut
Wed, 29 Sep 2010 10:58:35 +0000 (13:58 +0300)
committerPeter Eisentraut
Wed, 29 Sep 2010 10:58:35 +0000 (13:58 +0300)
Satoshi Nagayasu

doc/src/sgml/ecpg.sgml

index 3245064375c7ef1618127838485117746244a2a1..645a6faafae2926f8a62bd63c17b524c0a7d9bc0 100644 (file)
@@ -4793,11 +4793,32 @@ struct
     These are the assigned SQLCODE values:
 
     
+     
+      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
+        Indicates that your virtual memory is exhausted.  The numeric
+        value is defined as -ENOMEM.  (SQLSTATE
         YE001)
       
      
@@ -4885,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 value.
+       (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 an interval value.
+       (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 value.
+       (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 value.
+       (SQLSTATE 42804)
+      
+     
+    
+
     
      -211 (ECPG_CONVERT_BOOL)
      
@@ -4938,6 +5007,19 @@ struct
      
     
 
+
+    
+    
+     -216 (ECPG_ARRAY_INSERT)
+     
+      
+       The value could not be inserted into the array.  (SQLSTATE
+       42804)
+      
+     
+    
+]]>
+
     
      -220 (ECPG_NO_CONN)
      
@@ -4968,6 +5050,16 @@ struct
      
     
 
+    
+     -239 (ECPG_INFORMIX_DUPLICATE_KEY)
+     
+      
+       Duplicate key error, violation of unique constraint (Informix
+       compatibility mode).  (SQLSTATE 23505)
+      
+     
+    
+
     
      -240 (ECPG_UNKNOWN_DESCRIPTOR)
      
@@ -5020,6 +5112,16 @@ struct
      
     
 
+    
+     -284 (ECPG_INFORMIX_SUBSELECT_NOT_ONE)
+     
+      
+       A result of the subquery is not single row (Informix
+       compatibility mode).  (SQLSTATE 21000)
+      
+     
+    
+
     
      -400 (ECPG_PGSQL)
      
@@ -5053,15 +5155,82 @@ 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, violation of unique constraint.  (SQLSTATE
+       23505)
       
      
     
+
+    
+     -404 (ECPG_SUBSELECT_NOT_ONE)
+     
+      
+       A result for the subquery is not single row. (SQLSTATE 21000)
+      
+     
+    
+
+
+    
+    
+     -600 (ECPG_WARNING_UNRECOGNIZED)
+     
+      
+       An unrecognized warning was received from the server.
+      
+     
+    
+
+    
+     -601 (ECPG_WARNING_QUERY_IGNORED)
+     
+      
+       Current transaction is aborted.  Queries are ignored until the
+       end of the transaction block.
+      
+     
+    
+]]>
+
+    
+     -602 (ECPG_WARNING_UNKNOWN_PORTAL)
+     
+      
+       An invalid cursor name was specified. (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 was specified. (SQLSTATE 42P03)
+      
+     
+    
+