We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5860c36 commit f96c56cCopy full SHA for f96c56c
1 file changed
sql/vers_string.h
@@ -63,11 +63,11 @@ struct Lex_cstring_with_compare : public Lex_cstring
63
{ }
64
bool streq(const Lex_cstring_with_compare& b) const
65
{
66
+ if (length != b.length)
67
+ return false;
68
if (str == NULL || b.str == NULL)
- return str == b.str && length == b.length;
-
69
- return length == b.length &&
70
- 0 == Compare()(*this, b);
+ return str == b.str;
+ return length == 0 || 0 == Compare()(*this, b);
71
}
72
operator const char* () const
73
0 commit comments