Back to index

php5  5.3.10
php_pdo_mysql_sqlstate.h
Go to the documentation of this file.
00001 /* DO NOT EDIT THIS FILE!!! It is auto generated by get_error_codes.php */
00002 #ifdef ER_DUP_KEY                             
00003   case ER_DUP_KEY                             : return "23000";
00004 #endif
00005 #ifdef ER_OUTOFMEMORY                         
00006   case ER_OUTOFMEMORY                         : return "HY001";
00007 #endif
00008 #ifdef ER_OUT_OF_SORTMEMORY                   
00009   case ER_OUT_OF_SORTMEMORY                   : return "HY001";
00010 #endif
00011 #ifdef ER_CON_COUNT_ERROR                     
00012   case ER_CON_COUNT_ERROR                     : return "08004";
00013 #endif
00014 #ifdef ER_BAD_HOST_ERROR                      
00015   case ER_BAD_HOST_ERROR                      : return "08S01";
00016 #endif
00017 #ifdef ER_HANDSHAKE_ERROR                     
00018   case ER_HANDSHAKE_ERROR                     : return "08S01";
00019 #endif
00020 #ifdef ER_DBACCESS_DENIED_ERROR               
00021   case ER_DBACCESS_DENIED_ERROR               : return "42000";
00022 #endif
00023 #ifdef ER_ACCESS_DENIED_ERROR                 
00024   case ER_ACCESS_DENIED_ERROR                 : return "28000";
00025 #endif
00026 #ifdef ER_NO_DB_ERROR                         
00027   case ER_NO_DB_ERROR                         : return "3D000";
00028 #endif
00029 #ifdef ER_UNKNOWN_COM_ERROR                   
00030   case ER_UNKNOWN_COM_ERROR                   : return "08S01";
00031 #endif
00032 #ifdef ER_BAD_NULL_ERROR                      
00033   case ER_BAD_NULL_ERROR                      : return "23000";
00034 #endif
00035 #ifdef ER_BAD_DB_ERROR                        
00036   case ER_BAD_DB_ERROR                        : return "42000";
00037 #endif
00038 #ifdef ER_TABLE_EXISTS_ERROR                  
00039   case ER_TABLE_EXISTS_ERROR                  : return "42S01";
00040 #endif
00041 #ifdef ER_BAD_TABLE_ERROR                     
00042   case ER_BAD_TABLE_ERROR                     : return "42S02";
00043 #endif
00044 #ifdef ER_NON_UNIQ_ERROR                      
00045   case ER_NON_UNIQ_ERROR                      : return "23000";
00046 #endif
00047 #ifdef ER_SERVER_SHUTDOWN                     
00048   case ER_SERVER_SHUTDOWN                     : return "08S01";
00049 #endif
00050 #ifdef ER_BAD_FIELD_ERROR                     
00051   case ER_BAD_FIELD_ERROR                     : return "42S22";
00052 #endif
00053 #ifdef ER_WRONG_FIELD_WITH_GROUP              
00054   case ER_WRONG_FIELD_WITH_GROUP              : return "42000";
00055 #endif
00056 #ifdef ER_WRONG_GROUP_FIELD                   
00057   case ER_WRONG_GROUP_FIELD                   : return "42000";
00058 #endif
00059 #ifdef ER_WRONG_SUM_SELECT                    
00060   case ER_WRONG_SUM_SELECT                    : return "42000";
00061 #endif
00062 #ifdef ER_WRONG_VALUE_COUNT                   
00063   case ER_WRONG_VALUE_COUNT                   : return "21S01";
00064 #endif
00065 #ifdef ER_TOO_LONG_IDENT                      
00066   case ER_TOO_LONG_IDENT                      : return "42000";
00067 #endif
00068 #ifdef ER_DUP_FIELDNAME                       
00069   case ER_DUP_FIELDNAME                       : return "42S21";
00070 #endif
00071 #ifdef ER_DUP_KEYNAME                         
00072   case ER_DUP_KEYNAME                         : return "42000";
00073 #endif
00074 #ifdef ER_DUP_ENTRY                           
00075   case ER_DUP_ENTRY                           : return "23000";
00076 #endif
00077 #ifdef ER_WRONG_FIELD_SPEC                    
00078   case ER_WRONG_FIELD_SPEC                    : return "42000";
00079 #endif
00080 #ifdef ER_PARSE_ERROR                         
00081   case ER_PARSE_ERROR                         : return "42000";
00082 #endif
00083 #ifdef ER_EMPTY_QUERY                         
00084   case ER_EMPTY_QUERY                         : return "42000";
00085 #endif
00086 #ifdef ER_NONUNIQ_TABLE                       
00087   case ER_NONUNIQ_TABLE                       : return "42000";
00088 #endif
00089 #ifdef ER_INVALID_DEFAULT                     
00090   case ER_INVALID_DEFAULT                     : return "42000";
00091 #endif
00092 #ifdef ER_MULTIPLE_PRI_KEY                    
00093   case ER_MULTIPLE_PRI_KEY                    : return "42000";
00094 #endif
00095 #ifdef ER_TOO_MANY_KEYS                       
00096   case ER_TOO_MANY_KEYS                       : return "42000";
00097 #endif
00098 #ifdef ER_TOO_MANY_KEY_PARTS                  
00099   case ER_TOO_MANY_KEY_PARTS                  : return "42000";
00100 #endif
00101 #ifdef ER_TOO_LONG_KEY                        
00102   case ER_TOO_LONG_KEY                        : return "42000";
00103 #endif
00104 #ifdef ER_KEY_COLUMN_DOES_NOT_EXITS           
00105   case ER_KEY_COLUMN_DOES_NOT_EXITS           : return "42000";
00106 #endif
00107 #ifdef ER_BLOB_USED_AS_KEY                    
00108   case ER_BLOB_USED_AS_KEY                    : return "42000";
00109 #endif
00110 #ifdef ER_TOO_BIG_FIELDLENGTH                 
00111   case ER_TOO_BIG_FIELDLENGTH                 : return "42000";
00112 #endif
00113 #ifdef ER_WRONG_AUTO_KEY                      
00114   case ER_WRONG_AUTO_KEY                      : return "42000";
00115 #endif
00116 #ifdef ER_FORCING_CLOSE                       
00117   case ER_FORCING_CLOSE                       : return "08S01";
00118 #endif
00119 #ifdef ER_IPSOCK_ERROR                        
00120   case ER_IPSOCK_ERROR                        : return "08S01";
00121 #endif
00122 #ifdef ER_NO_SUCH_INDEX                       
00123   case ER_NO_SUCH_INDEX                       : return "42S12";
00124 #endif
00125 #ifdef ER_WRONG_FIELD_TERMINATORS             
00126   case ER_WRONG_FIELD_TERMINATORS             : return "42000";
00127 #endif
00128 #ifdef ER_BLOBS_AND_NO_TERMINATED             
00129   case ER_BLOBS_AND_NO_TERMINATED             : return "42000";
00130 #endif
00131 #ifdef ER_CANT_REMOVE_ALL_FIELDS              
00132   case ER_CANT_REMOVE_ALL_FIELDS              : return "42000";
00133 #endif
00134 #ifdef ER_CANT_DROP_FIELD_OR_KEY              
00135   case ER_CANT_DROP_FIELD_OR_KEY              : return "42000";
00136 #endif
00137 #ifdef ER_BLOB_CANT_HAVE_DEFAULT              
00138   case ER_BLOB_CANT_HAVE_DEFAULT              : return "42000";
00139 #endif
00140 #ifdef ER_WRONG_DB_NAME                       
00141   case ER_WRONG_DB_NAME                       : return "42000";
00142 #endif
00143 #ifdef ER_WRONG_TABLE_NAME                    
00144   case ER_WRONG_TABLE_NAME                    : return "42000";
00145 #endif
00146 #ifdef ER_TOO_BIG_SELECT                      
00147   case ER_TOO_BIG_SELECT                      : return "42000";
00148 #endif
00149 #ifdef ER_UNKNOWN_PROCEDURE                   
00150   case ER_UNKNOWN_PROCEDURE                   : return "42000";
00151 #endif
00152 #ifdef ER_WRONG_PARAMCOUNT_TO_PROCEDURE       
00153   case ER_WRONG_PARAMCOUNT_TO_PROCEDURE       : return "42000";
00154 #endif
00155 #ifdef ER_UNKNOWN_TABLE                       
00156   case ER_UNKNOWN_TABLE                       : return "42S02";
00157 #endif
00158 #ifdef ER_FIELD_SPECIFIED_TWICE               
00159   case ER_FIELD_SPECIFIED_TWICE               : return "42000";
00160 #endif
00161 #ifdef ER_UNSUPPORTED_EXTENSION               
00162   case ER_UNSUPPORTED_EXTENSION               : return "42000";
00163 #endif
00164 #ifdef ER_TABLE_MUST_HAVE_COLUMNS             
00165   case ER_TABLE_MUST_HAVE_COLUMNS             : return "42000";
00166 #endif
00167 #ifdef ER_UNKNOWN_CHARACTER_SET               
00168   case ER_UNKNOWN_CHARACTER_SET               : return "42000";
00169 #endif
00170 #ifdef ER_TOO_BIG_ROWSIZE                     
00171   case ER_TOO_BIG_ROWSIZE                     : return "42000";
00172 #endif
00173 #ifdef ER_WRONG_OUTER_JOIN                    
00174   case ER_WRONG_OUTER_JOIN                    : return "42000";
00175 #endif
00176 #ifdef ER_NULL_COLUMN_IN_INDEX                
00177   case ER_NULL_COLUMN_IN_INDEX                : return "42000";
00178 #endif
00179 #ifdef ER_PASSWORD_ANONYMOUS_USER             
00180   case ER_PASSWORD_ANONYMOUS_USER             : return "42000";
00181 #endif
00182 #ifdef ER_PASSWORD_NOT_ALLOWED                
00183   case ER_PASSWORD_NOT_ALLOWED                : return "42000";
00184 #endif
00185 #ifdef ER_PASSWORD_NO_MATCH                   
00186   case ER_PASSWORD_NO_MATCH                   : return "42000";
00187 #endif
00188 #ifdef ER_WRONG_VALUE_COUNT_ON_ROW            
00189   case ER_WRONG_VALUE_COUNT_ON_ROW            : return "21S01";
00190 #endif
00191 #ifdef ER_INVALID_USE_OF_NULL                 
00192   case ER_INVALID_USE_OF_NULL                 : return "22004";
00193 #endif
00194 #ifdef ER_REGEXP_ERROR                        
00195   case ER_REGEXP_ERROR                        : return "42000";
00196 #endif
00197 #ifdef ER_MIX_OF_GROUP_FUNC_AND_FIELDS        
00198   case ER_MIX_OF_GROUP_FUNC_AND_FIELDS        : return "42000";
00199 #endif
00200 #ifdef ER_NONEXISTING_GRANT                   
00201   case ER_NONEXISTING_GRANT                   : return "42000";
00202 #endif
00203 #ifdef ER_TABLEACCESS_DENIED_ERROR            
00204   case ER_TABLEACCESS_DENIED_ERROR            : return "42000";
00205 #endif
00206 #ifdef ER_COLUMNACCESS_DENIED_ERROR           
00207   case ER_COLUMNACCESS_DENIED_ERROR           : return "42000";
00208 #endif
00209 #ifdef ER_ILLEGAL_GRANT_FOR_TABLE             
00210   case ER_ILLEGAL_GRANT_FOR_TABLE             : return "42000";
00211 #endif
00212 #ifdef ER_GRANT_WRONG_HOST_OR_USER            
00213   case ER_GRANT_WRONG_HOST_OR_USER            : return "42000";
00214 #endif
00215 #ifdef ER_NO_SUCH_TABLE                       
00216   case ER_NO_SUCH_TABLE                       : return "42S02";
00217 #endif
00218 #ifdef ER_NONEXISTING_TABLE_GRANT             
00219   case ER_NONEXISTING_TABLE_GRANT             : return "42000";
00220 #endif
00221 #ifdef ER_NOT_ALLOWED_COMMAND                 
00222   case ER_NOT_ALLOWED_COMMAND                 : return "42000";
00223 #endif
00224 #ifdef ER_SYNTAX_ERROR                        
00225   case ER_SYNTAX_ERROR                        : return "42000";
00226 #endif
00227 #ifdef ER_ABORTING_CONNECTION                 
00228   case ER_ABORTING_CONNECTION                 : return "08S01";
00229 #endif
00230 #ifdef ER_NET_PACKET_TOO_LARGE                
00231   case ER_NET_PACKET_TOO_LARGE                : return "08S01";
00232 #endif
00233 #ifdef ER_NET_READ_ERROR_FROM_PIPE            
00234   case ER_NET_READ_ERROR_FROM_PIPE            : return "08S01";
00235 #endif
00236 #ifdef ER_NET_FCNTL_ERROR                     
00237   case ER_NET_FCNTL_ERROR                     : return "08S01";
00238 #endif
00239 #ifdef ER_NET_PACKETS_OUT_OF_ORDER            
00240   case ER_NET_PACKETS_OUT_OF_ORDER            : return "08S01";
00241 #endif
00242 #ifdef ER_NET_UNCOMPRESS_ERROR                
00243   case ER_NET_UNCOMPRESS_ERROR                : return "08S01";
00244 #endif
00245 #ifdef ER_NET_READ_ERROR                      
00246   case ER_NET_READ_ERROR                      : return "08S01";
00247 #endif
00248 #ifdef ER_NET_READ_INTERRUPTED                
00249   case ER_NET_READ_INTERRUPTED                : return "08S01";
00250 #endif
00251 #ifdef ER_NET_ERROR_ON_WRITE                  
00252   case ER_NET_ERROR_ON_WRITE                  : return "08S01";
00253 #endif
00254 #ifdef ER_NET_WRITE_INTERRUPTED               
00255   case ER_NET_WRITE_INTERRUPTED               : return "08S01";
00256 #endif
00257 #ifdef ER_TOO_LONG_STRING                     
00258   case ER_TOO_LONG_STRING                     : return "42000";
00259 #endif
00260 #ifdef ER_TABLE_CANT_HANDLE_BLOB              
00261   case ER_TABLE_CANT_HANDLE_BLOB              : return "42000";
00262 #endif
00263 #ifdef ER_TABLE_CANT_HANDLE_AUTO_INCREMENT    
00264   case ER_TABLE_CANT_HANDLE_AUTO_INCREMENT    : return "42000";
00265 #endif
00266 #ifdef ER_WRONG_COLUMN_NAME                   
00267   case ER_WRONG_COLUMN_NAME                   : return "42000";
00268 #endif
00269 #ifdef ER_WRONG_KEY_COLUMN                    
00270   case ER_WRONG_KEY_COLUMN                    : return "42000";
00271 #endif
00272 #ifdef ER_DUP_UNIQUE                          
00273   case ER_DUP_UNIQUE                          : return "23000";
00274 #endif
00275 #ifdef ER_BLOB_KEY_WITHOUT_LENGTH             
00276   case ER_BLOB_KEY_WITHOUT_LENGTH             : return "42000";
00277 #endif
00278 #ifdef ER_PRIMARY_CANT_HAVE_NULL              
00279   case ER_PRIMARY_CANT_HAVE_NULL              : return "42000";
00280 #endif
00281 #ifdef ER_TOO_MANY_ROWS                       
00282   case ER_TOO_MANY_ROWS                       : return "42000";
00283 #endif
00284 #ifdef ER_REQUIRES_PRIMARY_KEY                
00285   case ER_REQUIRES_PRIMARY_KEY                : return "42000";
00286 #endif
00287 #ifdef ER_KEY_DOES_NOT_EXITS                  
00288   case ER_KEY_DOES_NOT_EXITS                  : return "42000";
00289 #endif
00290 #ifdef ER_CHECK_NO_SUCH_TABLE                 
00291   case ER_CHECK_NO_SUCH_TABLE                 : return "42000";
00292 #endif
00293 #ifdef ER_CHECK_NOT_IMPLEMENTED               
00294   case ER_CHECK_NOT_IMPLEMENTED               : return "42000";
00295 #endif
00296 #ifdef ER_CANT_DO_THIS_DURING_AN_TRANSACTION  
00297   case ER_CANT_DO_THIS_DURING_AN_TRANSACTION  : return "25000";
00298 #endif
00299 #ifdef ER_NEW_ABORTING_CONNECTION             
00300   case ER_NEW_ABORTING_CONNECTION             : return "08S01";
00301 #endif
00302 #ifdef ER_MASTER_NET_READ                     
00303   case ER_MASTER_NET_READ                     : return "08S01";
00304 #endif
00305 #ifdef ER_MASTER_NET_WRITE                    
00306   case ER_MASTER_NET_WRITE                    : return "08S01";
00307 #endif
00308 #ifdef ER_TOO_MANY_USER_CONNECTIONS           
00309   case ER_TOO_MANY_USER_CONNECTIONS           : return "42000";
00310 #endif
00311 #ifdef ER_READ_ONLY_TRANSACTION               
00312   case ER_READ_ONLY_TRANSACTION               : return "25000";
00313 #endif
00314 #ifdef ER_NO_PERMISSION_TO_CREATE_USER        
00315   case ER_NO_PERMISSION_TO_CREATE_USER        : return "42000";
00316 #endif
00317 #ifdef ER_LOCK_DEADLOCK                       
00318   case ER_LOCK_DEADLOCK                       : return "40001";
00319 #endif
00320 #ifdef ER_NO_REFERENCED_ROW                   
00321   case ER_NO_REFERENCED_ROW                   : return "23000";
00322 #endif
00323 #ifdef ER_ROW_IS_REFERENCED                   
00324   case ER_ROW_IS_REFERENCED                   : return "23000";
00325 #endif
00326 #ifdef ER_CONNECT_TO_MASTER                   
00327   case ER_CONNECT_TO_MASTER                   : return "08S01";
00328 #endif
00329 #ifdef ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT   
00330   case ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT   : return "21000";
00331 #endif
00332 #ifdef ER_USER_LIMIT_REACHED                  
00333   case ER_USER_LIMIT_REACHED                  : return "42000";
00334 #endif
00335 #ifdef ER_SPECIFIC_ACCESS_DENIED_ERROR        
00336   case ER_SPECIFIC_ACCESS_DENIED_ERROR        : return "42000";
00337 #endif
00338 #ifdef ER_NO_DEFAULT                          
00339   case ER_NO_DEFAULT                          : return "42000";
00340 #endif
00341 #ifdef ER_WRONG_VALUE_FOR_VAR                 
00342   case ER_WRONG_VALUE_FOR_VAR                 : return "42000";
00343 #endif
00344 #ifdef ER_WRONG_TYPE_FOR_VAR                  
00345   case ER_WRONG_TYPE_FOR_VAR                  : return "42000";
00346 #endif
00347 #ifdef ER_CANT_USE_OPTION_HERE                
00348   case ER_CANT_USE_OPTION_HERE                : return "42000";
00349 #endif
00350 #ifdef ER_NOT_SUPPORTED_YET                   
00351   case ER_NOT_SUPPORTED_YET                   : return "42000";
00352 #endif
00353 #ifdef ER_WRONG_FK_DEF                        
00354   case ER_WRONG_FK_DEF                        : return "42000";
00355 #endif
00356 #ifdef ER_OPERAND_COLUMNS                     
00357   case ER_OPERAND_COLUMNS                     : return "21000";
00358 #endif
00359 #ifdef ER_SUBQUERY_NO_1_ROW                   
00360   case ER_SUBQUERY_NO_1_ROW                   : return "21000";
00361 #endif
00362 #ifdef ER_ILLEGAL_REFERENCE                   
00363   case ER_ILLEGAL_REFERENCE                   : return "42S22";
00364 #endif
00365 #ifdef ER_DERIVED_MUST_HAVE_ALIAS             
00366   case ER_DERIVED_MUST_HAVE_ALIAS             : return "42000";
00367 #endif
00368 #ifdef ER_SELECT_REDUCED                      
00369   case ER_SELECT_REDUCED                      : return "01000";
00370 #endif
00371 #ifdef ER_TABLENAME_NOT_ALLOWED_HERE          
00372   case ER_TABLENAME_NOT_ALLOWED_HERE          : return "42000";
00373 #endif
00374 #ifdef ER_NOT_SUPPORTED_AUTH_MODE             
00375   case ER_NOT_SUPPORTED_AUTH_MODE             : return "08004";
00376 #endif
00377 #ifdef ER_SPATIAL_CANT_HAVE_NULL              
00378   case ER_SPATIAL_CANT_HAVE_NULL              : return "42000";
00379 #endif
00380 #ifdef ER_COLLATION_CHARSET_MISMATCH          
00381   case ER_COLLATION_CHARSET_MISMATCH          : return "42000";
00382 #endif
00383 #ifdef ER_WARN_TOO_FEW_RECORDS                
00384   case ER_WARN_TOO_FEW_RECORDS                : return "01000";
00385 #endif
00386 #ifdef ER_WARN_TOO_MANY_RECORDS               
00387   case ER_WARN_TOO_MANY_RECORDS               : return "01000";
00388 #endif
00389 #ifdef ER_WARN_NULL_TO_NOTNULL                
00390   case ER_WARN_NULL_TO_NOTNULL                : return "22004";
00391 #endif
00392 #ifdef ER_WARN_DATA_OUT_OF_RANGE              
00393   case ER_WARN_DATA_OUT_OF_RANGE              : return "22003";
00394 #endif
00395 #ifdef ER_WRONG_NAME_FOR_INDEX                
00396   case ER_WRONG_NAME_FOR_INDEX                : return "42000";
00397 #endif
00398 #ifdef ER_WRONG_NAME_FOR_CATALOG              
00399   case ER_WRONG_NAME_FOR_CATALOG              : return "42000";
00400 #endif
00401 #ifdef ER_UNKNOWN_STORAGE_ENGINE              
00402   case ER_UNKNOWN_STORAGE_ENGINE              : return "42000";
00403 #endif
00404 #ifdef ER_TRUNCATED_WRONG_VALUE               
00405   case ER_TRUNCATED_WRONG_VALUE               : return "22007";
00406 #endif
00407 #ifdef ER_SP_NO_RECURSIVE_CREATE              
00408   case ER_SP_NO_RECURSIVE_CREATE              : return "2F003";
00409 #endif
00410 #ifdef ER_SP_ALREADY_EXISTS                   
00411   case ER_SP_ALREADY_EXISTS                   : return "42000";
00412 #endif
00413 #ifdef ER_SP_DOES_NOT_EXIST                   
00414   case ER_SP_DOES_NOT_EXIST                   : return "42000";
00415 #endif
00416 #ifdef ER_SP_LILABEL_MISMATCH                 
00417   case ER_SP_LILABEL_MISMATCH                 : return "42000";
00418 #endif
00419 #ifdef ER_SP_LABEL_REDEFINE                   
00420   case ER_SP_LABEL_REDEFINE                   : return "42000";
00421 #endif
00422 #ifdef ER_SP_LABEL_MISMATCH                   
00423   case ER_SP_LABEL_MISMATCH                   : return "42000";
00424 #endif
00425 #ifdef ER_SP_UNINIT_VAR                       
00426   case ER_SP_UNINIT_VAR                       : return "01000";
00427 #endif
00428 #ifdef ER_SP_BADSELECT                        
00429   case ER_SP_BADSELECT                        : return "0A000";
00430 #endif
00431 #ifdef ER_SP_BADRETURN                        
00432   case ER_SP_BADRETURN                        : return "42000";
00433 #endif
00434 #ifdef ER_SP_BADSTATEMENT                     
00435   case ER_SP_BADSTATEMENT                     : return "0A000";
00436 #endif
00437 #ifdef ER_UPDATE_LOG_DEPRECATED_IGNORED       
00438   case ER_UPDATE_LOG_DEPRECATED_IGNORED       : return "42000";
00439 #endif
00440 #ifdef ER_UPDATE_LOG_DEPRECATED_TRANSLATED    
00441   case ER_UPDATE_LOG_DEPRECATED_TRANSLATED    : return "42000";
00442 #endif
00443 #ifdef ER_QUERY_INTERRUPTED                   
00444   case ER_QUERY_INTERRUPTED                   : return "70100";
00445 #endif
00446 #ifdef ER_SP_WRONG_NO_OF_ARGS                 
00447   case ER_SP_WRONG_NO_OF_ARGS                 : return "42000";
00448 #endif
00449 #ifdef ER_SP_COND_MISMATCH                    
00450   case ER_SP_COND_MISMATCH                    : return "42000";
00451 #endif
00452 #ifdef ER_SP_NORETURN                         
00453   case ER_SP_NORETURN                         : return "42000";
00454 #endif
00455 #ifdef ER_SP_NORETURNEND                      
00456   case ER_SP_NORETURNEND                      : return "2F005";
00457 #endif
00458 #ifdef ER_SP_BAD_CURSOR_QUERY                 
00459   case ER_SP_BAD_CURSOR_QUERY                 : return "42000";
00460 #endif
00461 #ifdef ER_SP_BAD_CURSOR_SELECT                
00462   case ER_SP_BAD_CURSOR_SELECT                : return "42000";
00463 #endif
00464 #ifdef ER_SP_CURSOR_MISMATCH                  
00465   case ER_SP_CURSOR_MISMATCH                  : return "42000";
00466 #endif
00467 #ifdef ER_SP_CURSOR_ALREADY_OPEN              
00468   case ER_SP_CURSOR_ALREADY_OPEN              : return "24000";
00469 #endif
00470 #ifdef ER_SP_CURSOR_NOT_OPEN                  
00471   case ER_SP_CURSOR_NOT_OPEN                  : return "24000";
00472 #endif
00473 #ifdef ER_SP_UNDECLARED_VAR                   
00474   case ER_SP_UNDECLARED_VAR                   : return "42000";
00475 #endif
00476 #ifdef ER_SP_FETCH_NO_DATA                    
00477   case ER_SP_FETCH_NO_DATA                    : return "02000";
00478 #endif
00479 #ifdef ER_SP_DUP_PARAM                        
00480   case ER_SP_DUP_PARAM                        : return "42000";
00481 #endif
00482 #ifdef ER_SP_DUP_VAR                          
00483   case ER_SP_DUP_VAR                          : return "42000";
00484 #endif
00485 #ifdef ER_SP_DUP_COND                         
00486   case ER_SP_DUP_COND                         : return "42000";
00487 #endif
00488 #ifdef ER_SP_DUP_CURS                         
00489   case ER_SP_DUP_CURS                         : return "42000";
00490 #endif
00491 #ifdef ER_SP_SUBSELECT_NYI                    
00492   case ER_SP_SUBSELECT_NYI                    : return "0A000";
00493 #endif
00494 #ifdef ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG       
00495   case ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG       : return "0A000";
00496 #endif
00497 #ifdef ER_SP_VARCOND_AFTER_CURSHNDLR          
00498   case ER_SP_VARCOND_AFTER_CURSHNDLR          : return "42000";
00499 #endif
00500 #ifdef ER_SP_CURSOR_AFTER_HANDLER             
00501   case ER_SP_CURSOR_AFTER_HANDLER             : return "42000";
00502 #endif
00503 #ifdef ER_SP_CASE_NOT_FOUND                   
00504   case ER_SP_CASE_NOT_FOUND                   : return "20000";
00505 #endif
00506 #ifdef ER_DIVISION_BY_ZERO                    
00507   case ER_DIVISION_BY_ZERO                    : return "22012";
00508 #endif
00509 #ifdef ER_ILLEGAL_VALUE_FOR_TYPE              
00510   case ER_ILLEGAL_VALUE_FOR_TYPE              : return "22007";
00511 #endif
00512 #ifdef ER_PROCACCESS_DENIED_ERROR             
00513   case ER_PROCACCESS_DENIED_ERROR             : return "42000";
00514 #endif
00515 #ifdef ER_XAER_NOTA                           
00516   case ER_XAER_NOTA                           : return "XAE04";
00517 #endif
00518 #ifdef ER_XAER_INVAL                          
00519   case ER_XAER_INVAL                          : return "XAE05";
00520 #endif
00521 #ifdef ER_XAER_RMFAIL                         
00522   case ER_XAER_RMFAIL                         : return "XAE07";
00523 #endif
00524 #ifdef ER_XAER_OUTSIDE                        
00525   case ER_XAER_OUTSIDE                        : return "XAE09";
00526 #endif
00527 #ifdef ER_XAER_RMERR                          
00528   case ER_XAER_RMERR                          : return "XAE03";
00529 #endif
00530 #ifdef ER_XA_RBROLLBACK                       
00531   case ER_XA_RBROLLBACK                       : return "XA100";
00532 #endif
00533 #ifdef ER_NONEXISTING_PROC_GRANT              
00534   case ER_NONEXISTING_PROC_GRANT              : return "42000";
00535 #endif
00536 #ifdef ER_DATA_TOO_LONG                       
00537   case ER_DATA_TOO_LONG                       : return "22001";
00538 #endif
00539 #ifdef ER_SP_BAD_SQLSTATE                     
00540   case ER_SP_BAD_SQLSTATE                     : return "42000";
00541 #endif
00542 #ifdef ER_CANT_CREATE_USER_WITH_GRANT         
00543   case ER_CANT_CREATE_USER_WITH_GRANT         : return "42000";
00544 #endif
00545 #ifdef ER_SP_DUP_HANDLER                      
00546   case ER_SP_DUP_HANDLER                      : return "42000";
00547 #endif
00548 #ifdef ER_SP_NOT_VAR_ARG                      
00549   case ER_SP_NOT_VAR_ARG                      : return "42000";
00550 #endif
00551 #ifdef ER_SP_NO_RETSET                        
00552   case ER_SP_NO_RETSET                        : return "0A000";
00553 #endif
00554 #ifdef ER_CANT_CREATE_GEOMETRY_OBJECT         
00555   case ER_CANT_CREATE_GEOMETRY_OBJECT         : return "22003";
00556 #endif
00557 #ifdef ER_TOO_BIG_SCALE                       
00558   case ER_TOO_BIG_SCALE                       : return "42000";
00559 #endif
00560 #ifdef ER_TOO_BIG_PRECISION                   
00561   case ER_TOO_BIG_PRECISION                   : return "42000";
00562 #endif
00563 #ifdef ER_M_BIGGER_THAN_D                     
00564   case ER_M_BIGGER_THAN_D                     : return "42000";
00565 #endif
00566 #ifdef ER_TOO_LONG_BODY                       
00567   case ER_TOO_LONG_BODY                       : return "42000";
00568 #endif
00569 #ifdef ER_TOO_BIG_DISPLAYWIDTH                
00570   case ER_TOO_BIG_DISPLAYWIDTH                : return "42000";
00571 #endif
00572 #ifdef ER_XAER_DUPID                          
00573   case ER_XAER_DUPID                          : return "XAE08";
00574 #endif
00575 #ifdef ER_DATETIME_FUNCTION_OVERFLOW          
00576   case ER_DATETIME_FUNCTION_OVERFLOW          : return "22008";
00577 #endif
00578 #ifdef ER_ROW_IS_REFERENCED_2                 
00579   case ER_ROW_IS_REFERENCED_2                 : return "23000";
00580 #endif
00581 #ifdef ER_NO_REFERENCED_ROW_2                 
00582   case ER_NO_REFERENCED_ROW_2                 : return "23000";
00583 #endif
00584 #ifdef ER_SP_BAD_VAR_SHADOW                   
00585   case ER_SP_BAD_VAR_SHADOW                   : return "42000";
00586 #endif
00587 #ifdef ER_SP_WRONG_NAME                       
00588   case ER_SP_WRONG_NAME                       : return "42000";
00589 #endif
00590 #ifdef ER_SP_NO_AGGREGATE                     
00591   case ER_SP_NO_AGGREGATE                     : return "42000";
00592 #endif
00593 #ifdef ER_MAX_PREPARED_STMT_COUNT_REACHED     
00594   case ER_MAX_PREPARED_STMT_COUNT_REACHED     : return "42000";
00595 #endif
00596 #ifdef ER_NON_GROUPING_FIELD_USED             
00597   case ER_NON_GROUPING_FIELD_USED             : return "42000";
00598 #endif
00599 #ifdef ER_FOREIGN_DUPLICATE_KEY               
00600   case ER_FOREIGN_DUPLICATE_KEY               : return "23000";
00601 #endif
00602 #ifdef ER_CANT_CHANGE_TX_ISOLATION            
00603   case ER_CANT_CHANGE_TX_ISOLATION            : return "25001";
00604 #endif
00605 #ifdef ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT      
00606   case ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT      : return "42000";
00607 #endif
00608 #ifdef ER_WRONG_PARAMETERS_TO_NATIVE_FCT      
00609   case ER_WRONG_PARAMETERS_TO_NATIVE_FCT      : return "42000";
00610 #endif
00611 #ifdef ER_WRONG_PARAMETERS_TO_STORED_FCT      
00612   case ER_WRONG_PARAMETERS_TO_STORED_FCT      : return "42000";
00613 #endif
00614 #ifdef ER_DUP_ENTRY_WITH_KEY_NAME             
00615   case ER_DUP_ENTRY_WITH_KEY_NAME             : return "23000";
00616 #endif
00617 #ifdef ER_XA_RBTIMEOUT                        
00618   case ER_XA_RBTIMEOUT                        : return "XA106";
00619 #endif
00620 #ifdef ER_XA_RBDEADLOCK                       
00621   case ER_XA_RBDEADLOCK                       : return "XA102";
00622 #endif
00623 #ifdef ER_FUNC_INEXISTENT_NAME_COLLISION      
00624   case ER_FUNC_INEXISTENT_NAME_COLLISION      : return "42000";
00625 #endif
00626 #ifdef ER_DUP_SIGNAL_SET                      
00627   case ER_DUP_SIGNAL_SET                      : return "42000";
00628 #endif
00629 #ifdef ER_SIGNAL_WARN                         
00630   case ER_SIGNAL_WARN                         : return "01000";
00631 #endif
00632 #ifdef ER_SIGNAL_NOT_FOUND                    
00633   case ER_SIGNAL_NOT_FOUND                    : return "02000";
00634 #endif
00635 #ifdef ER_SIGNAL_EXCEPTION                    
00636   case ER_SIGNAL_EXCEPTION                    : return "HY000";
00637 #endif
00638 #ifdef ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER     
00639   case ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER     : return "0K000";
00640 #endif
00641 #ifdef ER_SPATIAL_MUST_HAVE_GEOM_COL          
00642   case ER_SPATIAL_MUST_HAVE_GEOM_COL          : return "42000";
00643 #endif
00644 #ifdef ER_DATA_OUT_OF_RANGE                   
00645   case ER_DATA_OUT_OF_RANGE                   : return "22003";
00646 #endif