summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-09-01 09:05:45 +0200
committerunknown <msvensson@neptunus.(none)>2005-09-01 09:05:45 +0200
commitb5f87344879b501a05758a2c72d38c3f378e9a40 (patch)
tree34bb86ef7b2f856d54a32916a7ca25faaeda7f0d /sql/sql_table.cc
parentd1c80dd648ecfdea14af7332395facec2d0552a4 (diff)
parent8ee0dd5f6a96657827ed05c42690aaf8c84787d1 (diff)
downloadmariadb-git-b5f87344879b501a05758a2c72d38c3f378e9a40.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0 sql/examples/ha_archive.cc: Auto merged sql/sql_table.cc: Auto merged
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index beb43100442..da10dcd3109 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -2388,11 +2388,16 @@ send_result_message:
}
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