List:Commits« Previous MessageNext Message »
From:Chad MILLER Date:February 24 2009 10:08am
Subject:bzr commit into mysql-5.0-bugteam branch (chad:2755) Bug#39370
View as plain text  
#At file:///Volumes/Source/src/5.0-bugteam--bug39370/ based on revid:patrick.crews@stripped

 2755 Chad MILLER	2009-02-24
      Bug#39370: wrong output for error code 153
      
      Add all HA error numbers and descriptions to perror.
      
      Add reminder to header.
      
      This is already fixed in smarter ways in future codebases, and this 
      codebase is unlikely to change, since new development is forbidden
      here.

    modified:
      extra/perror.c
      include/my_base.h
=== modified file 'extra/perror.c'
--- a/extra/perror.c	2008-11-27 12:33:40 +0000
+++ b/extra/perror.c	2009-02-24 10:05:37 +0000
@@ -97,6 +97,17 @@ static HA_ERRORS ha_errlist[]=
   { 150,"Foreign key constraint is incorrectly formed"},
   { 151,"Cannot add a child row"},
   { 152,"Cannot delete a parent row"},
+  { 153,"No savepoint with that name"},
+  { 154,"Non unique key block size"},
+  { 155,"The table does not exist in engine"},
+  { 156,"The table existed in storage engine"},
+  { 157,"Could not connect to storage engine"},
+  { 158,"NULLs are not supported in spatial index"},
+  { 159,"The table changed in storage engine"},
+  { 160,"The table changed in storage engine"},
+  { 161,"The table is not writable"},
+  { 162,"Failed to get the next autoinc value"},
+  { 163,"Failed to set the row autoinc value"},
   { -30999, "DB_INCOMPLETE: Sync didn't finish"},
   { -30998, "DB_KEYEMPTY: Key/data deleted or never created"},
   { -30997, "DB_KEYEXIST: The key/data pair already exists"},

=== modified file 'include/my_base.h'
--- a/include/my_base.h	2007-10-26 10:37:38 +0000
+++ b/include/my_base.h	2009-02-24 10:05:37 +0000
@@ -377,6 +377,7 @@ enum ha_base_keytype {
 #define HA_ERR_TABLE_READONLY    161  /* The table is not writable */
 #define HA_ERR_AUTOINC_READ_FAILED 162/* Failed to get the next autoinc value */
 #define HA_ERR_AUTOINC_ERANGE    163  /* Failed to set the row autoinc value */
+/* You must also add numbers and description to extra/perror.c ! */
 
 #define HA_ERR_LAST              163  /*Copy last error nr.*/
 /* Add error numbers before HA_ERR_LAST and change it accordingly. */


Attachment: [text/bzr-bundle] bzr/chad@mysql.com-20090224100537-0ikg679zihe3c59f.bundle
Thread
bzr commit into mysql-5.0-bugteam branch (chad:2755) Bug#39370Chad MILLER24 Feb