diff options
author | unknown <bell@sanja.is.com.ua> | 2002-12-08 23:56:40 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-12-08 23:56:40 +0200 |
commit | 3b24e7c0657377283356d934f4da11e3b940f80b (patch) | |
tree | 20dd8cd61d48d5fd9ab0d3674598cc0894b526aa | |
parent | 230f5f3b0f65f0c02c49ed6456450f31caa779ea (diff) | |
download | mariadb-git-3b24e7c0657377283356d934f4da11e3b940f80b.tar.gz |
fixed typo in cardinality check of row items (SCRUM)
sql/item_cmpfunc.cc:
fixed typo
-rw-r--r-- | sql/item_cmpfunc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 370feb65e3a..0bcda36338e 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -145,9 +145,9 @@ int Arg_comparator::set_compare_func(Item_bool_func2 *item, Item_result type) if ((comparators= (Arg_comparator *) sql_alloc(sizeof(Arg_comparator)*n))) for (uint i=0; i < n; i++) { - if ((*a)->cols() != (*a)->cols()) + if ((*a)->el(i)->cols() != (*b)->el(i)->cols()) { - my_error(ER_CARDINALITY_COL, MYF(0), (*a)->cols()); + my_error(ER_CARDINALITY_COL, MYF(0), (*a)->el(i)->cols()); return 1; } comparators[i].set_cmp_func(owner, (*a)->addr(i), (*b)->addr(i)); |