item.cc:
After review fix
This commit is contained in:
parent
1b40adcb06
commit
2c8fc886b9
10
sql/item.cc
10
sql/item.cc
@ -455,16 +455,18 @@ bool DTCollation::aggregate(DTCollation &dt, uint flags)
|
|||||||
; // Do nothing
|
; // Do nothing
|
||||||
}
|
}
|
||||||
else if ((flags & MY_COLL_ALLOW_SUPERSET_CONV) &&
|
else if ((flags & MY_COLL_ALLOW_SUPERSET_CONV) &&
|
||||||
derivation <= dt.derivation &&
|
|
||||||
collation->state & MY_CS_UNICODE &&
|
collation->state & MY_CS_UNICODE &&
|
||||||
!(dt.collation->state & MY_CS_UNICODE))
|
(derivation < dt.derivation ||
|
||||||
|
(derivation == dt.derivation &&
|
||||||
|
!(dt.collation->state & MY_CS_UNICODE))))
|
||||||
{
|
{
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
else if ((flags & MY_COLL_ALLOW_SUPERSET_CONV) &&
|
else if ((flags & MY_COLL_ALLOW_SUPERSET_CONV) &&
|
||||||
dt.derivation <= derivation &&
|
|
||||||
dt.collation->state & MY_CS_UNICODE &&
|
dt.collation->state & MY_CS_UNICODE &&
|
||||||
!(collation->state & MY_CS_UNICODE))
|
(dt.derivation < derivation ||
|
||||||
|
(dt.derivation == derivation &&
|
||||||
|
!(collation->state & MY_CS_UNICODE))))
|
||||||
{
|
{
|
||||||
set(dt);
|
set(dt);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user