diff options
author | cbell/Chuck@mysql_cab_desk. <> | 2007-01-18 17:29:40 -0500 |
---|---|---|
committer | cbell/Chuck@mysql_cab_desk. <> | 2007-01-18 17:29:40 -0500 |
commit | ab8200aed827f6d28471205d1defabf600e201b7 (patch) | |
tree | c6e69d27b823cee7af21c8e232e5e3f585cd1c0d /sql/mysql_priv.h | |
parent | 044bb38433e5f8c3309a2cf156b4fa244667857a (diff) | |
parent | fc0adebe0eb34e94eacc7a677a1d55b349131953 (diff) | |
download | mariadb-git-ab8200aed827f6d28471205d1defabf600e201b7.tar.gz |
Merge mysql_cab_desk.:C:/source/c++/mysql-5.0-rpl
into mysql_cab_desk.:C:/source/c++/mysql-5.0_BUG_21490
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r-- | sql/mysql_priv.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 8ffa73d1707..5a84d8b1335 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -91,6 +91,18 @@ char* query_table_status(THD *thd,const char *db,const char *table_name); #define PREV_BITS(type,A) ((type) (((type) 1 << (A)) -1)) #define all_bits_set(A,B) ((A) & (B) != (B)) +#define WARN_DEPRECATED(Thd,Ver,Old,New) \ + do { \ + DBUG_ASSERT(strncmp(Ver, MYSQL_SERVER_VERSION, sizeof(Ver)-1) > 0); \ + if (Thd != NULL) \ + push_warning_printf(((THD *)Thd), MYSQL_ERROR::WARN_LEVEL_WARN, \ + ER_WARN_DEPRECATED_SYNTAX, ER(ER_WARN_DEPRECATED_SYNTAX), \ + (Old), (Ver), (New)); \ + else \ + sql_print_warning("The syntax %s is deprecated and will be removed " \ + "in MySQL %s. Please use %s instead.", (Old), (Ver), (New)); \ + } while(0) + extern CHARSET_INFO *system_charset_info, *files_charset_info ; extern CHARSET_INFO *national_charset_info, *table_alias_charset; |