summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-07-15 20:43:57 +0200
committerunknown <serg@serg.mylan>2003-07-15 20:43:57 +0200
commita022f0bce2826a5390cb6db35108960594bc3a18 (patch)
tree587e193ec21590a7396426468783cefd1e788609 /sql/handler.cc
parent70a2589519010628a618d959a06da90cbdfab438 (diff)
downloadmariadb-git-a022f0bce2826a5390cb6db35108960594bc3a18.tar.gz
bug #702 - ALTER TABLE tm UNION=(t1,t2) doesn't work if t1.MYD is compressed
myisammrg/myrg_open.c: never mark merge table as readonly even if all underlying myisam tables are readonly, otherwise ALTER TABLE merge UNION=(t1,t2,t3,...) will not work sql/handler.cc: map EACCES to ER_OPEN_AS_READONLY. can only happen on modifying merge table that has (some) read-only myisam tables
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 4ea5bc0e9f5..505f64dff43 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -801,6 +801,9 @@ void handler::print_error(int error, myf errflag)
int textno=ER_GET_ERRNO;
switch (error) {
+ case EACCES:
+ textno=ER_OPEN_AS_READONLY;
+ break;
case EAGAIN:
textno=ER_FILE_USED;
break;