summaryrefslogtreecommitdiff
path: root/storage/connect/reldef.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2013-02-13 00:51:41 +0100
committerOlivier Bertrand <bertrandop@gmail.com>2013-02-13 00:51:41 +0100
commitc523370389e5ce9c65dd6b532b44d4d06d1d7762 (patch)
tree4f7ece432adcf4000ac6c1057e7d84dd1f999e0a /storage/connect/reldef.cpp
parent5fc2a7daddb7cbb4668c51e840771ade5f7340cc (diff)
downloadmariadb-git-c523370389e5ce9c65dd6b532b44d4d06d1d7762.tar.gz
Fix bug on readonly table option not recognized
in TABDEF::Define line 104 Modified: reldef.cpp Add a warning on alter in check_if_incompatible_data. Modified: ha_connect.cc
Diffstat (limited to 'storage/connect/reldef.cpp')
-rw-r--r--storage/connect/reldef.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/connect/reldef.cpp b/storage/connect/reldef.cpp
index 98b2266b264..17eecf269c4 100644
--- a/storage/connect/reldef.cpp
+++ b/storage/connect/reldef.cpp
@@ -101,8 +101,7 @@ bool TABDEF::Define(PGLOBAL g, PCATLG cat, LPCSTR name, LPCSTR am)
Elemt = cat->GetIntCatInfo(name, "Elements", 0);
Multiple = cat->GetIntCatInfo(name, "Multiple", 0);
Degree = cat->GetIntCatInfo(name, "Degree", 0);
- cat->GetCharCatInfo(name, "ReadOnly", "No", buf, sizeof(buf));
- Read_Only = (toupper(*buf) == 'Y');
+ Read_Only = cat->GetBoolCatInfo(name, "ReadOnly", false);
// Get The column definitions
if ((poff = cat->GetColCatInfo(g, this)) < 0)