summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-08-30 10:46:07 +0200
committerunknown <msvensson@neptunus.(none)>2005-08-30 10:46:07 +0200
commit8ee0dd5f6a96657827ed05c42690aaf8c84787d1 (patch)
treecd3bfd4855c634ace1519fa8635053af2371dde1 /sql/sql_table.cc
parent43e07c3b916bb967838c2dc5c63be3589385b4cf (diff)
parent68e3b6f5f12f14fc2848ad29c2dc2d4c5c2895fa (diff)
downloadmariadb-git-8ee0dd5f6a96657827ed05c42690aaf8c84787d1.tar.gz
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/bug12527/my50-bug12527
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 8874a70327e..35734bcc31b 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