sql_yacc.cc
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:460k
- -1, -1, 187, -1, -1, -1, -1, 192, -1, -1,
- -1, -1, -1, -1, 199, -1, -1, -1, -1, -1,
- -1, 206, -1, -1, -1, 210, -1, -1, -1, 214,
- -1, 216, 217, -1, -1, 220, 221, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, 232, -1, -1,
- 235, 236, 237, 238, -1, -1, -1, -1, -1, -1,
- -1, -1, 247, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, 263, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 278, 279, -1, -1, -1, -1, -1,
- -1, -1, -1, 288, 289, 290, -1, 292, -1, -1,
- -1, -1, -1, -1, 299, -1, -1, -1, -1, -1,
- 15, -1, -1, -1, -1, -1, -1, -1, 23, 314,
- 25, 316, 27, 28, 319, -1, -1, -1, -1, 34,
- -1, 36, 37, 38, -1, 40, 41, 42, 43, 44,
- -1, -1, -1, -1, -1, -1, -1, 52, 53, -1,
- -1, -1, -1, -1, 59, 60, 61, 62, 353, 64,
- 65, -1, -1, -1, 69, 70, -1, -1, -1, -1,
- 75, -1, -1, 78, -1, -1, -1, 82, -1, -1,
- 85, -1, 87, 88, 89, 90, -1, -1, -1, 94,
- -1, -1, 97, -1, -1, -1, 101, -1, -1, 104,
- 105, -1, -1, -1, -1, 110, -1, -1, 113, -1,
- -1, -1, -1, -1, 119, -1, -1, 122, 123, -1,
- -1, -1, 127, 128, 129, 130, 131, 132, 133, -1,
- 135, 136, 137, 138, 139, 140, -1, 142, -1, 144,
- -1, -1, -1, 148, -1, -1, -1, -1, -1, -1,
- -1, 156, 157, -1, -1, -1, 161, 162, 163, 164,
- 165, 166, 167, -1, -1, -1, -1, 172, -1, 174,
- -1, -1, 177, 178, 179, -1, 181, -1, 183, -1,
- -1, -1, 187, -1, 189, -1, -1, 192, -1, -1,
- -1, -1, -1, -1, 199, -1, -1, -1, -1, -1,
- -1, 206, -1, -1, -1, 210, -1, -1, -1, 214,
- -1, 216, 217, -1, -1, 220, 221, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, 232, -1, -1,
- 235, 236, 237, 238, -1, -1, -1, -1, -1, -1,
- -1, -1, 247, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, 263, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 278, 279, -1, -1, -1, 15, -1,
- -1, -1, -1, 288, 289, 290, 23, 292, 25, -1,
- 27, 28, -1, -1, 299, -1, -1, 34, -1, 36,
- 37, 38, -1, 40, 41, 42, 43, 44, -1, 314,
- -1, 316, -1, -1, 319, 52, 53, -1, -1, -1,
- -1, -1, 59, 60, 61, 62, -1, 64, 65, -1,
- -1, -1, 69, 70, -1, -1, -1, -1, 75, -1,
- -1, 78, -1, -1, -1, 82, -1, 352, 85, -1,
- 87, 88, 89, 90, -1, -1, -1, 94, -1, -1,
- 97, -1, -1, -1, 101, -1, -1, 104, 105, -1,
- -1, -1, -1, 110, -1, -1, 113, -1, -1, -1,
- -1, -1, -1, -1, -1, 122, 123, -1, -1, -1,
- 127, 128, 129, 130, 131, 132, 133, -1, 135, 136,
- 137, 138, 139, 140, -1, 142, -1, 144, -1, -1,
- -1, 148, -1, -1, -1, -1, -1, -1, -1, 156,
- 157, -1, -1, -1, 161, 162, 163, 164, 165, 166,
- 167, -1, -1, -1, -1, 172, -1, 174, -1, -1,
- 177, 178, 179, -1, 181, -1, 183, -1, -1, -1,
- 187, -1, -1, -1, -1, 192, -1, -1, -1, -1,
- -1, -1, 199, -1, -1, -1, -1, -1, -1, 206,
- -1, -1, -1, 210, -1, -1, -1, 214, -1, 216,
- 217, -1, -1, 220, 221, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 232, -1, -1, 235, 236,
- 237, 238, -1, -1, -1, -1, -1, -1, -1, -1,
- 247, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 263, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, 278, 279, -1, -1, -1, 15, -1, -1, -1,
- -1, 288, 289, 290, 23, 292, 25, -1, 27, 28,
- -1, -1, 299, -1, -1, 34, -1, 36, 37, 38,
- -1, 40, 41, 42, 43, 44, -1, 314, -1, 316,
- -1, -1, 319, 52, 53, -1, -1, -1, -1, -1,
- 59, 60, 61, 62, -1, 64, 65, -1, -1, -1,
- 69, 70, -1, -1, 341, -1, 75, -1, -1, 78,
- -1, -1, -1, 82, -1, -1, 85, -1, 87, 88,
- 89, 90, -1, -1, -1, 94, -1, -1, 97, -1,
- -1, -1, 101, -1, -1, 104, 105, -1, -1, -1,
- -1, 110, -1, -1, 113, -1, -1, -1, -1, -1,
- -1, -1, -1, 122, 123, -1, -1, -1, 127, 128,
- 129, 130, 131, 132, 133, -1, 135, 136, 137, 138,
- 139, 140, -1, 142, -1, 144, -1, -1, -1, 148,
- -1, -1, -1, -1, -1, -1, -1, 156, 157, -1,
- -1, -1, 161, 162, 163, 164, 165, 166, 167, -1,
- -1, -1, -1, 172, -1, 174, -1, -1, 177, 178,
- 179, -1, 181, -1, 183, -1, -1, -1, 187, -1,
- -1, -1, -1, 192, -1, -1, -1, -1, -1, -1,
- 199, -1, -1, -1, -1, -1, -1, 206, -1, -1,
- -1, 210, -1, -1, -1, 214, -1, 216, 217, -1,
- -1, 220, 221, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 232, -1, -1, 235, 236, 237, 238,
- -1, -1, -1, -1, -1, -1, -1, -1, 247, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, 263, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 278,
- 279, -1, -1, -1, 15, -1, -1, -1, -1, 288,
- 289, 290, 23, 292, 25, -1, 27, 28, -1, -1,
- 299, -1, -1, 34, -1, 36, 37, 38, -1, 40,
- 41, 42, 43, 44, -1, 314, -1, 316, -1, -1,
- 319, 52, 53, -1, -1, -1, -1, -1, 59, 60,
- 61, 62, -1, 64, 65, -1, -1, -1, 69, 70,
- -1, -1, 341, -1, 75, -1, -1, 78, -1, -1,
- -1, 82, -1, -1, 85, -1, 87, 88, 89, 90,
- -1, -1, -1, 94, -1, -1, 97, -1, -1, -1,
- 101, -1, -1, 104, 105, -1, -1, -1, -1, 110,
- -1, -1, 113, -1, -1, -1, -1, -1, -1, -1,
- -1, 122, 123, -1, -1, -1, 127, 128, 129, 130,
- 131, 132, 133, -1, 135, 136, 137, 138, 139, 140,
- -1, 142, -1, 144, -1, -1, -1, 148, -1, -1,
- -1, -1, -1, -1, -1, 156, 157, -1, -1, -1,
- 161, 162, 163, 164, 165, 166, 167, -1, -1, -1,
- -1, 172, -1, 174, -1, -1, 177, 178, 179, -1,
- 181, -1, 183, -1, -1, -1, 187, -1, -1, -1,
- -1, 192, -1, -1, -1, -1, -1, -1, 199, -1,
- -1, -1, -1, -1, -1, 206, -1, -1, -1, 210,
- -1, -1, -1, 214, -1, 216, 217, -1, -1, 220,
- 221, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, 232, -1, -1, 235, 236, 237, 238, -1, -1,
- -1, -1, -1, -1, -1, -1, 247, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 263, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, 278, 279, -1,
- -1, -1, 15, -1, -1, -1, -1, 288, 289, 290,
- 23, 292, 25, -1, 27, 28, -1, -1, 299, -1,
- -1, 34, -1, 36, 37, 38, -1, 40, 41, 42,
- 43, 44, -1, 314, -1, 316, -1, -1, 319, 52,
- 53, -1, -1, -1, -1, -1, 59, 60, 61, 62,
- -1, 64, 65, -1, -1, -1, 69, 70, -1, -1,
- 341, -1, 75, -1, -1, 78, -1, -1, -1, 82,
- -1, -1, 85, -1, 87, 88, 89, 90, -1, -1,
- -1, 94, -1, -1, 97, -1, -1, -1, 101, -1,
- -1, 104, 105, -1, -1, -1, -1, 110, -1, -1,
- 113, -1, -1, -1, -1, -1, 119, -1, -1, 122,
- 123, -1, -1, -1, 127, 128, 129, 130, 131, 132,
- 133, -1, 135, 136, 137, 138, 139, 140, -1, 142,
- -1, 144, -1, -1, -1, 148, -1, -1, -1, -1,
- -1, -1, -1, 156, 157, -1, -1, -1, 161, 162,
- 163, 164, 165, 166, 167, -1, -1, -1, -1, 172,
- -1, 174, -1, -1, 177, 178, 179, -1, 181, -1,
- 183, -1, -1, -1, 187, -1, 189, -1, -1, 192,
- -1, -1, -1, -1, -1, -1, 199, -1, -1, -1,
- -1, -1, -1, 206, -1, -1, -1, 210, -1, -1,
- -1, 214, -1, 216, 217, -1, -1, 220, 221, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 232,
- -1, -1, 235, 236, 237, 238, -1, -1, -1, -1,
- -1, -1, -1, -1, 247, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 263, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 278, 279, -1, -1, -1,
- 15, -1, -1, -1, -1, 288, 289, 290, 23, 292,
- 25, -1, 27, 28, -1, -1, 299, -1, -1, 34,
- -1, 36, 37, 38, -1, 40, 41, 42, 43, 44,
- -1, 314, -1, 316, -1, -1, 319, 52, 53, -1,
- -1, -1, -1, -1, 59, 60, 61, 62, -1, 64,
- 65, -1, -1, -1, 69, 70, -1, -1, -1, -1,
- 75, -1, -1, 78, -1, -1, -1, 82, -1, -1,
- 85, -1, 87, 88, 89, 90, -1, -1, -1, 94,
- -1, -1, 97, -1, -1, -1, 101, 102, -1, 104,
- 105, -1, -1, -1, -1, 110, -1, -1, 113, -1,
- -1, -1, -1, -1, -1, -1, -1, 122, 123, -1,
- -1, -1, 127, 128, 129, 130, 131, 132, 133, -1,
- 135, 136, 137, 138, 139, 140, -1, 142, -1, 144,
- -1, -1, -1, 148, -1, -1, -1, -1, -1, -1,
- -1, 156, 157, -1, -1, -1, 161, 162, 163, 164,
- 165, 166, 167, -1, -1, -1, -1, 172, -1, 174,
- -1, -1, 177, 178, 179, -1, 181, -1, 183, -1,
- -1, -1, 187, -1, 189, -1, -1, 192, -1, -1,
- -1, -1, -1, -1, 199, -1, -1, -1, -1, -1,
- -1, 206, -1, -1, -1, 210, -1, -1, -1, 214,
- -1, 216, 217, -1, -1, 220, 221, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, 232, -1, -1,
- 235, 236, 237, 238, -1, -1, -1, -1, -1, -1,
- -1, -1, 247, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, 263, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 278, 279, -1, -1, -1, 15, -1,
- -1, -1, -1, 288, 289, 290, 23, 292, 25, -1,
- 27, 28, -1, -1, 299, -1, -1, 34, -1, 36,
- 37, 38, -1, 40, 41, 42, 43, 44, -1, 314,
- -1, 316, -1, -1, 319, 52, 53, -1, -1, 56,
- -1, -1, 59, 60, 61, 62, -1, 64, 65, -1,
- -1, -1, 69, 70, -1, -1, -1, -1, 75, -1,
- -1, 78, -1, -1, -1, 82, -1, -1, 85, -1,
- 87, 88, 89, 90, -1, -1, -1, 94, -1, -1,
- 97, -1, -1, -1, 101, -1, -1, 104, 105, -1,
- -1, -1, -1, 110, -1, -1, 113, -1, -1, -1,
- -1, -1, -1, -1, -1, 122, 123, -1, -1, -1,
- 127, 128, 129, 130, 131, 132, 133, -1, 135, 136,
- 137, 138, 139, 140, -1, 142, -1, 144, -1, -1,
- -1, 148, -1, -1, -1, -1, -1, -1, -1, 156,
- 157, -1, -1, -1, 161, 162, 163, 164, 165, 166,
- 167, -1, -1, -1, -1, 172, -1, 174, -1, -1,
- 177, 178, 179, -1, 181, -1, 183, -1, -1, -1,
- 187, -1, 189, -1, -1, 192, -1, -1, -1, -1,
- -1, -1, 199, -1, -1, -1, -1, -1, -1, 206,
- -1, -1, -1, 210, -1, -1, -1, 214, -1, 216,
- 217, -1, -1, 220, 221, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 232, -1, -1, 235, 236,
- 237, 238, -1, -1, -1, -1, -1, -1, -1, -1,
- 247, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 263, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, 278, 279, -1, -1, -1, 15, -1, -1, -1,
- -1, 288, 289, 290, 23, 292, 25, -1, 27, 28,
- -1, -1, 299, -1, -1, 34, -1, 36, 37, 38,
- -1, 40, 41, 42, 43, 44, -1, 314, -1, 316,
- -1, -1, 319, 52, 53, -1, -1, -1, -1, -1,
- 59, 60, 61, 62, -1, 64, 65, -1, -1, -1,
- 69, 70, -1, -1, -1, -1, 75, -1, -1, 78,
- -1, -1, -1, 82, -1, -1, 85, -1, 87, 88,
- 89, 90, -1, -1, -1, 94, -1, -1, 97, -1,
- -1, -1, 101, -1, -1, 104, 105, -1, -1, -1,
- -1, 110, -1, -1, 113, -1, -1, -1, -1, -1,
- -1, -1, -1, 122, 123, -1, -1, -1, 127, 128,
- 129, 130, 131, 132, 133, -1, 135, 136, 137, 138,
- 139, 140, -1, 142, -1, 144, -1, -1, -1, 148,
- -1, -1, -1, -1, -1, -1, -1, 156, 157, -1,
- -1, -1, 161, 162, 163, 164, 165, 166, 167, -1,
- -1, -1, -1, 172, -1, 174, -1, -1, 177, 178,
- 179, -1, 181, -1, 183, -1, -1, -1, 187, -1,
- 189, -1, -1, 192, -1, -1, -1, -1, -1, -1,
- 199, -1, -1, -1, -1, -1, -1, 206, -1, -1,
- -1, 210, -1, -1, -1, 214, -1, 216, 217, -1,
- -1, 220, 221, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 232, -1, -1, 235, 236, 237, 238,
- -1, -1, -1, -1, -1, -1, -1, -1, 247, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, 263, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 278,
- 279, -1, -1, -1, 15, -1, -1, -1, -1, 288,
- 289, 290, 23, 292, 25, -1, 27, 28, -1, -1,
- 299, -1, -1, 34, -1, 36, 37, 38, -1, 40,
- 41, 42, 43, 44, -1, 314, -1, 316, -1, -1,
- 319, 52, 53, -1, -1, -1, -1, -1, 59, 60,
- 61, 62, -1, 64, 65, -1, -1, -1, 69, 70,
- -1, -1, -1, -1, 75, -1, -1, 78, -1, -1,
- -1, 82, -1, -1, 85, -1, 87, 88, 89, 90,
- -1, -1, -1, 94, -1, -1, 97, -1, -1, -1,
- 101, -1, -1, 104, 105, -1, -1, -1, -1, 110,
- -1, -1, 113, -1, -1, -1, -1, -1, -1, -1,
- -1, 122, 123, -1, -1, -1, 127, 128, 129, 130,
- 131, 132, 133, -1, 135, 136, 137, 138, 139, 140,
- -1, 142, -1, 144, -1, -1, -1, 148, -1, -1,
- -1, -1, -1, -1, -1, 156, 157, -1, 159, -1,
- 161, 162, 163, 164, 165, 166, 167, -1, -1, -1,
- -1, 172, -1, 174, -1, -1, 177, 178, 179, -1,
- 181, -1, 183, -1, -1, -1, 187, -1, -1, -1,
- -1, 192, -1, -1, -1, -1, -1, -1, 199, -1,
- -1, -1, -1, -1, -1, 206, -1, -1, -1, 210,
- -1, -1, -1, 214, -1, 216, 217, -1, -1, 220,
- 221, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, 232, -1, -1, 235, 236, 237, 238, -1, -1,
- -1, -1, -1, -1, -1, -1, 247, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 263, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, 278, 279, -1,
- -1, -1, 15, -1, -1, -1, -1, 288, 289, 290,
- 23, 292, 25, -1, 27, 28, -1, -1, 299, -1,
- -1, 34, -1, 36, 37, 38, -1, 40, 41, 42,
- 43, 44, -1, 314, -1, 316, -1, -1, 319, 52,
- 53, -1, -1, -1, -1, -1, 59, 60, 61, 62,
- -1, 64, 65, -1, -1, -1, 69, 70, -1, -1,
- -1, -1, 75, -1, -1, 78, -1, -1, -1, 82,
- -1, -1, 85, -1, 87, 88, 89, 90, -1, -1,
- -1, 94, -1, -1, 97, -1, -1, -1, 101, -1,
- -1, 104, 105, -1, -1, -1, -1, 110, -1, -1,
- 113, -1, -1, -1, -1, -1, -1, -1, -1, 122,
- 123, -1, -1, -1, 127, 128, 129, 130, 131, 132,
- 133, -1, 135, 136, 137, 138, 139, 140, -1, 142,
- -1, 144, -1, -1, -1, 148, -1, -1, -1, -1,
- -1, -1, -1, 156, 157, -1, -1, -1, 161, 162,
- 163, 164, 165, 166, 167, -1, -1, -1, -1, 172,
- -1, 174, -1, -1, 177, 178, 179, -1, 181, -1,
- 183, -1, -1, -1, 187, -1, -1, -1, -1, 192,
- -1, -1, -1, -1, -1, -1, 199, -1, -1, -1,
- -1, -1, -1, 206, -1, -1, -1, 210, -1, -1,
- -1, 214, -1, 216, 217, -1, -1, 220, 221, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 232,
- -1, -1, 235, 236, 237, 238, -1, -1, -1, -1,
- -1, -1, -1, -1, 247, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 263, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 278, 279, -1, -1, -1,
- -1, -1, -1, -1, -1, 288, 289, 290, -1, 292,
- -1, -1, -1, -1, -1, -1, 299, -1, 3, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, 314, -1, 316, -1, -1, 319, 22, -1, 24,
- 25, 26, -1, 28, 29, -1, 31, 32, 33, 34,
- 35, -1, 37, 38, 39, 40, -1, -1, 43, 44,
- 45, 46, 47, 48, 49, 50, 51, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 61, -1, -1, -1,
- -1, -1, -1, -1, -1, 70, -1, -1, -1, -1,
- -1, -1, -1, -1, 79, 80, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, 96, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, 173, 174,
- -1, 176, -1, -1, -1, 180, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, 203, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, 296
- };
- #define YYPURE 1
- /* -*-C-*- Note some compilers choke on comments on `#line' lines. */
- #line 3 "/usr/lib/bison.simple"
- /* This file comes from bison-1.28. */
- /* Skeleton output parser for bison,
- Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
- /* As a special exception, when this file is copied by Bison into a
- Bison output file, you may use that output file without restriction.
- This special exception was added by the Free Software Foundation
- in version 1.24 of Bison. */
- /* This is the parser code that is written into each bison parser
- when the %semantic_parser declaration is not specified in the grammar.
- It was written by Richard Stallman by simplifying the hairy parser
- used when %semantic_parser is specified. */
- #ifndef YYSTACK_USE_ALLOCA
- #ifdef alloca
- #define YYSTACK_USE_ALLOCA
- #else /* alloca not defined */
- #ifdef __GNUC__
- #define YYSTACK_USE_ALLOCA
- #define alloca __builtin_alloca
- #else /* not GNU C. */
- #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
- #define YYSTACK_USE_ALLOCA
- #include <alloca.h>
- #else /* not sparc */
- /* We think this test detects Watcom and Microsoft C. */
- /* This used to test MSDOS, but that is a bad idea
- since that symbol is in the user namespace. */
- #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
- #if 0 /* No need for malloc.h, which pollutes the namespace;
- instead, just don't use alloca. */
- #include <malloc.h>
- #endif
- #else /* not MSDOS, or __TURBOC__ */
- #if defined(_AIX)
- /* I don't know what this was needed for, but it pollutes the namespace.
- So I turned it off. rms, 2 May 1997. */
- /* #include <malloc.h> */
- #pragma alloca
- #define YYSTACK_USE_ALLOCA
- #else /* not MSDOS, or __TURBOC__, or _AIX */
- #if 0
- #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
- and on HPUX 10. Eventually we can turn this on. */
- #define YYSTACK_USE_ALLOCA
- #define alloca __builtin_alloca
- #endif /* __hpux */
- #endif
- #endif /* not _AIX */
- #endif /* not MSDOS, or __TURBOC__ */
- #endif /* not sparc */
- #endif /* not GNU C */
- #endif /* alloca not defined */
- #endif /* YYSTACK_USE_ALLOCA not defined */
- #ifdef YYSTACK_USE_ALLOCA
- #define YYSTACK_ALLOC alloca
- #else
- #define YYSTACK_ALLOC malloc
- #endif
- /* Note: there must be only one dollar sign in this file.
- It is replaced by the list of actions, each action
- as one case of the switch. */
- #define yyerrok (yyerrstatus = 0)
- #define yyclearin (yychar = YYEMPTY)
- #define YYEMPTY -2
- #define YYEOF 0
- #define YYACCEPT goto yyacceptlab
- #define YYABORT goto yyabortlab
- #define YYERROR goto yyerrlab1
- /* Like YYERROR except do call yyerror.
- This remains here temporarily to ease the
- transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
- #define YYFAIL goto yyerrlab
- #define YYRECOVERING() (!!yyerrstatus)
- #define YYBACKUP(token, value)
- do
- if (yychar == YYEMPTY && yylen == 1)
- { yychar = (token), yylval = (value);
- yychar1 = YYTRANSLATE (yychar);
- YYPOPSTACK;
- goto yybackup;
- }
- else
- { yyerror ("syntax error: cannot back up"); YYERROR; }
- while (0)
- #define YYTERROR 1
- #define YYERRCODE 256
- #ifndef YYPURE
- #define YYLEX yylex()
- #endif
- #ifdef YYPURE
- #ifdef YYLSP_NEEDED
- #ifdef YYLEX_PARAM
- #define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
- #else
- #define YYLEX yylex(&yylval, &yylloc)
- #endif
- #else /* not YYLSP_NEEDED */
- #ifdef YYLEX_PARAM
- #define YYLEX yylex(&yylval, YYLEX_PARAM)
- #else
- #define YYLEX yylex(&yylval)
- #endif
- #endif /* not YYLSP_NEEDED */
- #endif
- /* If nonreentrant, generate the variables here */
- #ifndef YYPURE
- int yychar; /* the lookahead symbol */
- YYSTYPE yylval; /* the semantic value of the */
- /* lookahead symbol */
- #ifdef YYLSP_NEEDED
- YYLTYPE yylloc; /* location data for the lookahead */
- /* symbol */
- #endif
- int yynerrs; /* number of parse errors so far */
- #endif /* not YYPURE */
- #if YYDEBUG != 0
- int yydebug; /* nonzero means print parse trace */
- /* Since this is uninitialized, it does not stop multiple parsers
- from coexisting. */
- #endif
- /* YYINITDEPTH indicates the initial size of the parser's stacks */
- #ifndef YYINITDEPTH
- #define YYINITDEPTH 200
- #endif
- /* YYMAXDEPTH is the maximum size the stacks can grow to
- (effective only if the built-in stack extension method is used). */
- #if YYMAXDEPTH == 0
- #undef YYMAXDEPTH
- #endif
- #ifndef YYMAXDEPTH
- #define YYMAXDEPTH 10000
- #endif
- /* Define __yy_memcpy. Note that the size argument
- should be passed with type unsigned int, because that is what the non-GCC
- definitions require. With GCC, __builtin_memcpy takes an arg
- of type size_t, but it can handle unsigned int. */
- #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
- #define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT)
- #else /* not GNU C or C++ */
- #ifndef __cplusplus
- /* This is the most reliable way to avoid incompatibilities
- in available built-in functions on various systems. */
- static void
- __yy_memcpy (to, from, count)
- char *to;
- char *from;
- unsigned int count;
- {
- register char *f = from;
- register char *t = to;
- register int i = count;
- while (i-- > 0)
- *t++ = *f++;
- }
- #else /* __cplusplus */
- /* This is the most reliable way to avoid incompatibilities
- in available built-in functions on various systems. */
- static void
- __yy_memcpy (char *to, char *from, unsigned int count)
- {
- register char *t = to;
- register char *f = from;
- register int i = count;
- while (i-- > 0)
- *t++ = *f++;
- }
- #endif
- #endif
- #line 217 "/usr/lib/bison.simple"
- /* The user can define YYPARSE_PARAM as the name of an argument to be passed
- into yyparse. The argument should have type void *.
- It should actually point to an object.
- Grammar actions can access the variable by casting it
- to the proper pointer type. */
- #ifdef YYPARSE_PARAM
- #ifdef __cplusplus
- #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
- #define YYPARSE_PARAM_DECL
- #else /* not __cplusplus */
- #define YYPARSE_PARAM_ARG YYPARSE_PARAM
- #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
- #endif /* not __cplusplus */
- #else /* not YYPARSE_PARAM */
- #define YYPARSE_PARAM_ARG
- #define YYPARSE_PARAM_DECL
- #endif /* not YYPARSE_PARAM */
- /* Prevent warning if -Wstrict-prototypes. */
- #ifdef __GNUC__
- #ifdef YYPARSE_PARAM
- int yyparse (void *);
- #else
- int yyparse (void);
- #endif
- #endif
- int
- yyparse(YYPARSE_PARAM_ARG)
- YYPARSE_PARAM_DECL
- {
- register int yystate;
- register int yyn;
- register short *yyssp;
- register YYSTYPE *yyvsp;
- int yyerrstatus; /* number of tokens to shift before error messages enabled */
- int yychar1 = 0; /* lookahead token as an internal (translated) token number */
- short yyssa[YYINITDEPTH]; /* the state stack */
- YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
- short *yyss = yyssa; /* refer to the stacks thru separate pointers */
- YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
- #ifdef YYLSP_NEEDED
- YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
- YYLTYPE *yyls = yylsa;
- YYLTYPE *yylsp;
- #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
- #else
- #define YYPOPSTACK (yyvsp--, yyssp--)
- #endif
- int yystacksize = YYINITDEPTH;
- int yyfree_stacks = 0;
- #ifdef YYPURE
- int yychar;
- YYSTYPE yylval;
- int yynerrs;
- #ifdef YYLSP_NEEDED
- YYLTYPE yylloc;
- #endif
- #endif
- YYSTYPE yyval; /* the variable used to return */
- /* semantic values from the action */
- /* routines */
- int yylen;
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Starting parsen");
- #endif
- yystate = 0;
- yyerrstatus = 0;
- yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
- /* Initialize stack pointers.
- Waste one element of value and location stack
- so that they stay on the same level as the state stack.
- The wasted elements are never initialized. */
- yyssp = yyss - 1;
- yyvsp = yyvs;
- #ifdef YYLSP_NEEDED
- yylsp = yyls;
- #endif
- /* Push a new state, which is found in yystate . */
- /* In all cases, when you get here, the value and location stacks
- have just been pushed. so pushing a state here evens the stacks. */
- yynewstate:
- *++yyssp = yystate;
- if (yyssp >= yyss + yystacksize - 1)
- {
- /* Give user a chance to reallocate the stack */
- /* Use copies of these so that the &'s don't force the real ones into memory. */
- YYSTYPE *yyvs1 = yyvs;
- short *yyss1 = yyss;
- #ifdef YYLSP_NEEDED
- YYLTYPE *yyls1 = yyls;
- #endif
- /* Get the current used size of the three stacks, in elements. */
- int size = yyssp - yyss + 1;
- #ifdef yyoverflow
- /* Each stack pointer address is followed by the size of
- the data in use in that stack, in bytes. */
- #ifdef YYLSP_NEEDED
- /* This used to be a conditional around just the two extra args,
- but that might be undefined if yyoverflow is a macro. */
- yyoverflow("parser stack overflow",
- &yyss1, size * sizeof (*yyssp),
- &yyvs1, size * sizeof (*yyvsp),
- &yyls1, size * sizeof (*yylsp),
- &yystacksize);
- #else
- yyoverflow("parser stack overflow",
- &yyss1, size * sizeof (*yyssp),
- &yyvs1, size * sizeof (*yyvsp),
- &yystacksize);
- #endif
- yyss = yyss1; yyvs = yyvs1;
- #ifdef YYLSP_NEEDED
- yyls = yyls1;
- #endif
- #else /* no yyoverflow */
- /* Extend the stack our own way. */
- if (yystacksize >= YYMAXDEPTH)
- {
- yyerror("parser stack overflow");
- if (yyfree_stacks)
- {
- free (yyss);
- free (yyvs);
- #ifdef YYLSP_NEEDED
- free (yyls);
- #endif
- }
- return 2;
- }
- yystacksize *= 2;
- if (yystacksize > YYMAXDEPTH)
- yystacksize = YYMAXDEPTH;
- #ifndef YYSTACK_USE_ALLOCA
- yyfree_stacks = 1;
- #endif
- yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
- __yy_memcpy ((char *)yyss, (char *)yyss1,
- size * (unsigned int) sizeof (*yyssp));
- yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
- __yy_memcpy ((char *)yyvs, (char *)yyvs1,
- size * (unsigned int) sizeof (*yyvsp));
- #ifdef YYLSP_NEEDED
- yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
- __yy_memcpy ((char *)yyls, (char *)yyls1,
- size * (unsigned int) sizeof (*yylsp));
- #endif
- #endif /* no yyoverflow */
- yyssp = yyss + size - 1;
- yyvsp = yyvs + size - 1;
- #ifdef YYLSP_NEEDED
- yylsp = yyls + size - 1;
- #endif
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Stack size increased to %dn", yystacksize);
- #endif
- if (yyssp >= yyss + yystacksize - 1)
- YYABORT;
- }
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Entering state %dn", yystate);
- #endif
- goto yybackup;
- yybackup:
- /* Do appropriate processing given the current state. */
- /* Read a lookahead token if we need one and don't already have one. */
- /* yyresume: */
- /* First try to decide what to do without reference to lookahead token. */
- yyn = yypact[yystate];
- if (yyn == YYFLAG)
- goto yydefault;
- /* Not known => get a lookahead token if don't already have one. */
- /* yychar is either YYEMPTY or YYEOF
- or a valid token in external form. */
- if (yychar == YYEMPTY)
- {
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Reading a token: ");
- #endif
- yychar = YYLEX;
- }
- /* Convert token to internal form (in yychar1) for indexing tables with */
- if (yychar <= 0) /* This means end of input. */
- {
- yychar1 = 0;
- yychar = YYEOF; /* Don't call YYLEX any more */
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Now at end of input.n");
- #endif
- }
- else
- {
- yychar1 = YYTRANSLATE(yychar);
- #if YYDEBUG != 0
- if (yydebug)
- {
- fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
- /* Give the individual parser a way to print the precise meaning
- of a token, for further debugging info. */
- #ifdef YYPRINT
- YYPRINT (stderr, yychar, yylval);
- #endif
- fprintf (stderr, ")n");
- }
- #endif
- }
- yyn += yychar1;
- if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
- goto yydefault;
- yyn = yytable[yyn];
- /* yyn is what to do for this token type in this state.
- Negative => reduce, -yyn is rule number.
- Positive => shift, yyn is new state.
- New state is final state => don't bother to shift,
- just return success.
- 0, or most negative number => error. */
- if (yyn < 0)
- {
- if (yyn == YYFLAG)
- goto yyerrlab;
- yyn = -yyn;
- goto yyreduce;
- }
- else if (yyn == 0)
- goto yyerrlab;
- if (yyn == YYFINAL)
- YYACCEPT;
- /* Shift the lookahead token. */
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
- #endif
- /* Discard the token being shifted unless it is eof. */
- if (yychar != YYEOF)
- yychar = YYEMPTY;
- *++yyvsp = yylval;
- #ifdef YYLSP_NEEDED
- *++yylsp = yylloc;
- #endif
- /* count tokens shifted since error; after three, turn off error status. */
- if (yyerrstatus) yyerrstatus--;
- yystate = yyn;
- goto yynewstate;
- /* Do the default action for the current state. */
- yydefault:
- yyn = yydefact[yystate];
- if (yyn == 0)
- goto yyerrlab;
- /* Do a reduction. yyn is the number of a rule to reduce with. */
- yyreduce:
- yylen = yyr2[yyn];
- if (yylen > 0)
- yyval = yyvsp[1-yylen]; /* implement default value of the action */
- #if YYDEBUG != 0
- if (yydebug)
- {
- int i;
- fprintf (stderr, "Reducing via rule %d (line %d), ",
- yyn, yyrline[yyn]);
- /* Print the symbols being reduced, and their result. */
- for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
- fprintf (stderr, "%s ", yytname[yyrhs[i]]);
- fprintf (stderr, " -> %sn", yytname[yyr1[yyn]]);
- }
- #endif
- switch (yyn) {
- case 1:
- #line 527 "sql_yacc.yy"
- {
- if (!current_thd->bootstrap)
- send_error(¤t_thd->net,ER_EMPTY_QUERY);
- YYABORT;
- ;
- break;}
- case 2:
- #line 532 "sql_yacc.yy"
- {;
- break;}
- case 37:
- #line 574 "sql_yacc.yy"
- {
- LEX *lex = Lex;
- lex->sql_command = SQLCOM_CHANGE_MASTER;
- memset(&lex->mi, 0, sizeof(lex->mi));
- ;
- break;}
- case 41:
- #line 587 "sql_yacc.yy"
- {
- Lex->mi.host = yyvsp[0].lex_str.str;
- ;
- break;}
- case 42:
- #line 592 "sql_yacc.yy"
- {
- Lex->mi.user = yyvsp[0].lex_str.str;
- ;
- break;}
- case 43:
- #line 597 "sql_yacc.yy"
- {
- Lex->mi.password = yyvsp[0].lex_str.str;
- ;
- break;}
- case 44:
- #line 602 "sql_yacc.yy"
- {
- Lex->mi.log_file_name = yyvsp[0].lex_str.str;
- ;
- break;}
- case 45:
- #line 607 "sql_yacc.yy"
- {
- Lex->mi.port = yyvsp[0].ulong_num;
- ;
- break;}
- case 46:
- #line 612 "sql_yacc.yy"
- {
- Lex->mi.pos = yyvsp[0].ulonglong_num;
- ;
- break;}
- case 47:
- #line 617 "sql_yacc.yy"
- {
- Lex->mi.connect_retry = yyvsp[0].ulong_num;
- ;
- break;}
- case 48:
- #line 627 "sql_yacc.yy"
- {
- LEX *lex=Lex;
- lex->sql_command= SQLCOM_CREATE_TABLE;
- if (!add_table_to_list(yyvsp[0].table,
- (yyvsp[-3].num & HA_LEX_CREATE_TMP_TABLE ?
- &tmp_table_alias : (LEX_STRING*) 0),1))
- YYABORT;
- lex->create_list.empty();
- lex->key_list.empty();
- lex->col_list.empty();
- lex->change=NullS;
- bzero((char*) &lex->create_info,sizeof(lex->create_info));
- lex->create_info.options=yyvsp[-3].num | yyvsp[-1].num;
- lex->create_info.db_type= default_table_type;
- ;
- break;}
- case 50:
- #line 645 "sql_yacc.yy"
- {
- Lex->sql_command= SQLCOM_CREATE_INDEX;
- if (!add_table_to_list(yyvsp[0].table,NULL,1))
- YYABORT;
- Lex->create_list.empty();
- Lex->key_list.empty();
- Lex->col_list.empty();
- Lex->change=NullS;
- ;
- break;}
- case 51:
- #line 655 "sql_yacc.yy"
- {
- Lex->key_list.push_back(new Key(yyvsp[-8].key_type,yyvsp[-6].lex_str.str,Lex->col_list));
- Lex->col_list.empty();
- ;
- break;}
- case 52:
- #line 660 "sql_yacc.yy"
- {
- Lex->sql_command=SQLCOM_CREATE_DB;
- Lex->name=yyvsp[0].lex_str.str;
- Lex->create_info.options=yyvsp[-1].num;
- ;
- break;}
- case 53:
- #line 666 "sql_yacc.yy"
- {
- Lex->sql_command = SQLCOM_CREATE_FUNCTION;
- Lex->udf.name=yyvsp[0].lex_str.str;
- Lex->udf.name_length=yyvsp[0].lex_str.length;
- Lex->udf.type= yyvsp[-2].udf_type;
- ;
- break;}
- case 54:
- #line 673 "sql_yacc.yy"
- {
- Lex->udf.returns=(Item_result) yyvsp[-2].num;
- Lex->udf.dl=yyvsp[0].lex_str.str;
- ;
- break;}
- case 55:
- #line 679 "sql_yacc.yy"
- {;
- break;}
- case 56:
- #line 680 "sql_yacc.yy"
- {;
- break;}
- case 57:
- #line 683 "sql_yacc.yy"
- {;
- break;}
- case 58:
- #line 685 "sql_yacc.yy"
- {
- mysql_init_select(Lex);
- ;
- break;}
- case 59:
- #line 688 "sql_yacc.yy"
- {;
- break;}
- case 60:
- #line 691 "sql_yacc.yy"
- {;
- break;}
- case 61:
- #line 692 "sql_yacc.yy"
- {;
- break;}
- case 62:
- #line 695 "sql_yacc.yy"
- { yyval.num= 0; ;
- break;}
- case 63:
- #line 696 "sql_yacc.yy"
- { yyval.num= yyvsp[0].num;;
- break;}
- case 64:
- #line 699 "sql_yacc.yy"
- { yyval.num=yyvsp[0].num; ;
- break;}
- case 65:
- #line 700 "sql_yacc.yy"
- { yyval.num= yyvsp[-1].num | yyvsp[0].num ;
- break;}
- case 66:
- #line 703 "sql_yacc.yy"
- { yyval.num=HA_LEX_CREATE_TMP_TABLE; ;
- break;}
- case 67:
- #line 706 "sql_yacc.yy"
- { yyval.num= 0; ;
- break;}
- case 68:
- #line 707 "sql_yacc.yy"
- { yyval.num=HA_LEX_CREATE_IF_NOT_EXISTS; ;
- break;}
- case 73:
- #line 718 "sql_yacc.yy"
- { Lex->create_info.db_type= yyvsp[0].db_type; ;
- break;}
- case 74:
- #line 719 "sql_yacc.yy"
- { Lex->create_info.max_rows= yyvsp[0].ulonglong_num; ;
- break;}
- case 75:
- #line 720 "sql_yacc.yy"
- { Lex->create_info.min_rows= yyvsp[0].ulonglong_num; ;
- break;}
- case 76:
- #line 721 "sql_yacc.yy"
- { Lex->create_info.avg_row_length=yyvsp[0].ulong_num; ;
- break;}
- case 77:
- #line 722 "sql_yacc.yy"
- { Lex->create_info.password=yyvsp[0].lex_str.str; ;
- break;}
- case 78:
- #line 723 "sql_yacc.yy"
- { Lex->create_info.comment=yyvsp[0].lex_str.str; ;
- break;}
- case 79:
- #line 724 "sql_yacc.yy"
- { Lex->create_info.auto_increment_value=yyvsp[0].ulonglong_num; Lex->create_info.used_fields|= HA_CREATE_USED_AUTO;;
- break;}
- case 80:
- #line 725 "sql_yacc.yy"
- { Lex->create_info.table_options|= yyvsp[0].ulong_num ? HA_OPTION_PACK_KEYS : HA_OPTION_NO_PACK_KEYS; ;
- break;}
- case 81:
- #line 726 "sql_yacc.yy"
- { Lex->create_info.table_options|= yyvsp[0].ulong_num ? HA_OPTION_CHECKSUM : HA_OPTION_NO_CHECKSUM; ;
- break;}
- case 82:
- #line 727 "sql_yacc.yy"
- { Lex->create_info.table_options|= yyvsp[0].ulong_num ? HA_OPTION_DELAY_KEY_WRITE : HA_OPTION_NO_DELAY_KEY_WRITE; ;
- break;}
- case 83:
- #line 728 "sql_yacc.yy"
- { Lex->create_info.row_type= yyvsp[0].row_type; ;
- break;}
- case 84:
- #line 729 "sql_yacc.yy"
- { Lex->create_info.raid_type= yyvsp[0].ulong_num; Lex->create_info.used_fields|= HA_CREATE_USED_RAID;;
- break;}
- case 85:
- #line 730 "sql_yacc.yy"
- { Lex->create_info.raid_chunks= yyvsp[0].ulong_num; Lex->create_info.used_fields|= HA_CREATE_USED_RAID;;
- break;}
- case 86:
- #line 731 "sql_yacc.yy"
- { Lex->create_info.raid_chunksize= yyvsp[0].ulong_num*RAID_BLOCK_SIZE; Lex->create_info.used_fields|= HA_CREATE_USED_RAID;;
- break;}
- case 87:
- #line 733 "sql_yacc.yy"
- {
- /* Move the union list to the merge_list */
- LEX *lex=Lex;
- TABLE_LIST *table_list= (TABLE_LIST*) lex->table_list.first;
- lex->create_info.merge_list= lex->table_list;
- lex->create_info.merge_list.elements--;
- lex->create_info.merge_list.first= (byte*) (table_list->next);
- lex->table_list.elements=1;
- lex->table_list.next= (byte**) &(table_list->next);
- table_list->next=0;
- lex->create_info.used_fields|= HA_CREATE_USED_UNION;
- ;
- break;}
- case 88:
- #line 747 "sql_yacc.yy"
- { yyval.db_type= DB_TYPE_ISAM; ;
- break;}
- case 89:
- #line 748 "sql_yacc.yy"
- { yyval.db_type= DB_TYPE_MYISAM; ;
- break;}
- case 90:
- #line 749 "sql_yacc.yy"
- { yyval.db_type= DB_TYPE_MRG_MYISAM; ;
- break;}
- case 91:
- #line 750 "sql_yacc.yy"
- { yyval.db_type= DB_TYPE_HEAP; ;
- break;}
- case 92:
- #line 751 "sql_yacc.yy"
- { yyval.db_type= DB_TYPE_BERKELEY_DB; ;
- break;}
- case 93:
- #line 752 "sql_yacc.yy"
- { yyval.db_type= DB_TYPE_INNOBASE; ;
- break;}
- case 94:
- #line 755 "sql_yacc.yy"
- { yyval.row_type= ROW_TYPE_DEFAULT; ;
- break;}
- case 95:
- #line 756 "sql_yacc.yy"
- { yyval.row_type= ROW_TYPE_FIXED; ;
- break;}
- case 96:
- #line 757 "sql_yacc.yy"
- { yyval.row_type= ROW_TYPE_DYNAMIC; ;
- break;}
- case 97:
- #line 758 "sql_yacc.yy"
- { yyval.row_type= ROW_TYPE_COMPRESSED; ;
- break;}
- case 98:
- #line 761 "sql_yacc.yy"
- { yyval.ulong_num= RAID_TYPE_0; ;
- break;}
- case 99:
- #line 762 "sql_yacc.yy"
- { yyval.ulong_num= RAID_TYPE_0; ;
- break;}
- case 100:
- #line 763 "sql_yacc.yy"
- { yyval.ulong_num=yyvsp[0].ulong_num;;
- break;}
- case 103:
- #line 770 "sql_yacc.yy"
- { yyval.udf_type = UDFTYPE_FUNCTION; ;
- break;}
- case 104:
- #line 771 "sql_yacc.yy"
- { yyval.udf_type = UDFTYPE_AGGREGATE; ;
- break;}
- case 105:
- #line 774 "sql_yacc.yy"
- {yyval.num = (int) STRING_RESULT; ;
- break;}
- case 106:
- #line 775 "sql_yacc.yy"
- {yyval.num = (int) REAL_RESULT; ;
- break;}
- case 107:
- #line 776 "sql_yacc.yy"
- {yyval.num = (int) INT_RESULT; ;
- break;}
- case 111:
- #line 786 "sql_yacc.yy"
- {
- Lex->col_list.empty(); /* Alloced by sql_alloc */
- ;
- break;}
- case 112:
- #line 790 "sql_yacc.yy"
- {
- Lex->key_list.push_back(new Key(yyvsp[-4].key_type,yyvsp[-3].simple_string,Lex->col_list));
- Lex->col_list.empty(); /* Alloced by sql_alloc */
- ;
- break;}
- case 113:
- #line 795 "sql_yacc.yy"
- {
- Lex->col_list.empty(); /* Alloced by sql_alloc */
- ;
- break;}
- case 114:
- #line 799 "sql_yacc.yy"
- {
- Lex->col_list.empty(); /* Alloced by sql_alloc */
- ;
- break;}
- case 117:
- #line 809 "sql_yacc.yy"
- {
- Lex->length=Lex->dec=0; Lex->type=0; Lex->interval=0;
- Lex->default_value=0;
- ;
- break;}
- case 118:
- #line 814 "sql_yacc.yy"
- {
- if (add_field_to_list(yyvsp[-3].lex_str.str,
- (enum enum_field_types) yyvsp[-1].num,
- Lex->length,Lex->dec,Lex->type,
- Lex->default_value,Lex->change,
- Lex->interval))
- YYABORT;
- ;
- break;}
- case 119:
- #line 824 "sql_yacc.yy"
- { Lex->length=yyvsp[-1].simple_string; yyval.num=yyvsp[-2].num; ;
- break;}
- case 120:
- #line 825 "sql_yacc.yy"
- { yyval.num=yyvsp[-2].num; ;
- break;}
- case 121:
- #line 826 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_FLOAT; ;
- break;}
- case 122:
- #line 827 "sql_yacc.yy"
- { Lex->length=(char*) "1";
- yyval.num=FIELD_TYPE_TINY; ;
- break;}
- case 123:
- #line 829 "sql_yacc.yy"
- { Lex->length=(char*) "1";
- yyval.num=FIELD_TYPE_TINY; ;
- break;}
- case 124:
- #line 831 "sql_yacc.yy"
- { Lex->length=yyvsp[-2].lex_str.str;
- yyval.num=FIELD_TYPE_STRING; ;
- break;}
- case 125:
- #line 833 "sql_yacc.yy"
- { Lex->length=(char*) "1";
- yyval.num=FIELD_TYPE_STRING; ;
- break;}
- case 126:
- #line 835 "sql_yacc.yy"
- { Lex->length=yyvsp[-1].lex_str.str;
- Lex->type|=BINARY_FLAG;
- yyval.num=FIELD_TYPE_STRING; ;
- break;}
- case 127:
- #line 838 "sql_yacc.yy"
- { Lex->length=yyvsp[-2].lex_str.str;
- yyval.num=FIELD_TYPE_VAR_STRING; ;
- break;}
- case 128:
- #line 840 "sql_yacc.yy"
- { Lex->length=yyvsp[-1].lex_str.str;
- Lex->type|=BINARY_FLAG;
- yyval.num=FIELD_TYPE_VAR_STRING; ;
- break;}
- case 129:
- #line 843 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_YEAR; Lex->length=yyvsp[-1].simple_string; ;
- break;}
- case 130:
- #line 844 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_DATE; ;
- break;}
- case 131:
- #line 845 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_TIME; ;
- break;}
- case 132:
- #line 846 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_TIMESTAMP; ;
- break;}
- case 133:
- #line 847 "sql_yacc.yy"
- { Lex->length=yyvsp[-1].lex_str.str;
- yyval.num=FIELD_TYPE_TIMESTAMP; ;
- break;}
- case 134:
- #line 849 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_DATETIME; ;
- break;}
- case 135:
- #line 850 "sql_yacc.yy"
- { Lex->type|=BINARY_FLAG;
- yyval.num=FIELD_TYPE_TINY_BLOB; ;
- break;}
- case 136:
- #line 852 "sql_yacc.yy"
- { Lex->type|=BINARY_FLAG;
- yyval.num=FIELD_TYPE_BLOB; ;
- break;}
- case 137:
- #line 854 "sql_yacc.yy"
- { Lex->type|=BINARY_FLAG;
- yyval.num=FIELD_TYPE_MEDIUM_BLOB; ;
- break;}
- case 138:
- #line 856 "sql_yacc.yy"
- { Lex->type|=BINARY_FLAG;
- yyval.num=FIELD_TYPE_LONG_BLOB; ;
- break;}
- case 139:
- #line 858 "sql_yacc.yy"
- { Lex->type|=BINARY_FLAG;
- yyval.num=FIELD_TYPE_MEDIUM_BLOB; ;
- break;}
- case 140:
- #line 860 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_MEDIUM_BLOB; ;
- break;}
- case 141:
- #line 861 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_TINY_BLOB; ;
- break;}
- case 142:
- #line 862 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_BLOB; ;
- break;}
- case 143:
- #line 863 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_MEDIUM_BLOB; ;
- break;}
- case 144:
- #line 864 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_LONG_BLOB; ;
- break;}
- case 145:
- #line 866 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_DECIMAL;;
- break;}
- case 146:
- #line 868 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_DECIMAL;;
- break;}
- case 147:
- #line 869 "sql_yacc.yy"
- {Lex->interval_list.empty();;
- break;}
- case 148:
- #line 870 "sql_yacc.yy"
- {
- Lex->interval=typelib(Lex->interval_list);
- yyval.num=FIELD_TYPE_ENUM;
- ;
- break;}
- case 149:
- #line 874 "sql_yacc.yy"
- { Lex->interval_list.empty();;
- break;}
- case 150:
- #line 875 "sql_yacc.yy"
- {
- Lex->interval=typelib(Lex->interval_list);
- yyval.num=FIELD_TYPE_SET;
- ;
- break;}
- case 151:
- #line 881 "sql_yacc.yy"
- {;
- break;}
- case 152:
- #line 882 "sql_yacc.yy"
- {;
- break;}
- case 153:
- #line 883 "sql_yacc.yy"
- {;
- break;}
- case 154:
- #line 886 "sql_yacc.yy"
- {;
- break;}
- case 155:
- #line 887 "sql_yacc.yy"
- {;
- break;}
- case 156:
- #line 888 "sql_yacc.yy"
- {;
- break;}
- case 157:
- #line 889 "sql_yacc.yy"
- {;
- break;}
- case 158:
- #line 892 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_LONG; ;
- break;}
- case 159:
- #line 893 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_TINY; ;
- break;}
- case 160:
- #line 894 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_SHORT; ;
- break;}
- case 161:
- #line 895 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_INT24; ;
- break;}
- case 162:
- #line 896 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_LONGLONG; ;
- break;}
- case 163:
- #line 899 "sql_yacc.yy"
- { yyval.num= current_thd->options & OPTION_ANSI_MODE ?
- FIELD_TYPE_FLOAT : FIELD_TYPE_DOUBLE; ;
- break;}
- case 164:
- #line 901 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_DOUBLE; ;
- break;}
- case 165:
- #line 902 "sql_yacc.yy"
- { yyval.num=FIELD_TYPE_DOUBLE; ;
- break;}
- case 166:
- #line 906 "sql_yacc.yy"
- {;
- break;}
- case 167:
- #line 907 "sql_yacc.yy"
- { Lex->length=yyvsp[-1].lex_str.str; ;
- break;}
- case 168:
- #line 908 "sql_yacc.yy"
- { Lex->length=yyvsp[-3].lex_str.str; Lex->dec=yyvsp[-1].lex_str.str; ;
- break;}
- case 169:
- #line 911 "sql_yacc.yy"
- {;
- break;}
- case 170:
- #line 912 "sql_yacc.yy"
- {;
- break;}
- case 171:
- #line 915 "sql_yacc.yy"
- {;
- break;}
- case 172:
- #line 916 "sql_yacc.yy"
- {;
- break;}
- case 173:
- #line 919 "sql_yacc.yy"
- { Lex->type|= UNSIGNED_FLAG;;
- break;}
- case 174:
- #line 920 "sql_yacc.yy"
- { Lex->type|= UNSIGNED_FLAG | ZEROFILL_FLAG; ;
- break;}
- case 175:
- #line 923 "sql_yacc.yy"
- { yyval.simple_string=(char*) 0; ;
- break;}
- case 176:
- #line 924 "sql_yacc.yy"
- { yyval.simple_string=yyvsp[-1].lex_str.str; ;
- break;}
- case 177:
- #line 927 "sql_yacc.yy"
- {;
- break;}
- case 178:
- #line 928 "sql_yacc.yy"
- { Lex->length=yyvsp[-3].lex_str.str; Lex->dec=yyvsp[-1].lex_str.str; ;
- break;}
- case 179:
- #line 931 "sql_yacc.yy"
- {;
- break;}
- case 180:
- #line 932 "sql_yacc.yy"
- {;
- break;}
- case 181:
- #line 935 "sql_yacc.yy"
- {;
- break;}
- case 183:
- #line 939 "sql_yacc.yy"
- { Lex->type&= ~ NOT_NULL_FLAG; ;
- break;}
- case 184:
- #line 940 "sql_yacc.yy"
- { Lex->type|= NOT_NULL_FLAG; ;
- break;}
- case 185:
- #line 941 "sql_yacc.yy"
- { Lex->default_value=yyvsp[0].item; ;
- break;}
- case 186:
- #line 942 "sql_yacc.yy"
- { Lex->type|= AUTO_INCREMENT_FLAG | NOT_NULL_FLAG; ;
- break;}
- case 187:
- #line 943 "sql_yacc.yy"
- { Lex->type|= PRI_KEY_FLAG | NOT_NULL_FLAG; ;
- break;}
- case 188:
- #line 944 "sql_yacc.yy"
- { Lex->type|= UNIQUE_FLAG; ;
- break;}
- case 189:
- #line 945 "sql_yacc.yy"
- { Lex->type|= UNIQUE_KEY_FLAG; ;
- break;}
- case 190:
- #line 948 "sql_yacc.yy"
- {;
- break;}
- case 191:
- #line 949 "sql_yacc.yy"
- { Lex->type|=BINARY_FLAG; ;
- break;}
- case 192:
- #line 952 "sql_yacc.yy"
- {;
- break;}
- case 193:
- #line 954 "sql_yacc.yy"
- {
- Lex->col_list.empty(); /* Alloced by sql_alloc */
- ;
- break;}
- case 194:
- #line 959 "sql_yacc.yy"
- {;
- break;}
- case 195:
- #line 960 "sql_yacc.yy"
- {;
- break;}
- case 196:
- #line 963 "sql_yacc.yy"
- {;
- break;}
- case 197:
- #line 964 "sql_yacc.yy"
- {;
- break;}
- case 198:
- #line 968 "sql_yacc.yy"
- {;
- break;}
- case 199:
- #line 969 "sql_yacc.yy"
- {;
- break;}
- case 200:
- #line 970 "sql_yacc.yy"
- {;
- break;}
- case 201:
- #line 971 "sql_yacc.yy"
- {;
- break;}
- case 202:
- #line 974 "sql_yacc.yy"
- {;
- break;}
- case 203:
- #line 975 "sql_yacc.yy"
- {;
- break;}
- case 204:
- #line 976 "sql_yacc.yy"
- {;
- break;}
- case 205:
- #line 977 "sql_yacc.yy"
- {;
- break;}
- case 206:
- #line 978 "sql_yacc.yy"
- {;
- break;}
- case 207:
- #line 981 "sql_yacc.yy"
- { yyval.key_type= Key::PRIMARY; ;
- break;}
- case 208:
- #line 982 "sql_yacc.yy"
- { yyval.key_type= Key::MULTIPLE; ;
- break;}
- case 209:
- #line 983 "sql_yacc.yy"
- { yyval.key_type= Key::FULLTEXT; ;
- break;}
- case 210:
- #line 984 "sql_yacc.yy"
- { yyval.key_type= Key::FULLTEXT; ;
- break;}
- case 211:
- #line 985 "sql_yacc.yy"
- { yyval.key_type= Key::UNIQUE; ;
- break;}
- case 212:
- #line 986 "sql_yacc.yy"
- { yyval.key_type= Key::UNIQUE; ;
- break;}
- case 213:
- #line 989 "sql_yacc.yy"
- {;
- break;}
- case 214:
- #line 990 "sql_yacc.yy"
- {;
- break;}
- case 215:
- #line 993 "sql_yacc.yy"
- {;
- break;}
- case 216:
- #line 994 "sql_yacc.yy"
- {;
- break;}
- case 217:
- #line 997 "sql_yacc.yy"
- { yyval.key_type= Key::MULTIPLE; ;
- break;}
- case 218:
- #line 998 "sql_yacc.yy"
- { yyval.key_type= Key::UNIQUE; ;
- break;}
- case 219:
- #line 999 "sql_yacc.yy"
- { yyval.key_type= Key::FULLTEXT; ;
- break;}
- case 220:
- #line 1002 "sql_yacc.yy"
- { Lex->col_list.push_back(yyvsp[-1].key_part); ;
- break;}
- case 221:
- #line 1003 "sql_yacc.yy"
- { Lex->col_list.push_back(yyvsp[-1].key_part); ;
- break;}
- case 222:
- #line 1006 "sql_yacc.yy"
- { yyval.key_part=new key_part_spec(yyvsp[0].lex_str.str); ;
- break;}
- case 223:
- #line 1007 "sql_yacc.yy"
- { yyval.key_part=new key_part_spec(yyvsp[-3].lex_str.str,(uint) atoi(yyvsp[-1].lex_str.str)); ;
- break;}
- case 224:
- #line 1010 "sql_yacc.yy"
- { yyval.simple_string=(char*) 0; ;
- break;}
- case 225:
- #line 1011 "sql_yacc.yy"
- { yyval.simple_string=yyvsp[0].lex_str.str; ;
- break;}
- case 226:
- #line 1014 "sql_yacc.yy"
- { Lex->interval_list.push_back(yyvsp[0].string); ;
- break;}
- case 227:
- #line 1015 "sql_yacc.yy"
- { Lex->interval_list.push_back(yyvsp[0].string); ;
- break;}
- case 228:
- #line 1023 "sql_yacc.yy"
- {
- LEX *lex=Lex;
- lex->sql_command = SQLCOM_ALTER_TABLE;
- lex->name=0;
- if (!add_table_to_list(yyvsp[0].table, NULL,1))
- YYABORT;
- lex->drop_primary=0;
- lex->create_list.empty();
- lex->key_list.empty();
- lex->col_list.empty();
- lex->drop_list.empty();
- lex->alter_list.empty();
- lex->order_list.elements=0;
- lex->order_list.first=0;
- lex->order_list.next= (byte**) &lex->order_list.first;
- lex->db=lex->name=0;
- bzero((char*) &lex->create_info,sizeof(lex->create_info));
- lex->create_info.db_type= DB_TYPE_DEFAULT;
- ;
- break;}
- case 233:
- #line 1049 "sql_yacc.yy"
- { Lex->change=0;;
- break;}
- case 236:
- #line 1054 "sql_yacc.yy"
- { Lex->change= yyvsp[0].lex_str.str; ;
- break;}
- case 238:
- #line 1056 "sql_yacc.yy"
- {
- Lex->length=Lex->dec=0; Lex->type=0; Lex->interval=0;
- Lex->default_value=0;
- ;
- break;}
- case 239:
- #line 1061 "sql_yacc.yy"
- {
- if (add_field_to_list(yyvsp[-3].lex_str.str,
- (enum enum_field_types) yyvsp[-1].num,
- Lex->length,Lex->dec,Lex->type,
- Lex->default_value, yyvsp[-3].lex_str.str,
- Lex->interval))
- YYABORT;
- ;
- break;}
- case 240:
- #line 1070 "sql_yacc.yy"
- { Lex->drop_list.push_back(new Alter_drop(Alter_drop::COLUMN,
- yyvsp[-1].lex_str.str)); ;
- break;}
- case 241:
- #line 1072 "sql_yacc.yy"
- { Lex->drop_primary=1; ;
- break;}
- case 242:
- #line 1073 "sql_yacc.yy"
- {;
- break;}
- case 243:
- #line 1075 "sql_yacc.yy"
- { Lex->drop_list.push_back(new Alter_drop(Alter_drop::KEY,
- yyvsp[0].lex_str.str)); ;
- break;}
- case 244:
- #line 1078 "sql_yacc.yy"
- { Lex->alter_list.push_back(new Alter_column(yyvsp[-3].lex_str.str,yyvsp[0].item)); ;
- break;}
- case 245:
- #line 1080 "sql_yacc.yy"
- { Lex->alter_list.push_back(new Alter_column(yyvsp[-2].lex_str.str,(Item*) 0)); ;
- break;}
- case 246:
- #line 1082 "sql_yacc.yy"
- { Lex->db=yyvsp[0].table->db.str ; Lex->name= yyvsp[0].table->table.str; ;
- break;}
- case 249:
- #line 1087 "sql_yacc.yy"
- {;
- break;}
- case 250:
- #line 1088 "sql_yacc.yy"
- {;
- break;}
- case 251:
- #line 1091 "sql_yacc.yy"
- { Lex->duplicates=DUP_ERROR; ;
- break;}
- case 252:
- #line 1092 "sql_yacc.yy"
- { Lex->duplicates=DUP_IGNORE; ;
- break;}
- case 253:
- #line 1095 "sql_yacc.yy"
- {;
- break;}
- case 254:
- #line 1096 "sql_yacc.yy"
- {;
- break;}
- case 255:
- #line 1097 "sql_yacc.yy"
- {;
- break;}
- case 256:
- #line 1100 "sql_yacc.yy"
- {;
- break;}
- case 257:
- #line 1101 "sql_yacc.yy"
- { store_position_for_column(yyvsp[0].lex_str.str); ;
- break;}
- case 258:
- #line 1102 "sql_yacc.yy"
- { store_position_for_column(first_keyword); ;
- break;}
- case 259:
- #line 1105 "sql_yacc.yy"
- {;
- break;}
- case 260:
- #line 1106 "sql_yacc.yy"
- {;
- break;}
- case 261:
- #line 1107 "sql_yacc.yy"
- {;
- break;}
- case 262:
- #line 1111 "sql_yacc.yy"
- {
- Lex->sql_command = SQLCOM_SLAVE_START;
- Lex->type = 0;
- ;
- break;}
- case 263:
- #line 1117 "sql_yacc.yy"
- {
- Lex->sql_command = SQLCOM_SLAVE_STOP;
- Lex->type = 0;
- ;
- break;}
- case 264:
- #line 1124 "sql_yacc.yy"
- {
- Lex->sql_command = SQLCOM_RESTORE_TABLE;
- ;
- break;}
- case 265:
- #line 1128 "sql_yacc.yy"
- {
- Lex->backup_dir = yyvsp[0].lex_str.str;
- ;
- break;}
- case 266:
- #line 1133 "sql_yacc.yy"
- {
- Lex->sql_command = SQLCOM_BACKUP_TABLE;
- ;
- break;}
- case 267:
- #line 1137 "sql_yacc.yy"
- {
- Lex->backup_dir = yyvsp[0].lex_str.str;
- ;
- break;}
- case 268:
- #line 1144 "sql_yacc.yy"
- {
- Lex->sql_command = SQLCOM_REPAIR;
- Lex->check_opt.init();
- ;
- break;}
- case 270:
- #line 1152 "sql_yacc.yy"
- { Lex->check_opt.flags = T_MEDIUM; ;
- break;}
- case 271:
- #line 1153 "sql_yacc.yy"
- {;
- break;}
- case 272:
- #line 1154 "sql_yacc.yy"
- {;
- break;}
- case 273:
- #line 1157 "sql_yacc.yy"
- {;
- break;}
- case 274:
- #line 1158 "sql_yacc.yy"
- {;
- break;}
- case 275:
- #line 1161 "sql_yacc.yy"
- { Lex->check_opt.quick = 1; ;
- break;}
- case 276:
- #line 1162 "sql_yacc.yy"
- { Lex->check_opt.flags|= T_FAST; ;
- break;}
- case 277:
- #line 1163 "sql_yacc.yy"
- { Lex->check_opt.flags|= T_MEDIUM; ;
- break;}
- case 278:
- #line 1164 "sql_yacc.yy"
- { Lex->check_opt.flags|= T_EXTEND; ;
- break;}
- case 279:
- #line 1165 "sql_yacc.yy"
- { Lex->check_opt.flags|= T_CHECK_ONLY_CHANGED; ;
- break;}
- case 280:
- #line 1169 "sql_yacc.yy"
- {
- Lex->sql_command = SQLCOM_ANALYZE;
- Lex->check_opt.init();
- ;
- break;}
- case 282:
- #line 1177 "sql_yacc.yy"
- {
- Lex->sql_command = SQLCOM_CHECK;
- Lex->check_opt.init();
- ;
- break;}
- case 284:
- #line 1185 "sql_yacc.yy"
- {
- Lex->sql_command = SQLCOM_OPTIMIZE;
- Lex->check_opt.init();
- ;
- break;}
- case 286:
- #line 1193 "sql_yacc.yy"
- {
- Lex->sql_command=SQLCOM_RENAME_TABLE;
- ;
- break;}
- case 290:
- #line 1204 "sql_yacc.yy"
- { if (!add_table_to_list(yyvsp[-2].table,NULL,1,TL_IGNORE) ||
- !add_table_to_list(yyvsp[0].table,NULL,1,TL_IGNORE))
- YYABORT;
- ;
- break;}
- case 291:
- #line 1216 "sql_yacc.yy"
- {
- LEX *lex=Lex;
- lex->sql_command= SQLCOM_SELECT;
- mysql_init_select(lex);
- ;
- break;}
- case 302:
- #line 1242 "sql_yacc.yy"
- { Lex->options|= SELECT_STRAIGHT_JOIN; ;
- break;}
- case 303:
- #line 1243 "sql_yacc.yy"
- { Lex->options|= SELECT_HIGH_PRIORITY; ;
- break;}
- case 304:
- #line 1244 "sql_yacc.yy"
- { Lex->options|= SELECT_DISTINCT; ;
- break;}
- case 305:
- #line 1245 "sql_yacc.yy"
- { Lex->options|= SELECT_SMALL_RESULT; ;
- break;}
- case 306:
- #line 1246 "sql_yacc.yy"
- { Lex->options|= SELECT_BIG_RESULT; ;
- break;}
- case 307:
- #line 1247 "sql_yacc.yy"
- { Lex->options|= OPTION_BUFFER_RESULT; ;
- break;}
- case 308:
- #line 1248 "sql_yacc.yy"
- {;
- break;}
- case 311:
- #line 1254 "sql_yacc.yy"
- {
- if (add_item_to_list(new Item_field(NULL,NULL,"*")))
- YYABORT;
- ;
- break;}
- case 312:
- #line 1262 "sql_yacc.yy"
- {
- if (add_item_to_list(yyvsp[-2].item))
- YYABORT;
- if (yyvsp[0].lex_str.str)
- yyvsp[-2].item->set_name(yyvsp[0].lex_str.str);
- else if (!yyvsp[-2].item->name)
- yyvsp[-2].item->set_name(yyvsp[-3].simple_string,(uint) (yyvsp[-1].simple_string - yyvsp[-3].simple_string));
- ;
- break;}
- case 313:
- #line 1272 "sql_yacc.yy"
- { yyval.simple_string=(char*) Lex->tok_start; ;
- break;}
- case 314:
- #line 1275 "sql_yacc.yy"
- { yyval.simple_string=(char*) Lex->tok_end; ;
- break;}
- case 315:
- #line 1278 "sql_yacc.yy"
- { yyval.item=yyvsp[0].item; ;
- break;}
- case 316:
- #line 1279 "sql_yacc.yy"
- { yyval.item=yyvsp[0].item; ;
- break;}
- case 317:
- #line 1282 "sql_yacc.yy"
- { yyval.lex_str.str=0;;
- break;}
- case 318:
- #line 1283 "sql_yacc.yy"
- { yyval.lex_str=yyvsp[0].lex_str; ;
- break;}
- case 319:
- #line 1284 "sql_yacc.yy"
- { yyval.lex_str=yyvsp[0].lex_str; ;
- break;}
- case 320:
- #line 1285 "sql_yacc.yy"
- { yyval.lex_str=yyvsp[0].lex_str; ;
- break;}
- case 321:
- #line 1286 "sql_yacc.yy"
- { yyval.lex_str=yyvsp[0].lex_str; ;
- break;}
- case 322:
- #line 1289 "sql_yacc.yy"
- {;
- break;}
- case 323:
- #line 1290 "sql_yacc.yy"
- {;
- break;}
- case 324:
- #line 1293 "sql_yacc.yy"
- {yyval.item = yyvsp[0].item; ;
- break;}
- case 325:
- #line 1294 "sql_yacc.yy"
- {yyval.item = yyvsp[0].item; ;
- break;}
- case 326:
- #line 1299 "sql_yacc.yy"
- { yyval.item= new Item_func_in(yyvsp[-4].item,*yyvsp[-1].item_list); ;
- break;}
- case 327:
- #line 1301 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_in(yyvsp[-5].item,*yyvsp[-1].item_list)); ;
- break;}
- case 328:
- #line 1303 "sql_yacc.yy"
- { yyval.item= new Item_func_between(yyvsp[-4].item,yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 329:
- #line 1305 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_between(yyvsp[-5].item,yyvsp[-2].item,yyvsp[0].item)); ;
- break;}
- case 330:
- #line 1306 "sql_yacc.yy"
- { yyval.item= or_or_concat(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 331:
- #line 1307 "sql_yacc.yy"
- { yyval.item= new Item_cond_or(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 332:
- #line 1308 "sql_yacc.yy"
- { yyval.item= new Item_cond_and(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 333:
- #line 1309 "sql_yacc.yy"
- { yyval.item= new Item_func_like(yyvsp[-3].item,yyvsp[-1].item,yyvsp[0].simple_string); ;
- break;}
- case 334:
- #line 1310 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_like(yyvsp[-4].item,yyvsp[-1].item,yyvsp[0].simple_string));;
- break;}
- case 335:
- #line 1311 "sql_yacc.yy"
- { yyval.item= new Item_func_regex(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 336:
- #line 1312 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_regex(yyvsp[-3].item,yyvsp[0].item)); ;
- break;}
- case 337:
- #line 1313 "sql_yacc.yy"
- { yyval.item= new Item_func_isnull(yyvsp[-2].item); ;
- break;}
- case 338:
- #line 1314 "sql_yacc.yy"
- { yyval.item= new Item_func_isnotnull(yyvsp[-3].item); ;
- break;}
- case 339:
- #line 1315 "sql_yacc.yy"
- { yyval.item= new Item_func_eq(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 340:
- #line 1316 "sql_yacc.yy"
- { yyval.item= new Item_func_equal(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 341:
- #line 1317 "sql_yacc.yy"
- { yyval.item= new Item_func_ge(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 342:
- #line 1318 "sql_yacc.yy"
- { yyval.item= new Item_func_gt(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 343:
- #line 1319 "sql_yacc.yy"
- { yyval.item= new Item_func_le(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 344:
- #line 1320 "sql_yacc.yy"
- { yyval.item= new Item_func_lt(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 345:
- #line 1321 "sql_yacc.yy"
- { yyval.item= new Item_func_ne(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 346:
- #line 1322 "sql_yacc.yy"
- { yyval.item= new Item_func_shift_left(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 347:
- #line 1323 "sql_yacc.yy"
- { yyval.item= new Item_func_shift_right(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 348:
- #line 1324 "sql_yacc.yy"
- { yyval.item= new Item_func_plus(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 349:
- #line 1325 "sql_yacc.yy"
- { yyval.item= new Item_func_minus(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 350:
- #line 1326 "sql_yacc.yy"
- { yyval.item= new Item_func_mul(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 351:
- #line 1327 "sql_yacc.yy"
- { yyval.item= new Item_func_div(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 352:
- #line 1328 "sql_yacc.yy"
- { yyval.item= new Item_func_bit_or(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 353:
- #line 1329 "sql_yacc.yy"
- { yyval.item= new Item_func_bit_and(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 354:
- #line 1330 "sql_yacc.yy"
- { yyval.item= new Item_func_mod(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 355:
- #line 1332 "sql_yacc.yy"
- { yyval.item= new Item_date_add_interval(yyvsp[-4].item,yyvsp[-1].item,yyvsp[0].interval,0); ;
- break;}
- case 356:
- #line 1334 "sql_yacc.yy"
- { yyval.item= new Item_date_add_interval(yyvsp[-4].item,yyvsp[-1].item,yyvsp[0].interval,1); ;
- break;}
- case 357:
- #line 1339 "sql_yacc.yy"
- { yyval.item= new Item_func_between(yyvsp[-4].item,yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 358:
- #line 1341 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_between(yyvsp[-5].item,yyvsp[-2].item,yyvsp[0].item)); ;
- break;}
- case 359:
- #line 1342 "sql_yacc.yy"
- { yyval.item= or_or_concat(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 360:
- #line 1343 "sql_yacc.yy"
- { yyval.item= new Item_cond_or(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 361:
- #line 1344 "sql_yacc.yy"
- { yyval.item= new Item_cond_and(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 362:
- #line 1345 "sql_yacc.yy"
- { yyval.item= new Item_func_like(yyvsp[-3].item,yyvsp[-1].item,yyvsp[0].simple_string); ;
- break;}
- case 363:
- #line 1346 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_like(yyvsp[-4].item,yyvsp[-1].item,yyvsp[0].simple_string)); ;
- break;}
- case 364:
- #line 1347 "sql_yacc.yy"
- { yyval.item= new Item_func_regex(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 365:
- #line 1348 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_regex(yyvsp[-3].item,yyvsp[0].item)); ;
- break;}
- case 366:
- #line 1349 "sql_yacc.yy"
- { yyval.item= new Item_func_isnull(yyvsp[-2].item); ;
- break;}
- case 367:
- #line 1350 "sql_yacc.yy"
- { yyval.item= new Item_func_isnotnull(yyvsp[-3].item); ;
- break;}
- case 368:
- #line 1351 "sql_yacc.yy"
- { yyval.item= new Item_func_eq(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 369:
- #line 1352 "sql_yacc.yy"
- { yyval.item= new Item_func_equal(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 370:
- #line 1353 "sql_yacc.yy"
- { yyval.item= new Item_func_ge(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 371:
- #line 1354 "sql_yacc.yy"
- { yyval.item= new Item_func_gt(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 372:
- #line 1355 "sql_yacc.yy"
- { yyval.item= new Item_func_le(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 373:
- #line 1356 "sql_yacc.yy"
- { yyval.item= new Item_func_lt(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 374:
- #line 1357 "sql_yacc.yy"
- { yyval.item= new Item_func_ne(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 375:
- #line 1358 "sql_yacc.yy"
- { yyval.item= new Item_func_shift_left(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 376:
- #line 1359 "sql_yacc.yy"
- { yyval.item= new Item_func_shift_right(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 377:
- #line 1360 "sql_yacc.yy"
- { yyval.item= new Item_func_plus(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 378:
- #line 1361 "sql_yacc.yy"
- { yyval.item= new Item_func_minus(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 379:
- #line 1362 "sql_yacc.yy"
- { yyval.item= new Item_func_mul(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 380:
- #line 1363 "sql_yacc.yy"
- { yyval.item= new Item_func_div(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 381:
- #line 1364 "sql_yacc.yy"
- { yyval.item= new Item_func_bit_or(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 382:
- #line 1365 "sql_yacc.yy"
- { yyval.item= new Item_func_bit_and(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 383:
- #line 1366 "sql_yacc.yy"
- { yyval.item= new Item_func_mod(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 384:
- #line 1368 "sql_yacc.yy"
- { yyval.item= new Item_date_add_interval(yyvsp[-4].item,yyvsp[-1].item,yyvsp[0].interval,0); ;
- break;}
- case 385:
- #line 1370 "sql_yacc.yy"
- { yyval.item= new Item_date_add_interval(yyvsp[-4].item,yyvsp[-1].item,yyvsp[0].interval,1); ;
- break;}
- case 387:
- #line 1376 "sql_yacc.yy"
- { yyval.item= new Item_func_in(yyvsp[-4].item,*yyvsp[-1].item_list); ;
- break;}
- case 388:
- #line 1378 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_in(yyvsp[-5].item,*yyvsp[-1].item_list)); ;
- break;}
- case 389:
- #line 1380 "sql_yacc.yy"
- { yyval.item= new Item_func_between(yyvsp[-4].item,yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 390:
- #line 1382 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_between(yyvsp[-5].item,yyvsp[-2].item,yyvsp[0].item)); ;
- break;}
- case 391:
- #line 1383 "sql_yacc.yy"
- { yyval.item= or_or_concat(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 392:
- #line 1384 "sql_yacc.yy"
- { yyval.item= new Item_cond_or(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 393:
- #line 1385 "sql_yacc.yy"
- { yyval.item= new Item_func_like(yyvsp[-3].item,yyvsp[-1].item,yyvsp[0].simple_string); ;
- break;}
- case 394:
- #line 1386 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_like(yyvsp[-4].item,yyvsp[-1].item,yyvsp[0].simple_string)); ;
- break;}
- case 395:
- #line 1387 "sql_yacc.yy"
- { yyval.item= new Item_func_regex(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 396:
- #line 1388 "sql_yacc.yy"
- { yyval.item= new Item_func_not(new Item_func_regex(yyvsp[-3].item,yyvsp[0].item)); ;
- break;}
- case 397:
- #line 1389 "sql_yacc.yy"
- { yyval.item= new Item_func_isnull(yyvsp[-2].item); ;
- break;}
- case 398:
- #line 1390 "sql_yacc.yy"
- { yyval.item= new Item_func_isnotnull(yyvsp[-3].item); ;
- break;}
- case 399:
- #line 1391 "sql_yacc.yy"
- { yyval.item= new Item_func_eq(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 400:
- #line 1392 "sql_yacc.yy"
- { yyval.item= new Item_func_equal(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 401:
- #line 1393 "sql_yacc.yy"
- { yyval.item= new Item_func_ge(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 402:
- #line 1394 "sql_yacc.yy"
- { yyval.item= new Item_func_gt(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 403:
- #line 1395 "sql_yacc.yy"
- { yyval.item= new Item_func_le(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 404:
- #line 1396 "sql_yacc.yy"
- { yyval.item= new Item_func_lt(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 405:
- #line 1397 "sql_yacc.yy"
- { yyval.item= new Item_func_ne(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 406:
- #line 1398 "sql_yacc.yy"
- { yyval.item= new Item_func_shift_left(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 407:
- #line 1399 "sql_yacc.yy"
- { yyval.item= new Item_func_shift_right(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 408:
- #line 1400 "sql_yacc.yy"
- { yyval.item= new Item_func_plus(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 409:
- #line 1401 "sql_yacc.yy"
- { yyval.item= new Item_func_minus(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 410:
- #line 1402 "sql_yacc.yy"
- { yyval.item= new Item_func_mul(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 411:
- #line 1403 "sql_yacc.yy"
- { yyval.item= new Item_func_div(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 412:
- #line 1404 "sql_yacc.yy"
- { yyval.item= new Item_func_bit_or(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 413:
- #line 1405 "sql_yacc.yy"
- { yyval.item= new Item_func_bit_and(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 414:
- #line 1406 "sql_yacc.yy"
- { yyval.item= new Item_func_mod(yyvsp[-2].item,yyvsp[0].item); ;
- break;}
- case 415:
- #line 1408 "sql_yacc.yy"
- { yyval.item= new Item_date_add_interval(yyvsp[-4].item,yyvsp[-1].item,yyvsp[0].interval,0); ;
- break;}
- case 416:
- #line 1410 "sql_yacc.yy"
- { yyval.item= new Item_date_add_interval(yyvsp[-4].item,yyvsp[-1].item,yyvsp[0].interval,1); ;
- break;}
- case 420:
- #line 1416 "sql_yacc.yy"
- { yyval.item= new Item_func_set_user_var(yyvsp[-2].lex_str,yyvsp[0].item); ;
- break;}
- case 421:
- #line 1417 "sql_yacc.yy"
- { yyval.item= new Item_func_get_user_var(yyvsp[0].lex_str); ;
- break;}
- case 422:
- #line 1418 "sql_yacc.yy"
- { if (!(yyval.item= get_system_var(yyvsp[0].lex_str))) YYABORT; ;
- break;}
- case 424:
- #line 1420 "sql_yacc.yy"
- { yyval.item= new Item_func_neg(yyvsp[0].item); ;
- break;}
- case 425:
- #line 1421 "sql_yacc.yy"
- { yyval.item= new Item_func_bit_neg(yyvsp[0].item); ;
- break;}
- case 426:
- #line 1422 "sql_yacc.yy"
- { yyval.item= new Item_func_not(yyvsp[0].item); ;
- break;}
- case 427:
- #line 1423 "sql_yacc.yy"
- { yyval.item= new Item_func_not(yyvsp[0].item); ;
- break;}
- case 428:
- #line 1424 "sql_yacc.yy"
- { yyval.item= yyvsp[-1].item; ;
- break;}
- case 429:
- #line 1425 "sql_yacc.yy"
- { yyval.item= yyvsp[-1].item; ;
- break;}
- case 430:
- #line 1427 "sql_yacc.yy"
- { Lex->ftfunc_list.push_back(
- (Item_func_match *)(yyval.item=new Item_func_match(*yyvsp[-5].item_list,yyvsp[-1].item))); ;
- break;}
- case 431:
- #line 1430 "sql_yacc.yy"
- { Lex->ftfunc_list.push_back(
- (Item_func_match *)(yyval.item=new Item_func_match(*yyvsp[-4].item_list,yyvsp[-1].item))); ;
- break;}
- case 432:
- #line 1432 "sql_yacc.yy"
- { yyval.item= new Item_func_binary(yyvsp[0].item); ;
- break;}
- case 433:
- #line 1434 "sql_yacc.yy"
- { yyval.item= new Item_func_case(* yyvsp[-2].item_list, yyvsp[-4].item, yyvsp[-1].item ) ;
- break;}
- case 434:
- #line 1436 "sql_yacc.yy"
- { yyval.item= ((Item*(*)(void))(yyvsp[-2].symbol.symbol->create_func))();;
- break;}
- case 435:
- #line 1438 "sql_yacc.yy"
- { yyval.item= ((Item*(*)(Item*))(yyvsp[-3].symbol.symbol->create_func))(yyvsp[-1].item);;
- break;}
- case 436:
- #line 1440 "sql_yacc.yy"
- { yyval.item= ((Item*(*)(Item*,Item*))(yyvsp[-5].symbol.symbol->create_func))(yyvsp[-3].item,yyvsp[-1].item);;
- break;}
- case 437:
- #line 1442 "sql_yacc.yy"
- { yyval.item= ((Item*(*)(Item*,Item*,Item*))(yyvsp[-7].symbol.symbol->create_func))(yyvsp[-5].item,yyvsp[-3].item,yyvsp[-1].item);;
- break;}
- case 438:
- #line 1444 "sql_yacc.yy"
- { yyval.item= new Item_func_atan(yyvsp[-1].item); ;
- break;}
- case 439:
- #line 1446 "sql_yacc.yy"
- { yyval.item= new Item_func_atan(yyvsp[-3].item,yyvsp[-1].item); ;
- break;}
- case 440:
- #line 1448 "sql_yacc.yy"
- { yyval.item= new Item_func_char(*yyvsp[-1].item_list); ;
- break;}
- case 441:
- #line 1450 "sql_yacc.yy"
- { yyval.item= new Item_func_coalesce(* yyvsp[-1].item_list); ;
- break;}
- case 442:
- #line 1452 "sql_yacc.yy"
- { yyval.item= new Item_func_concat(* yyvsp[-1].item_list); ;
- break;}
- case 443:
- #line 1454 "sql_yacc.yy"
- { yyval.item= new Item_func_concat_ws(yyvsp[-3].item, *yyvsp[-1].item_list); ;
- break;}
- case 444:
- #line 1456 "sql_yacc.yy"
- { yyval.item= new Item_func_curdate(); ;
- break;}
- case 445:
- #line 1458 "sql_yacc.yy"
- { yyval.item= new Item_func_curtime(); ;
- break;}
- case 446:
- #line 1460 "sql_yacc.yy"
- { yyval.item= new Item_func_curtime(yyvsp[-1].item); ;
- break;}
- case 447:
- #line 1462 "sql_yacc.yy"
- { yyval.item= new Item_date_add_interval(yyvsp[-5].item,yyvsp[-2].item,yyvsp[-1].interval,0); ;
- break;}
- case 448:
- #line 1464 "sql_yacc.yy"
- { yyval.item= new Item_date_add_interval(yyvsp[-5].item,yyvsp[-2].item,yyvsp[-1].interval,1); ;
- break;}
- case 449:
- #line 1466 "sql_yacc.yy"
- { yyval.item= new Item_func_database(); ;
- break;}
- case 450:
- #line 1468 "sql_yacc.yy"
- { yyval.item= new Item_func_elt(yyvsp[-3].item, *yyvsp[-1].item_list); ;
- break;}
- case 451:
- #line 1470 "sql_yacc.yy"
- { yyval.item= new Item_func_make_set(yyvsp[-3].item, *yyvsp[-1].item_list); ;
- break;}
- case 452:
- #line 1471 "sql_yacc.yy"
- { yyval.item= new Item_func_encrypt(yyvsp[-1].item); ;
- break;}
- case 453:
- #line 1472 "sql_yacc.yy"
- { yyval.item= new Item_func_encrypt(yyvsp[-3].item,yyvsp[-1].item); ;
- break;}
- case 454:
- #line 1474 "sql_yacc.yy"
- { yyval.item= new Item_func_decode(yyvsp[-3].item,yyvsp[-1].lex_str.str); ;
- break;}
- case 455:
- #line 1476 "sql_yacc.yy"
- { yyval.item= new Item_func_encode(yyvsp[-3].item,yyvsp[-1].lex_str.str); ;
- break;}
- case 456:
- #line 1478 "sql_yacc.yy"
- { yyval.item= new Item_func_export_set(yyvsp[-5].item, yyvsp[-3].item, yyvsp[-1].item); ;
- break;}
- case 457:
- #line 1480 "sql_yacc.yy"
- { yyval.item= new Item_func_export_set(yyvsp[-7].item, yyvsp[-5].item, yyvsp[-3].item, yyvsp[-1].item); ;
- break;}
- case 458:
- #line 1482 "sql_yacc.yy"
- { yyval.item= new Item_func_export_set(yyvsp[-9].item, yyvsp[-7].item, yyvsp[-5].item, yyvsp[-3].item, yyvsp[-1].item); ;