diff options
author | bar@mysql.com <> | 2005-08-08 16:20:46 +0500 |
---|---|---|
committer | bar@mysql.com <> | 2005-08-08 16:20:46 +0500 |
commit | 2c8fc886b91903d0cbb9064c64c7209ee816369e (patch) | |
tree | 1b6d1ab9f966007d5d954596b5dbc5426f1cbf17 /sql | |
parent | 1b40adcb064b96064bc71d975f054579b41fa378 (diff) | |
download | mariadb-git-2c8fc886b91903d0cbb9064c64c7209ee816369e.tar.gz |
item.cc:
After review fix
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/item.cc b/sql/item.cc index 41cda365750..b3d2932acf6 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -455,16 +455,18 @@ bool DTCollation::aggregate(DTCollation &dt, uint flags) ; // Do nothing } else if ((flags & MY_COLL_ALLOW_SUPERSET_CONV) && - derivation <= dt.derivation && 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 } else if ((flags & MY_COLL_ALLOW_SUPERSET_CONV) && - dt.derivation <= derivation && dt.collation->state & MY_CS_UNICODE && - !(collation->state & MY_CS_UNICODE)) + (dt.derivation < derivation || + (dt.derivation == derivation && + !(collation->state & MY_CS_UNICODE)))) { set(dt); } |