summaryrefslogtreecommitdiff
path: root/storage/oqgraph/ha_oqgraph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/oqgraph/ha_oqgraph.cc')
-rw-r--r--storage/oqgraph/ha_oqgraph.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/storage/oqgraph/ha_oqgraph.cc b/storage/oqgraph/ha_oqgraph.cc
index 79cec499a77..c2f52e2e5a2 100644
--- a/storage/oqgraph/ha_oqgraph.cc
+++ b/storage/oqgraph/ha_oqgraph.cc
@@ -149,12 +149,13 @@ static handler* oqgraph_create_handler(handlerton *hton, TABLE_SHARE *table,
" KEY (latch, destid, origid) USING HASH "\
" ) "
-#define append_opt(NAME,VAL) \
- if (share->option_struct->VAL) \
- { \
- sql.append(STRING_WITH_LEN(" " NAME "='")); \
- sql.append_for_single_quote(share->option_struct->VAL); \
- sql.append('\''); \
+#define append_opt(NAME,VAL) \
+ if (share->option_struct->VAL) \
+ { \
+ const char *val= share->option_struct->VAL; \
+ sql.append(STRING_WITH_LEN(" " NAME "='")); \
+ sql.append_for_single_quote(val, strlen(val)); \
+ sql.append('\''); \
}
int oqgraph_discover_table_structure(handlerton *hton, THD* thd,
@@ -162,7 +163,6 @@ int oqgraph_discover_table_structure(handlerton *hton, THD* thd,
{
StringBuffer<1024> sql(system_charset_info);
sql.copy(STRING_WITH_LEN(OQGRAPH_CREATE_TABLE), system_charset_info);
-
append_opt("data_table", table_name);
append_opt("origid", origid);
append_opt("destid", destid);