Navigation Menu

Skip to content

Commit

Permalink
mysql57: follow strmov() API change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 17, 2015
1 parent f0934d4 commit 82d11c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mrn_mysql_compat.h
Expand Up @@ -194,4 +194,10 @@
# define UINT_MAX64 LONGLONG_MAX
#endif

#if MYSQL_VERSION_ID >= 50706 && !defined(MRN_MARIADB_P)
# define mrn_my_stpmov(dst, src) my_stpmov(dst, src)
#else
# define mrn_my_stpmov(dst, src) strmov(dst, src)
#endif

#endif /* MRN_MYSQL_COMPAT_H_ */
2 changes: 1 addition & 1 deletion mrn_table.cpp
Expand Up @@ -856,7 +856,7 @@ MRN_SHARE *mrn_get_share(const char *table_name, TABLE *table, int *error)
share->col_flags_length = col_flags_length;
share->col_type = col_type;
share->col_type_length = col_type_length;
strmov(share->table_name, table_name);
mrn_my_stpmov(share->table_name, table_name);
share->table_share = table->s;

if (
Expand Down

0 comments on commit 82d11c9

Please sign in to comment.