Commit f3bd718c authored by osku's avatar osku

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

parent adbda85e
...@@ -179,13 +179,11 @@ sym_tab_add_bound_lit( ...@@ -179,13 +179,11 @@ sym_tab_add_bound_lit(
{ {
sym_node_t* node; sym_node_t* node;
pars_bound_lit_t* blit; pars_bound_lit_t* blit;
ulint len = 0; ulint len = 0;
blit = pars_info_get_bound_lit(sym_tab->info, name); blit = pars_info_get_bound_lit(sym_tab->info, name);
ut_a(blit); ut_a(blit);
ut_a(blit->length > 0);
node = mem_heap_alloc(sym_tab->heap, sizeof(sym_node_t)); node = mem_heap_alloc(sym_tab->heap, sizeof(sym_node_t));
node->common.type = QUE_NODE_SYMBOL; node->common.type = QUE_NODE_SYMBOL;
...@@ -210,7 +208,9 @@ sym_tab_add_bound_lit( ...@@ -210,7 +208,9 @@ sym_tab_add_bound_lit(
break; break;
case DATA_INT: case DATA_INT:
ut_a(blit->length > 0);
ut_a(blit->length <= 8); ut_a(blit->length <= 8);
len = blit->length; len = blit->length;
*lit_type = PARS_INT_LIT; *lit_type = PARS_INT_LIT;
break; 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