~percona-core/percona-server/5.5

« back to all changes in this revision

Viewing changes to sql/sql_priv.h

  • Committer: Laurynas Biveinis
  • Date: 2014-09-24 09:00:06 UTC
  • mfrom: (0.16977.27 mysql-5.5.40-release)
  • mto: This revision was merged to the branch mainline in revision 699.
  • Revision ID: laurynas.biveinis@percona.com-20140924090006-ncu1gugac5p7j7yj
Merge MySQL 5.5.40, implementing
https://blueprints.launchpad.net/percona-server/+spec/merge-5.5.40.

It also takes the upstream fix for bug 1366073 aka
http://bugs.mysql.com/bug.php?id=73834, aka 
http://bugs.mysql.com/bug.php?id=73761.

Update man pages from mysql-5.5.40.tar.gz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
 
1
/* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
   This program is free software; you can redistribute it and/or modify
4
4
   it under the terms of the GNU General Public License as published by
59
59
                        (Old), (New));                                      \
60
60
  } while(0)
61
61
 
 
62
 
 
63
/*
 
64
  Generates a warning that a feature is deprecated and there is no replacement.
 
65
 
 
66
  Using it as
 
67
 
 
68
  WARN_DEPRECATED_NO_REPLACEMENT(thd, "BAD");
 
69
 
 
70
  Will result in a warning
 
71
 
 
72
  "'BAD' is deprecated and will be removed in a future release."
 
73
 
 
74
   Note that in macro arguments BAD is not quoted.
 
75
*/
 
76
 
 
77
#define WARN_DEPRECATED_NO_REPLACEMENT(Thd,Old)                             \
 
78
  do {                                                                      \
 
79
    if (((THD *) Thd) != NULL)                                              \
 
80
      push_warning_printf(((THD *) Thd), MYSQL_ERROR::WARN_LEVEL_WARN,    \
 
81
                        ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT,           \
 
82
                        ER(ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT),       \
 
83
                        (Old));                                             \
 
84
    else                                                                    \
 
85
      sql_print_warning("'%s' is deprecated and will be removed "           \
 
86
                        "in a future release.", (Old));                     \
 
87
  } while(0)
 
88
 
62
89
/*************************************************************************/
63
90
 
64
91
#endif