diff options
author | Igor Babaev <igor@askmonty.org> | 2011-05-19 20:01:43 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-05-19 20:01:43 -0700 |
commit | 8e33aa9aa7a9d774b3f33a66cb3bd1416de9a0ae (patch) | |
tree | 23b56d29b235aebde574eb3d3c0a62942a548a10 /sql/item.h | |
parent | 54a3d1869c609407488782fd74c345b408dc9cdc (diff) | |
parent | 016a09cb7d40236c3530ae4c5c4815072aa8dacb (diff) | |
download | mariadb-git-8e33aa9aa7a9d774b3f33a66cb3bd1416de9a0ae.tar.gz |
Merged the fix for bug 777745 into 5.3.
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/sql/item.h b/sql/item.h index 2a6d944147a..9bb00c5db84 100644 --- a/sql/item.h +++ b/sql/item.h @@ -1094,12 +1094,23 @@ public: return FALSE; } + /* + The enumeration Subst_constraint is currently used only in implementations + of the virtual function subst_argument_checker. + */ + enum Subst_constraint + { + NO_SUBST= 0, /* No substitution for a field is allowed */ + ANY_SUBST, /* Any substitution for a field is allowed */ + IDENTITY_SUBST /* Substitution for a field is allowed if any two + different values of the field type are not equal */ + }; + virtual bool subst_argument_checker(uchar **arg) - { - if (*arg) - *arg= NULL; - return TRUE; + { + return (*arg != NULL); } + /* @brief Processor used to check acceptability of an item in the defining |