Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1894 05/08/24 10:41:44 msvensson@neptunus.(none) +1 -0
Improve default error message for optimize/repair table
sql/sql_table.cc
1.268 05/08/24 10:41:40 msvensson@neptunus.(none) +10 -5
Add result_code to default error message
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: neptunus.(none)
# Root: /home/msvensson/mysql/bug12527/my50-bug12527
--- 1.267/sql/sql_table.cc 2005-08-04 02:06:15 +02:00
+++ 1.268/sql/sql_table.cc 2005-08-24 10:41:40 +02:00
@@ -2388,11 +2388,16 @@
}
default: // Probably HA_ADMIN_INTERNAL_ERROR
- protocol->store("error", 5, system_charset_info);
- protocol->store("Unknown - internal error during operation", 41
- , system_charset_info);
- fatal_error=1;
- break;
+ {
+ char buf[ERRMSGSIZE+20];
+ uint length=my_snprintf(buf, ERRMSGSIZE,
+ "Unknown - internal error %d during operation",
+ result_code);
+ protocol->store("error", 5, system_charset_info);
+ protocol->store(buf, length, system_charset_info);
+ fatal_error=1;
+ break;
+ }
}
if (fatal_error)
table->table->s->version=0; // Force close of table
| Thread |
|---|
| • bk commit into 5.0 tree (msvensson:1.1894) | msvensson | 24 Aug |