This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug (25/26)


    break;}
case 326:
# 1024 "sql_yacc.yy"

{ yyval.item= new Item_func_dayofmonth(yyvsp[-1].item); ;
    break;}
case 327:
# 1026 "sql_yacc.yy"

{ yyval.item= new Item_func_weekday(new Item_func_to_days(yyvsp[-1].item),0); ;
    break;}
case 328:
# 1028 "sql_yacc.yy"

{ yyval.item= new Item_func_weekday(new Item_func_to_days(yyvsp[-1].item),1); ;
    break;}
case 329:
# 1030 "sql_yacc.yy"

{ yyval.item= new Item_func_dayname(new Item_func_to_days(yyvsp[-1].item)); ;
    break;}
case 330:
# 1032 "sql_yacc.yy"

{ yyval.item= new Item_func_dayofyear(yyvsp[-1].item); ;
    break;}
case 331:
# 1034 "sql_yacc.yy"

{ yyval.item= new Item_func_hour(yyvsp[-1].item); ;
    break;}
case 332:
# 1036 "sql_yacc.yy"

{ yyval.item= new Item_func_minute(yyvsp[-1].item); ;
    break;}
case 333:
# 1038 "sql_yacc.yy"

{ yyval.item= new Item_func_month(yyvsp[-1].item); ;
    break;}
case 334:
# 1040 "sql_yacc.yy"

{ yyval.item= new Item_func_monthname(yyvsp[-1].item); ;
    break;}
case 335:
# 1042 "sql_yacc.yy"

{ yyval.item= new Item_func_quarter(yyvsp[-1].item); ;
    break;}
case 336:
# 1044 "sql_yacc.yy"

{ yyval.item= new Item_func_second(yyvsp[-1].item); ;
    break;}
case 337:
# 1046 "sql_yacc.yy"

{ yyval.item= new Item_func_week(yyvsp[-1].item); ;
    break;}
case 338:
# 1048 "sql_yacc.yy"

{ yyval.item= new Item_func_year(yyvsp[-1].item); ;
    break;}
case 339:
# 1050 "sql_yacc.yy"

{ yyval.item= new Item_func_curdate(); ;
    break;}
case 340:
# 1052 "sql_yacc.yy"

{ yyval.item= new Item_func_curdate(); ;
    break;}
case 341:
# 1054 "sql_yacc.yy"

{ yyval.item= new Item_func_curtime(); ;
    break;}
case 342:
# 1056 "sql_yacc.yy"

{ yyval.item= new Item_func_curtime(); ;
    break;}
case 343:
# 1058 "sql_yacc.yy"

{ yyval.item= new Item_func_curtime(yyvsp[-1].item); ;
    break;}
case 344:
# 1060 "sql_yacc.yy"

{ yyval.item= new Item_func_now(); ;
    break;}
case 345:
# 1062 "sql_yacc.yy"

{ yyval.item= new Item_func_now(); ;
    break;}
case 346:
# 1064 "sql_yacc.yy"

{ yyval.item= new Item_func_now(yyvsp[-1].item); ;
    break;}
case 347:
# 1066 "sql_yacc.yy"

{ yyval.item= new Item_func_unix_timestamp(); ;
    break;}
case 348:
# 1068 "sql_yacc.yy"

{ yyval.item= new Item_func_unix_timestamp(yyvsp[-1].item); ;
    break;}
case 349:
# 1070 "sql_yacc.yy"

{ yyval.item= new Item_func_sec_to_time(yyvsp[-1].item); ;
    break;}
case 350:
# 1072 "sql_yacc.yy"

{ yyval.item= new Item_func_time_to_sec(yyvsp[-1].item); ;
    break;}
case 351:
# 1074 "sql_yacc.yy"

{ yyval.item= new Item_func_date_add_mm(yyvsp[-3].item,yyvsp[-1].item); ;
    break;}
case 352:
# 1076 "sql_yacc.yy"

{ yyval.item= new Item_date_add_interval(yyvsp[-3].item,yyvsp[-1].item); ;
    break;}
case 353:
# 1078 "sql_yacc.yy"

{ yyval.item= new Item_func_user(); ;
    break;}
case 354:
# 1080 "sql_yacc.yy"

{ yyval.item= new Item_func_database(); ;
    break;}
case 355:
# 1082 "sql_yacc.yy"

{ yyval.item= new Item_func_unique_users(yyvsp[-7].item,atoi(yyvsp[-5].lex_str.str),atoi(yyvsp[-3].lex_str.str), * yyvsp[-1].item_list); ;
    break;}
case 356:
# 1084 "sql_yacc.yy"

{ yyval.item= new Item_func_isnull(yyvsp[-1].item); ;
    break;}
case 357:
# 1086 "sql_yacc.yy"

{ yyval.item= new Item_func_ifnull(yyvsp[-3].item,yyvsp[-1].item); ;
    break;}
case 358:
# 1088 "sql_yacc.yy"

{ yyval.item= new Item_func_if(yyvsp[-5].item,yyvsp[-3].item,yyvsp[-1].item); ;
    break;}
case 359:
# 1090 "sql_yacc.yy"

{ yyval.item= new Item_func_format(yyvsp[-3].item,atoi(yyvsp[-1].lex_str.str)); ;
    break;}
case 360:
# 1092 "sql_yacc.yy"

{ yyval.item=new Item_func_date_format(yyvsp[-3].item,yyvsp[-1].item,0); ;
    break;}
case 361:
# 1094 "sql_yacc.yy"

{ yyval.item=new Item_func_date_format(yyvsp[-3].item,yyvsp[-1].item,1); ;
    break;}
case 362:
# 1096 "sql_yacc.yy"

{ yyval.item= new Item_func_ascii(yyvsp[-1].item); ;
    break;}
case 363:
# 1098 "sql_yacc.yy"

{ yyval.item= new Item_func_char(*yyvsp[-1].item_list); ;
    break;}
case 364:
# 1100 "sql_yacc.yy"

{ yyval.item= new Item_real("PI()",3.14159265358979323846 ,6,8); ;
    break;}
case 365:
# 1102 "sql_yacc.yy"

{
	    yyval.item= new Item_int("last_insert_id()",
			     _current_thd() ->insert_id(),21);
	  ;
    break;}
case 366:
# 1107 "sql_yacc.yy"

{ yyval.item= new Item_func_acos(yyvsp[-1].item); ;
    break;}
case 367:
# 1109 "sql_yacc.yy"

{ yyval.item= new Item_func_asin(yyvsp[-1].item); ;
    break;}
case 368:
# 1111 "sql_yacc.yy"

{ yyval.item= new Item_func_atan(yyvsp[-1].item); ;
    break;}
case 369:
# 1113 "sql_yacc.yy"

{ yyval.item= new Item_func_atan(yyvsp[-3].item,yyvsp[-1].item); ;
    break;}
case 370:
# 1115 "sql_yacc.yy"

{ yyval.item= new Item_func_cos(yyvsp[-1].item); ;
    break;}
case 371:
# 1117 "sql_yacc.yy"

{ yyval.item= new Item_func_sin(yyvsp[-1].item); ;
    break;}
case 372:
# 1119 "sql_yacc.yy"

{ yyval.item= new Item_func_tan(yyvsp[-1].item); ;
    break;}
case 373:
# 1121 "sql_yacc.yy"

{ yyval.item= new Item_func_div(new Item_int("1",1,1),
				  new Item_func_tan(yyvsp[-1].item)); ;
    break;}
case 374:
# 1124 "sql_yacc.yy"

{ yyval.item= new Item_string("version()",server_version,
				strlen(server_version)); ;
    break;}
case 375:
# 1127 "sql_yacc.yy"

{ yyval.item= new Item_func_units("degrees",yyvsp[-1].item,180/ 3.14159265358979323846 ,0.0); ;
    break;}
case 376:
# 1129 "sql_yacc.yy"

{ yyval.item= new Item_func_units("radians",yyvsp[-1].item,3.14159265358979323846 /180,0.0); ;
    break;}
case 377:
# 1131 "sql_yacc.yy"

{
	    if (yyvsp[-1].item_list != __null )
	      yyval.item = new Item_func_udf_str(yyvsp[-3].udf, *yyvsp[-1].item_list);
	    else
	      yyval.item = new Item_func_udf_str(yyvsp[-3].udf);
	  ;
    break;}
case 378:
# 1138 "sql_yacc.yy"

{
	    if (yyvsp[-1].item_list != __null )
	      yyval.item = new Item_func_udf_float(yyvsp[-3].udf, *yyvsp[-1].item_list);
	    else
	      yyval.item = new Item_func_udf_float(yyvsp[-3].udf);
	  ;
    break;}
case 379:
# 1145 "sql_yacc.yy"

{
	    if (yyvsp[-1].item_list != __null )
	      yyval.item = new Item_func_udf_int(yyvsp[-3].udf, *yyvsp[-1].item_list);
	    else
	      yyval.item = new Item_func_udf_int(yyvsp[-3].udf);
	  ;
    break;}
case 380:
# 1152 "sql_yacc.yy"

{
	     yyval.item= new Item_func_get_lock(yyvsp[-3].item, yyvsp[-1].item);
	  ;
    break;}
case 381:
# 1156 "sql_yacc.yy"

{
	     yyval.item= new Item_func_release_lock(yyvsp[-1].item);
	  ;
    break;}
case 382:
# 1161 "sql_yacc.yy"

{ yyval.item_list= __null ; ;
    break;}
case 383:
# 1162 "sql_yacc.yy"

{ yyval.item_list= yyvsp[0].item_list;;
    break;}
case 384:
# 1166 "sql_yacc.yy"

{ yyval.item=new Item_sum_avg(yyvsp[-1].item); ;
    break;}
case 385:
# 1168 "sql_yacc.yy"

{ yyval.item=new Item_sum_sum(yyvsp[-1].item); ;
    break;}
case 386:
# 1170 "sql_yacc.yy"

{ yyval.item=new Item_sum_count(new Item_int((int32) 0L,1)); ;
    break;}
case 387:
# 1172 "sql_yacc.yy"

{ yyval.item=new Item_sum_count(yyvsp[-1].item); ;
    break;}
case 388:
# 1174 "sql_yacc.yy"

{ yyval.item=new Item_sum_min(yyvsp[-1].item); ;
    break;}
case 389:
# 1176 "sql_yacc.yy"

{ yyval.item=new Item_sum_max(yyvsp[-1].item); ;
    break;}
case 390:
# 1178 "sql_yacc.yy"

{ yyval.item= new Item_sum_unique_users(yyvsp[-7].item,atoi(yyvsp[-5].lex_str.str),atoi(yyvsp[-3].lex_str.str),yyvsp[-1].item); ;
    break;}
case 391:
# 1180 "sql_yacc.yy"

{ yyval.item=new Item_sum_std(yyvsp[-1].item); ;
    break;}
case 392:
# 1182 "sql_yacc.yy"

{ yyval.item=new Item_sum_or(yyvsp[-1].item); ;
    break;}
case 393:
# 1184 "sql_yacc.yy"

{ yyval.item=new Item_sum_and(yyvsp[-1].item); ;
    break;}
case 394:
# 1187 "sql_yacc.yy"

{ _current_lex()  ->expr_list.push_front(new List<Item>); ;
    break;}
case 395:
# 1189 "sql_yacc.yy"

{ yyval.item_list= _current_lex()  ->expr_list.pop(); ;
    break;}
case 396:
# 1192 "sql_yacc.yy"

{ _current_lex()  ->expr_list.head()->push_back(yyvsp[0].item); ;
    break;}
case 397:
# 1193 "sql_yacc.yy"

{ _current_lex()  ->expr_list.head()->push_back(yyvsp[0].item); ;
    break;}
case 398:
# 1196 "sql_yacc.yy"

{ yyval.item=new Item_string(" ",1); ;
    break;}
case 399:
# 1197 "sql_yacc.yy"

{ yyval.item=yyvsp[0].item; ;
    break;}
case 400:
# 1200 "sql_yacc.yy"

{ yyval.table_list=yyvsp[-1].table_list; ;
    break;}
case 401:
# 1201 "sql_yacc.yy"

{ yyval.table_list=yyvsp[0].table_list; ;
    break;}
case 402:
# 1202 "sql_yacc.yy"

{ yyval.table_list=yyvsp[0].table_list ;
    break;}
case 403:
# 1203 "sql_yacc.yy"

{ yyval.table_list=yyvsp[0].table_list ;
    break;}
case 404:
# 1204 "sql_yacc.yy"

{ yyval.table_list=yyvsp[0].table_list ;
    break;}
case 405:
# 1206 "sql_yacc.yy"

{ add_left_join_on(yyvsp[-6].table_list,yyvsp[-2].table_list,yyvsp[0].item); yyval.table_list=yyvsp[-2].table_list; ;
    break;}
case 406:
# 1208 "sql_yacc.yy"

{ _current_lex()  ->table1=yyvsp[-4].table_list->name; _current_lex()  ->table2=yyvsp[0].table_list->name; ;
    break;}
case 407:
# 1210 "sql_yacc.yy"

{ add_left_join_on(yyvsp[-9].table_list,yyvsp[-5].table_list,yyvsp[-1].item); yyval.table_list=yyvsp[-5].table_list; ;
    break;}
case 408:
# 1212 "sql_yacc.yy"

{ add_left_join_natural(yyvsp[-5].table_list,yyvsp[0].table_list); yyval.table_list=yyvsp[0].table_list; ;
    break;}
case 409:
# 1216 "sql_yacc.yy"

{ if (!(yyval.table_list=add_table_to_list(yyvsp[0].lex_str.str,yyvsp[0].lex_str.length,__null ))) return(1) ; ;
    break;}
case 410:
# 1218 "sql_yacc.yy"

{ if (!(yyval.table_list=add_table_to_list(yyvsp[-2].lex_str.str, yyvsp[-2].lex_str.length,yyvsp[0].lex_str.str))) return(1) ; ;
    break;}
case 411:
# 1220 "sql_yacc.yy"

{ add_left_join_on(yyvsp[-7].table_list,yyvsp[-3].table_list,yyvsp[-1].item); yyval.table_list=yyvsp[-3].table_list; ;
    break;}
case 412:
# 1223 "sql_yacc.yy"

{;
    break;}
case 413:
# 1224 "sql_yacc.yy"

{;
    break;}
case 414:
# 1228 "sql_yacc.yy"

{ if (!(yyval.item= new Item_func_eq(new Item_field(_current_lex()  ->table1,yyvsp[0].lex_str.str),
				       new Item_field(_current_lex()  ->table2,yyvsp[0].lex_str.str))))
	      return(1) ;
	  ;
    break;}
case 415:
# 1233 "sql_yacc.yy"

{
	    if (!(yyval.item= new Item_cond_and(new Item_func_eq(new Item_field(_current_lex()  ->table1,yyvsp[0].lex_str.str), new Item_field(_current_lex()  ->table2,yyvsp[0].lex_str.str)), yyvsp[-2].item)))
	      return(1) ;
	  ;
    break;}
case 416:
# 1239 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::YEAR);;
    break;}
case 417:
# 1240 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::MONTH);;
    break;}
case 418:
# 1241 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::DAY);;
    break;}
case 419:
# 1242 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::HOUR);;
    break;}
case 420:
# 1242 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::MINUTE);;
    break;}
case 421:
# 1243 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::SECOND);;
    break;}
case 422:
# 1244 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::YEAR_MONTH);;
    break;}
case 423:
# 1245 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::DAY_HOUR);;
    break;}
case 424:
# 1246 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::DAY_MINUTE);;
    break;}
case 425:
# 1247 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::DAY_SECOND);;
    break;}
case 426:
# 1248 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::HOUR_MINUTE);;
    break;}
case 427:
# 1249 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::HOUR_SECOND);;
    break;}
case 428:
# 1250 "sql_yacc.yy"

{ yyval.item=new Item_interval(yyvsp[-1].item,Item_interval::MINUTE_SECOND);;
    break;}
case 432:
# 1259 "sql_yacc.yy"

{ _current_lex()  ->where= 0; ;
    break;}
case 433:
# 1260 "sql_yacc.yy"

{ _current_lex()  ->where= yyvsp[0].item; ;
    break;}
case 435:
# 1264 "sql_yacc.yy"

{ _current_lex()  ->create_refs=1; ;
    break;}
case 436:
# 1265 "sql_yacc.yy"

{ _current_lex()  ->having= yyvsp[0].item; _current_lex()  ->create_refs=0; ;
    break;}
case 439:
# 1277 "sql_yacc.yy"

{ if (add_group_to_list(yyvsp[-1].item,(bool) yyvsp[0].num)) return(1) ; ;
    break;}
case 440:
# 1279 "sql_yacc.yy"

{ if (add_group_to_list(yyvsp[-1].item,(bool) yyvsp[0].num)) return(1) ; ;
    break;}
case 443:
# 1291 "sql_yacc.yy"

{ if (add_order_to_list(yyvsp[-1].item,(bool) yyvsp[0].num)) return(1) ; ;
    break;}
case 444:
# 1293 "sql_yacc.yy"

{ if (add_order_to_list(yyvsp[-1].item,(bool) yyvsp[0].num)) return(1) ; ;
    break;}
case 445:
# 1296 "sql_yacc.yy"

{ yyval.num =  1; ;
    break;}
case 446:
# 1297 "sql_yacc.yy"

{ yyval.num =  1; ;
    break;}
case 447:
# 1298 "sql_yacc.yy"

{ yyval.num =  0; ;
    break;}
case 448:
# 1303 "sql_yacc.yy"

{
	  _current_lex()  ->select_limit= _current_thd() ->default_select_limit;
	  _current_lex()  ->offset_limit= 0L;
	;
    break;}
case 449:
# 1308 "sql_yacc.yy"

{ _current_lex()  ->select_limit= yyvsp[0].ulong_num; _current_lex()  ->offset_limit=0L; ;
    break;}
case 450:
# 1310 "sql_yacc.yy"

{ _current_lex()  ->select_limit= yyvsp[0].ulong_num; _current_lex()  ->offset_limit=yyvsp[-2].ulong_num; ;
    break;}
case 451:
# 1313 "sql_yacc.yy"

{ yyval.ulong_num= strtoul(yyvsp[0].lex_str.str,__null ,10); ;
    break;}
case 452:
# 1314 "sql_yacc.yy"

{ yyval.ulong_num= strtoul(yyvsp[0].lex_str.str,__null ,10); ;
    break;}
case 453:
# 1317 "sql_yacc.yy"

{ yyval.ulonglong_num= (ulonglong) strtoul(yyvsp[0].lex_str.str,__null ,10); ;
    break;}
case 454:
# 1318 "sql_yacc.yy"

{ yyval.ulonglong_num= strtoull(yyvsp[0].lex_str.str,__null ,10); ;
    break;}
case 455:
# 1319 "sql_yacc.yy"

{ yyval.ulonglong_num= strtoull(yyvsp[0].lex_str.str,__null ,10); ;
    break;}
case 457:
# 1324 "sql_yacc.yy"

{
	    if (add_proc_to_list(new Item_field(__null ,yyvsp[0].lex_str.str)))
	      return(1) ;
	  ;
    break;}
case 461:
# 1337 "sql_yacc.yy"

{
	    if (add_proc_to_list(yyvsp[0].item))
	      return(1) ;
	    if (!yyvsp[0].item->name)
	      yyvsp[0].item->set_name(yyvsp[-1].simple_string,(uint) ((char*) _current_lex()  ->tok_end - yyvsp[-1].simple_string));
	  ;
    break;}
case 462:
# 1346 "sql_yacc.yy"

{
	  if (!(_current_lex()  ->exchange= new sql_exchange(yyvsp[0].lex_str.str)))
	    return(1) ;
	;
    break;}
case 464:
# 1358 "sql_yacc.yy"

{
	  _current_lex()  ->sql_command = SQL_DROP_TABLE;
	;
    break;}
case 465:
# 1361 "sql_yacc.yy"

{;
    break;}
case 466:
# 1362 "sql_yacc.yy"

{ _current_lex()  ->sql_command= SQL_DROP_INDEX; ;
    break;}
case 467:
# 1363 "sql_yacc.yy"

{;
    break;}
case 468:
# 1364 "sql_yacc.yy"

{ _current_lex()  ->sql_command= SQL_DROP_INDEX; ;
    break;}
case 469:
# 1366 "sql_yacc.yy"

{ _current_lex()  ->sql_command= SQL_DROP_DB; _current_lex()  ->name=yyvsp[0].lex_str.str; ;
    break;}
case 470:
# 1368 "sql_yacc.yy"

{
	    _current_lex()  ->sql_command = SQL_DROP_FUNCTION;
	    _current_lex()  ->udf.name=yyvsp[0].lex_str.str;
	  ;
    break;}
case 473:
# 1379 "sql_yacc.yy"

{ if (!add_table_to_list(yyvsp[0].lex_str.str,yyvsp[0].lex_str.length,__null )) return(1) ; ;
    break;}
case 474:
# 1386 "sql_yacc.yy"

{ _current_lex()  ->sql_command = SQL_INSERT; ;
    break;}
case 476:
# 1389 "sql_yacc.yy"

{ _current_lex()  ->sql_command = SQL_REPLACE; ;
    break;}
case 478:
# 1393 "sql_yacc.yy"

{
	  _current_thd() ->field_list.empty();
	;
    break;}
case 480:
# 1399 "sql_yacc.yy"

{;
    break;}
case 481:
# 1401 "sql_yacc.yy"

{
	    LEX *lex= _current_lex()  ;
	    lex->where=lex->having=0;
	    lex->select_limit= _current_thd() ->default_select_limit;
	    lex->offset_limit=0L;
	    lex->options=0;
	    lex->sql_command = (lex->sql_command == SQL_INSERT ?
				SQL_INSERT_SELECT : SQL_REPLACE_SELECT);
	  ;
    break;}
case 482:
# 1410 "sql_yacc.yy"

{;
    break;}
case 483:
# 1413 "sql_yacc.yy"

{ ;
    break;}
case 484:
# 1414 "sql_yacc.yy"

{ ;
    break;}
case 485:
# 1417 "sql_yacc.yy"

{ _current_thd() ->field_list.push_back(yyvsp[0].item); ;
    break;}
case 486:
# 1418 "sql_yacc.yy"

{ _current_thd() ->field_list.push_back(yyvsp[0].item); ;
    break;}
case 487:
# 1422 "sql_yacc.yy"

{ if (add_value_to_list(yyvsp[0].item)) return(1) ; ;
    break;}
case 488:
# 1423 "sql_yacc.yy"

{ if (add_value_to_list(yyvsp[0].item)) return(1) ; ;
    break;}
case 489:
# 1430 "sql_yacc.yy"

{ _current_lex()  ->sql_command = SQL_UPDATE; ;
    break;}
case 490:
# 1434 "sql_yacc.yy"

{
	  if (add_item_to_list(yyvsp[-2].item) || add_value_to_list(yyvsp[0].item))
	    return(1) ;
	;
    break;}
case 491:
# 1439 "sql_yacc.yy"

{
	    if (add_item_to_list(yyvsp[-2].item) || add_value_to_list(yyvsp[0].item))
	      return(1) ;
	  ;
    break;}
case 492:
# 1449 "sql_yacc.yy"

{ _current_lex()  ->sql_command= SQL_DELETE; ;
    break;}
case 493:
# 1454 "sql_yacc.yy"

{ _current_lex()  ->wild=0;;
    break;}
case 495:
# 1458 "sql_yacc.yy"

{ _current_lex()  ->sql_command= SQL_SHOW_DATABASES; ;
    break;}
case 496:
# 1460 "sql_yacc.yy"

{ _current_lex()  ->sql_command= SQL_SHOW_TABLES; ;
    break;}
case 497:
# 1462 "sql_yacc.yy"

{
	    _current_lex()  ->sql_command= SQL_SHOW_FIELDS;
	    if (!add_table_to_list(yyvsp[-2].lex_str.str,yyvsp[-2].lex_str.length,__null ))
	      return(1) ;
	  ;
    break;}
case 498:
# 1468 "sql_yacc.yy"

{
	    _current_lex()  ->sql_command= SQL_SHOW_KEYS;
	    if (!add_table_to_list(yyvsp[-1].lex_str.str,yyvsp[-1].lex_str.length,__null ))
	      return(1) ;
	  ;
    break;}
case 499:
# 1474 "sql_yacc.yy"

{
	    _current_lex()  ->sql_command= SQL_SHOW_KEYS;
	    if (!add_table_to_list(yyvsp[-1].lex_str.str,yyvsp[-1].lex_str.length,__null ))
	      return(1) ;
	  ;
    break;}
case 500:
# 1480 "sql_yacc.yy"

{ _current_lex()  ->sql_command= SQL_SHOW_STATUS; ;
    break;}
case 501:
# 1482 "sql_yacc.yy"

{ _current_lex()  ->sql_command= SQL_SHOW_VARIABLES; ;
    break;}
case 502:
# 1486 "sql_yacc.yy"

{ _current_lex()  ->db = _current_thd() ->db; ;
    break;}
case 503:
# 1487 "sql_yacc.yy"

{ _current_lex()  ->db = yyvsp[0].lex_str.str; ;
    break;}
case 505:
# 1491 "sql_yacc.yy"

{ _current_lex()  ->wild= yyvsp[0].string; ;
    break;}
case 506:
# 1496 "sql_yacc.yy"

{
	  _current_lex()  ->wild=0;
	  _current_lex()  ->sql_command=SQL_SHOW_FIELDS;
	  _current_lex()  ->db= _current_thd() ->db;
	  if (!add_table_to_list(yyvsp[0].lex_str.str,yyvsp[0].lex_str.length,__null ))
	    return(1) ;
	;
    break;}
case 508:
# 1504 "sql_yacc.yy"

{ _current_lex()  ->options|= 4  ;
    break;}
case 511:
# 1512 "sql_yacc.yy"

{;
    break;}
case 512:
# 1513 "sql_yacc.yy"

{ _current_lex()  ->wild= yyvsp[0].string; ;
    break;}
case 513:
# 1514 "sql_yacc.yy"

{ _current_lex()  ->wild= new String((const char*) yyvsp[0].lex_str.str,yyvsp[0].lex_str.length); ;
    break;}
case 514:
# 1519 "sql_yacc.yy"

{ _current_lex()  ->sql_command=SQL_CHANGE_DB; _current_lex()  ->db=yyvsp[0].lex_str.str; ;
    break;}
case 515:
# 1524 "sql_yacc.yy"

{
	  _current_lex()  ->sql_command= SQL_LOAD;
	  if (!(_current_lex()  ->exchange= new sql_exchange(yyvsp[0].lex_str.str)))
	    return(1) ;
	  _current_thd() ->field_list.empty();
	;
    break;}
case 516:
# 1532 "sql_yacc.yy"

{
	  if (!add_table_to_list(yyvsp[-4].lex_str.str,yyvsp[-4].lex_str.length,__null ))
	    return(1) ;
	;
    break;}
case 517:
# 1538 "sql_yacc.yy"

{ _current_lex()  ->duplicates=DUP_ERROR; ;
    break;}
case 518:
# 1539 "sql_yacc.yy"

{ _current_lex()  ->duplicates=DUP_REPLACE; ;
    break;}
case 519:
# 1540 "sql_yacc.yy"

{ _current_lex()  ->duplicates=DUP_IGNORE; ;
    break;}
case 524:
# 1551 "sql_yacc.yy"

{ _current_lex()  ->exchange->field_term= yyvsp[0].string;;
    break;}
case 525:
# 1553 "sql_yacc.yy"

{ _current_lex()  ->exchange->enclosed= yyvsp[0].string; _current_lex()  ->exchange->opt_enclosed=1;;
    break;}
case 526:
# 1554 "sql_yacc.yy"

{ _current_lex()  ->exchange->enclosed= yyvsp[0].string;;
    break;}
case 527:
# 1555 "sql_yacc.yy"

{ _current_lex()  ->exchange->escaped= yyvsp[0].string;;
    break;}
case 532:
# 1566 "sql_yacc.yy"

{ _current_lex()  ->exchange->line_term= yyvsp[0].string;;
    break;}
case 533:
# 1567 "sql_yacc.yy"

{ _current_lex()  ->exchange->line_start= yyvsp[0].string;;
    break;}
case 535:
# 1572 "sql_yacc.yy"

{ _current_lex()  ->exchange->skip_lines=atol(yyvsp[-1].lex_str.str); ;
    break;}
case 536:
# 1577 "sql_yacc.yy"

{ yyval.item = new Item_string(yyvsp[0].lex_str.str,yyvsp[0].lex_str.length); ;
    break;}
case 537:
# 1579 "sql_yacc.yy"

{ ((Item_string*) yyvsp[-1].item)->append(yyvsp[0].lex_str.str,yyvsp[0].lex_str.length); ;
    break;}
case 538:
# 1583 "sql_yacc.yy"

{ yyval.string=  new String(yyvsp[0].lex_str.str,yyvsp[0].lex_str.length); ;
    break;}
case 539:
# 1586 "sql_yacc.yy"



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]