Commit 25ec27f3 authored by osku's avatar osku

Support DATA_VARCHAR for bound literals.

pars_bound_lit_t: Change 'address' from 'void*' to 'const void*'.
parent 727354ae
...@@ -488,7 +488,7 @@ struct pars_user_func_struct { ...@@ -488,7 +488,7 @@ struct pars_user_func_struct {
/* Bound literal. */ /* Bound literal. */
struct pars_bound_lit_struct { struct pars_bound_lit_struct {
const char* name; /* name */ const char* name; /* name */
void* address; /* address */ const void* address; /* address */
ulint length; /* length of data */ ulint length; /* length of data */
ulint type; /* type, e.g. DATA_FIXBINARY */ ulint type; /* type, e.g. DATA_FIXBINARY */
ulint prtype; /* precise type, e.g. DATA_UNSIGNED */ ulint prtype; /* precise type, e.g. DATA_UNSIGNED */
......
...@@ -206,6 +206,11 @@ sym_tab_add_bound_lit( ...@@ -206,6 +206,11 @@ sym_tab_add_bound_lit(
*lit_type = PARS_BLOB_LIT; *lit_type = PARS_BLOB_LIT;
break; break;
case DATA_VARCHAR:
len = 0;
*lit_type = PARS_STR_LIT;
break;
case DATA_INT: case DATA_INT:
ut_a(blit->length <= 8); ut_a(blit->length <= 8);
len = blit->length; len = blit->length;
......
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