From 25677bdc2e385f67f7df13c5fb25d0973e1f00d9 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 5 Apr 2007 23:22:33 +0400 Subject: [PATCH] Fix a compile failure on Windows. --- sql/set_var.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/set_var.cc b/sql/set_var.cc index 741969214bd..ea2888aec56 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -3683,7 +3683,7 @@ byte *sys_var_thd_sql_mode::value_ptr(THD *thd, enum_var_type type, ulonglong val= ((type == OPT_GLOBAL) ? global_system_variables.*offset : thd->variables.*offset); (void) symbolic_mode_representation(thd, val, &sql_mode); - return sql_mode.str; + return (byte *) sql_mode.str; }