342
341
lex->in_sum_func= NULL;
344
343
ok, there must be a better solution for this, long-term
345
I tried "bzero" in the sql_yacc.yy code, but that for
344
I tried "memset" in the sql_yacc.yy code, but that for
346
345
some reason made the values zero, even if they were set
348
347
lex->server_options.server_name= 0;
833
case MY_LEX_IDENT_OR_NCHAR:
834
if (lip->yyPeek() != '\'')
839
/* Found N'string' */
840
lip->yySkip(); // Skip '
841
if (!(yylval->lex_str.str = get_text(lip, 2, 1)))
843
state= MY_LEX_CHAR; // Read char by char
846
yylval->lex_str.length= lip->yytoklen;
847
lex->text_string_is_7bit= (lip->tok_bitmap & 0x80) ? 0 : 1;
848
return(NCHAR_STRING);
850
832
case MY_LEX_IDENT_OR_HEX:
851
833
if (lip->yyPeek() == '\'')
852
834
{ // Found x'hex-number'
1834
bool st_select_lex_node::set_braces(bool value __attribute__((__unused__)))
1816
bool st_select_lex_node::set_braces(bool value __attribute__((unused)))
1836
1818
bool st_select_lex_node::inc_in_sum_expr() { return 1; }
1837
1819
uint st_select_lex_node::get_in_sum_expr() { return 0; }
1838
1820
TABLE_LIST* st_select_lex_node::get_table_list() { return 0; }
1839
1821
List<Item>* st_select_lex_node::get_item_list() { return 0; }
1840
TABLE_LIST *st_select_lex_node::add_table_to_list (THD *thd __attribute__((__unused__)),
1841
Table_ident *table __attribute__((__unused__)),
1842
LEX_STRING *alias __attribute__((__unused__)),
1843
ulong table_join_options __attribute__((__unused__)),
1844
thr_lock_type flags __attribute__((__unused__)),
1845
List<Index_hint> *hints __attribute__((__unused__)),
1846
LEX_STRING *option __attribute__((__unused__)))
1822
TABLE_LIST *st_select_lex_node::add_table_to_list (THD *thd __attribute__((unused)),
1823
Table_ident *table __attribute__((unused)),
1824
LEX_STRING *alias __attribute__((unused)),
1825
uint32_t table_join_options __attribute__((unused)),
1826
thr_lock_type flags __attribute__((unused)),
1827
List<Index_hint> *hints __attribute__((unused)),
1828
LEX_STRING *option __attribute__((unused)))
1850
ulong st_select_lex_node::get_table_join_options()
1832
uint32_t st_select_lex_node::get_table_join_options()