Skip to content

Commit

Permalink
[CBRD-24581] Assert occurs when using indexes using IFNULL(), NULLIF(…
Browse files Browse the repository at this point in the history
  • Loading branch information
ctshim authored Jan 17, 2023
1 parent bf3319c commit 737c486
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/query/scan_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1531,11 +1531,16 @@ scan_dbvals_to_midxkey (THREAD_ENTRY * thread_p, DB_VALUE * retval, bool * index
for (idx_dom = idx_setdomain; idx_dom != NULL; idx_dom = idx_dom->next)
{
dom_ncols++;
#if 0
/* idx_dom->precision is -1 in the following cases.
* create index idx on t1(IFNULL(a,'x'), b); -- a is char(n)
* Remove the assert check. */
if (idx_dom->precision < 0)
{
assert (false);
return ER_FAILED;
}
#endif
}

if (dom_ncols <= 0)
Expand Down

0 comments on commit 737c486

Please sign in to comment.