Commit 8cb21aba authored by osku's avatar osku

Allow bound literals of type non-INTEGER to be of length 0.

parent a770d8ce
......@@ -179,13 +179,11 @@ sym_tab_add_bound_lit(
{
sym_node_t* node;
pars_bound_lit_t* blit;
ulint len = 0;
ulint len = 0;
blit = pars_info_get_bound_lit(sym_tab->info, name);
ut_a(blit);
ut_a(blit->length > 0);
node = mem_heap_alloc(sym_tab->heap, sizeof(sym_node_t));
node->common.type = QUE_NODE_SYMBOL;
......@@ -210,7 +208,9 @@ sym_tab_add_bound_lit(
break;
case DATA_INT:
ut_a(blit->length > 0);
ut_a(blit->length <= 8);
len = blit->length;
*lit_type = PARS_INT_LIT;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment