Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
1957f240
Commit
1957f240
authored
Apr 14, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gram.c.nd *.h files.
parent
27c490be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
435 additions
and
436 deletions
+435
-436
src/backend/parser/gram.c
src/backend/parser/gram.c
+435
-436
No files found.
src/backend/parser/gram.c
View file @
1957f240
...
...
@@ -216,7 +216,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.
6 1998/04/08 06:39:01 thomas
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.
7 1998/04/14 03:28:50 momjian
Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -815,46 +815,46 @@ static const short yyrline[] = { 0,
2434
,
2435
,
2438
,
2439
,
2442
,
2443
,
2444
,
2445
,
2448
,
2449
,
2452
,
2453
,
2456
,
2464
,
2472
,
2482
,
2483
,
2484
,
2485
,
2486
,
2487
,
2497
,
2498
,
2501
,
2503
,
2505
,
2509
,
2510
,
2513
,
2514
,
2517
,
2525
,
2533
,
2543
,
254
8
,
2560
,
2565
,
2566
,
2569
,
2571
,
257
3
,
2577
,
2583
,
2589
,
2597
,
2598
,
2600
,
2602
,
2604
,
2606
,
260
8
,
2610
,
2614
,
2615
,
2618
,
2619
,
2620
,
2623
,
2624
,
2627
,
263
5
,
2643
,
2653
,
2654
,
2657
,
2664
,
2672
,
2674
,
2676
,
2680
,
268
2
,
2684
,
2699
,
2721
,
2722
,
2729
,
2730
,
2731
,
2734
,
2742
,
274
3
,
2752
,
2758
,
2763
,
2769
,
2777
,
2779
,
2781
,
2783
,
2787
,
279
8
,
2804
,
2811
,
2816
,
2822
,
2830
,
2836
,
2849
,
2875
,
2883
,
290
3
,
2904
,
2905
,
2906
,
2909
,
2910
,
2913
,
2914
,
2917
,
2918
,
292
1
,
2927
,
2934
,
2940
,
2948
,
2949
,
2950
,
2951
,
2952
,
2953
,
295
6
,
2957
,
2960
,
2961
,
2962
,
2963
,
2964
,
2965
,
2966
,
2967
,
297
7
,
2979
,
2991
,
3001
,
3011
,
3024
,
3034
,
3044
,
3054
,
3064
,
307
4
,
3084
,
3094
,
3107
,
3117
,
3127
,
3137
,
3147
,
3157
,
3167
,
317
7
,
3190
,
3200
,
3210
,
3220
,
3230
,
3240
,
3250
,
3260
,
3264
,
326
8
,
3272
,
3276
,
3280
,
3284
,
3288
,
3294
,
3300
,
3304
,
3318
,
332
3
,
3325
,
3327
,
3335
,
3337
,
3339
,
3341
,
3343
,
3345
,
3347
,
334
9
,
3351
,
3353
,
3355
,
3357
,
3373
,
3389
,
3391
,
3393
,
3395
,
339
7
,
3399
,
3401
,
3413
,
3420
,
3427
,
3442
,
3457
,
3479
,
3494
,
351
6
,
3523
,
3533
,
3540
,
3547
,
3555
,
3562
,
3569
,
3576
,
3583
,
358
5
,
3587
,
3589
,
3596
,
3606
,
3616
,
3626
,
3636
,
3642
,
3648
,
364
8
,
3662
,
3662
,
3676
,
3686
,
3696
,
3706
,
3716
,
3726
,
3736
,
374
6
,
3756
,
3766
,
3776
,
3786
,
3796
,
3806
,
3816
,
3826
,
3836
,
384
6
,
3856
,
3866
,
3876
,
3886
,
3896
,
3906
,
3916
,
3918
,
3920
,
39
30
,
3935
,
3937
,
3945
,
3947
,
3949
,
3951
,
3953
,
3955
,
3957
,
395
9
,
3961
,
3977
,
3993
,
3995
,
3997
,
3999
,
4001
,
4008
,
4015
,
40
30
,
4045
,
4067
,
4082
,
4104
,
4111
,
4118
,
4126
,
4133
,
4140
,
414
7
,
4156
,
4163
,
4170
,
4174
,
4176
,
4178
,
4182
,
4189
,
4197
,
420
1
,
4203
,
4207
,
4212
,
4214
,
4216
,
4218
,
4220
,
4222
,
4224
,
422
6
,
4242
,
4258
,
4260
,
4262
,
4264
,
4266
,
4274
,
4281
,
4288
,
429
5
,
4303
,
4310
,
4317
,
4324
,
4333
,
4337
,
4341
,
4343
,
4352
,
435
4
,
4358
,
4360
,
4362
,
4366
,
4372
,
4376
,
4378
,
4384
,
4390
,
439
4
,
4396
,
4402
,
4410
,
4420
,
4422
,
4424
,
4435
,
4437
,
4439
,
445
4
,
4461
,
4468
,
4487
,
4489
,
4494
,
4501
,
4508
,
4520
,
4534
,
453
5
,
4538
,
4543
,
4555
,
4556
,
4557
,
4558
,
4559
,
4565
,
4566
,
456
8
,
4569
,
4574
,
4581
,
4588
,
4595
,
4603
,
4605
,
4615
,
4627
,
463
4
,
4635
,
4638
,
4639
,
4640
,
4647
,
4649
,
4651
,
4662
,
4663
,
466
4
,
4665
,
4666
,
4667
,
4668
,
4669
,
4670
,
4671
,
4672
,
4673
,
467
4
,
4675
,
4676
,
4677
,
4678
,
4679
,
4680
,
4681
,
4682
,
4683
,
468
4
,
4685
,
4686
,
4687
,
4688
,
4689
,
4690
,
4691
,
4692
,
4693
,
469
4
,
4707
,
4708
,
4709
,
4710
,
4711
,
4712
,
4713
,
4714
,
4715
,
471
6
,
4717
,
4718
,
4719
,
4720
,
4721
,
4724
,
4731
2517
,
2525
,
2533
,
2543
,
254
7
,
2559
,
2564
,
2565
,
2568
,
2570
,
257
2
,
2576
,
2582
,
2588
,
2596
,
2597
,
2599
,
2601
,
2603
,
2605
,
260
7
,
2609
,
2613
,
2614
,
2617
,
2618
,
2619
,
2622
,
2623
,
2626
,
263
4
,
2642
,
2652
,
2653
,
2656
,
2663
,
2671
,
2673
,
2675
,
2679
,
268
1
,
2683
,
2698
,
2720
,
2721
,
2728
,
2729
,
2730
,
2733
,
2741
,
274
2
,
2751
,
2757
,
2762
,
2768
,
2776
,
2778
,
2780
,
2782
,
2786
,
279
7
,
2803
,
2810
,
2815
,
2821
,
2829
,
2835
,
2848
,
2874
,
2882
,
290
2
,
2903
,
2904
,
2905
,
2908
,
2909
,
2912
,
2913
,
2916
,
2917
,
292
0
,
2926
,
2933
,
2939
,
2947
,
2948
,
2949
,
2950
,
2951
,
2952
,
295
5
,
2956
,
2959
,
2960
,
2961
,
2962
,
2963
,
2964
,
2965
,
2966
,
297
6
,
2978
,
2990
,
3000
,
3010
,
3023
,
3033
,
3043
,
3053
,
3063
,
307
3
,
3083
,
3093
,
3106
,
3116
,
3126
,
3136
,
3146
,
3156
,
3166
,
317
6
,
3189
,
3199
,
3209
,
3219
,
3229
,
3239
,
3249
,
3259
,
3263
,
326
7
,
3271
,
3275
,
3279
,
3283
,
3287
,
3293
,
3299
,
3303
,
3317
,
332
2
,
3324
,
3326
,
3334
,
3336
,
3338
,
3340
,
3342
,
3344
,
3346
,
334
8
,
3350
,
3352
,
3354
,
3356
,
3372
,
3388
,
3390
,
3392
,
3394
,
339
6
,
3398
,
3400
,
3412
,
3419
,
3426
,
3441
,
3456
,
3478
,
3493
,
351
5
,
3522
,
3532
,
3539
,
3546
,
3554
,
3561
,
3568
,
3575
,
3582
,
358
4
,
3586
,
3588
,
3595
,
3605
,
3615
,
3625
,
3635
,
3641
,
3647
,
364
7
,
3661
,
3661
,
3675
,
3685
,
3695
,
3705
,
3715
,
3725
,
3735
,
374
5
,
3755
,
3765
,
3775
,
3785
,
3795
,
3805
,
3815
,
3825
,
3835
,
384
5
,
3855
,
3865
,
3875
,
3885
,
3895
,
3905
,
3915
,
3917
,
3919
,
39
29
,
3934
,
3936
,
3944
,
3946
,
3948
,
3950
,
3952
,
3954
,
3956
,
395
8
,
3960
,
3976
,
3992
,
3994
,
3996
,
3998
,
4000
,
4007
,
4014
,
40
29
,
4044
,
4066
,
4081
,
4103
,
4110
,
4117
,
4125
,
4132
,
4139
,
414
6
,
4155
,
4162
,
4169
,
4173
,
4175
,
4177
,
4181
,
4188
,
4196
,
420
0
,
4202
,
4206
,
4211
,
4213
,
4215
,
4217
,
4219
,
4221
,
4223
,
422
5
,
4241
,
4257
,
4259
,
4261
,
4263
,
4265
,
4273
,
4280
,
4287
,
429
4
,
4302
,
4309
,
4316
,
4323
,
4332
,
4336
,
4340
,
4342
,
4351
,
435
3
,
4357
,
4359
,
4361
,
4365
,
4371
,
4375
,
4377
,
4383
,
4389
,
439
3
,
4395
,
4401
,
4409
,
4419
,
4421
,
4423
,
4434
,
4436
,
4438
,
445
3
,
4460
,
4467
,
4486
,
4488
,
4493
,
4500
,
4507
,
4519
,
4533
,
453
4
,
4537
,
4542
,
4554
,
4555
,
4556
,
4557
,
4558
,
4564
,
4565
,
456
7
,
4568
,
4573
,
4580
,
4587
,
4594
,
4602
,
4604
,
4614
,
4626
,
463
3
,
4634
,
4637
,
4638
,
4639
,
4646
,
4648
,
4650
,
4661
,
4662
,
466
3
,
4664
,
4665
,
4666
,
4667
,
4668
,
4669
,
4670
,
4671
,
4672
,
467
3
,
4674
,
4675
,
4676
,
4677
,
4678
,
4679
,
4680
,
4681
,
4682
,
468
3
,
4684
,
4685
,
4686
,
4687
,
4688
,
4689
,
4690
,
4691
,
4692
,
469
3
,
4706
,
4707
,
4708
,
4709
,
4710
,
4711
,
4712
,
4713
,
4714
,
471
5
,
4716
,
4717
,
4718
,
4719
,
4720
,
4723
,
4730
};
#endif
...
...
@@ -3866,7 +3866,7 @@ static const short yycheck[] = { 3,
-
1
,
-
1
,
172
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
178
};
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
#line 3 "/usr/
lib
/bison.simple"
#line 3 "/usr/
share/misc
/bison.simple"
/* Skeleton output parser for bison,
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
...
...
@@ -4059,7 +4059,7 @@ __yy_memcpy (char *to, char *from, int count)
#endif
#endif
#line 196 "/usr/
lib
/bison.simple"
#line 196 "/usr/
share/misc
/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 *.
...
...
@@ -6776,43 +6776,42 @@ case 463:
case
464
:
#line 2544 "gram.y"
{
/***S*H***/
/* elog(NOTICE, "HAVING not yet supported; ignore clause");*/
yyval
.
node
=
yyvsp
[
0
].
node
;
;
break
;}
case
465
:
#line 254
8
"gram.y"
#line 254
7
"gram.y"
{
yyval
.
node
=
NULL
;
;
break
;}
case
466
:
#line 256
1
"gram.y"
#line 256
0
"gram.y"
{
yyval
.
list
=
NIL
;
elog
(
ERROR
,
"JOIN not yet implemented"
);
;
break
;}
case
467
:
#line 256
5
"gram.y"
#line 256
4
"gram.y"
{
yyval
.
list
=
yyvsp
[
0
].
list
;
;
break
;}
case
468
:
#line 256
6
"gram.y"
#line 256
5
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
469
:
#line 25
70
"gram.y"
#line 25
69
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
yyvsp
[
0
].
range
);
;
break
;}
case
470
:
#line 257
2
"gram.y"
#line 257
1
"gram.y"
{
elog
(
ERROR
,
"CROSS JOIN not yet implemented"
);
;
break
;}
case
471
:
#line 257
4
"gram.y"
#line 257
3
"gram.y"
{
yyval
.
list
=
lcons
(
yyvsp
[
0
].
range
,
NIL
);
;
break
;}
case
472
:
#line 257
8
"gram.y"
#line 257
7
"gram.y"
{
yyval
.
range
=
makeNode
(
RangeVar
);
yyval
.
range
->
relExpr
=
yyvsp
[
-
2
].
relexp
;
...
...
@@ -6820,7 +6819,7 @@ case 472:
;
break
;}
case
473
:
#line 258
4
"gram.y"
#line 258
3
"gram.y"
{
yyval
.
range
=
makeNode
(
RangeVar
);
yyval
.
range
->
relExpr
=
yyvsp
[
-
1
].
relexp
;
...
...
@@ -6828,7 +6827,7 @@ case 473:
;
break
;}
case
474
:
#line 25
90
"gram.y"
#line 25
89
"gram.y"
{
yyval
.
range
=
makeNode
(
RangeVar
);
yyval
.
range
->
relExpr
=
yyvsp
[
0
].
relexp
;
...
...
@@ -6836,67 +6835,67 @@ case 474:
;
break
;}
case
475
:
#line 259
7
"gram.y"
#line 259
6
"gram.y"
{
yyval
.
str
=
NULL
;
;
break
;}
case
476
:
#line 259
9
"gram.y"
#line 259
8
"gram.y"
{
elog
(
ERROR
,
"FULL OUTER JOIN not yet implemented"
);
;
break
;}
case
477
:
#line 260
1
"gram.y"
#line 260
0
"gram.y"
{
elog
(
ERROR
,
"LEFT OUTER JOIN not yet implemented"
);
;
break
;}
case
478
:
#line 260
3
"gram.y"
#line 260
2
"gram.y"
{
elog
(
ERROR
,
"RIGHT OUTER JOIN not yet implemented"
);
;
break
;}
case
479
:
#line 260
5
"gram.y"
#line 260
4
"gram.y"
{
elog
(
ERROR
,
"OUTER JOIN not yet implemented"
);
;
break
;}
case
480
:
#line 260
7
"gram.y"
#line 260
6
"gram.y"
{
elog
(
ERROR
,
"INNER JOIN not yet implemented"
);
;
break
;}
case
481
:
#line 260
9
"gram.y"
#line 260
8
"gram.y"
{
elog
(
ERROR
,
"UNION JOIN not yet implemented"
);
;
break
;}
case
482
:
#line 261
1
"gram.y"
#line 261
0
"gram.y"
{
elog
(
ERROR
,
"INNER JOIN not yet implemented"
);
;
break
;}
case
483
:
#line 261
4
"gram.y"
#line 261
3
"gram.y"
{
yyval
.
str
=
NULL
;
;
break
;}
case
484
:
#line 261
5
"gram.y"
#line 261
4
"gram.y"
{
yyval
.
str
=
NULL
;
/* no qualifiers */
;
break
;}
case
485
:
#line 261
8
"gram.y"
#line 261
7
"gram.y"
{
yyval
.
str
=
NULL
;
;
break
;}
case
486
:
#line 261
9
"gram.y"
#line 261
8
"gram.y"
{
yyval
.
str
=
NULL
;
;
break
;}
case
487
:
#line 26
20
"gram.y"
#line 26
19
"gram.y"
{
yyval
.
str
=
NULL
;
/* no qualifiers */
;
break
;}
case
488
:
#line 262
3
"gram.y"
#line 262
2
"gram.y"
{
yyval
.
list
=
lcons
(
yyvsp
[
0
].
sortgroupby
,
NIL
);
;
break
;}
case
489
:
#line 262
4
"gram.y"
#line 262
3
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
yyvsp
[
0
].
sortgroupby
);
;
break
;}
case
490
:
#line 262
8
"gram.y"
#line 262
7
"gram.y"
{
yyval
.
sortgroupby
=
makeNode
(
SortGroupBy
);
yyval
.
sortgroupby
->
resno
=
0
;
...
...
@@ -6906,7 +6905,7 @@ case 490:
;
break
;}
case
491
:
#line 263
6
"gram.y"
#line 263
5
"gram.y"
{
yyval
.
sortgroupby
=
makeNode
(
SortGroupBy
);
yyval
.
sortgroupby
->
resno
=
0
;
...
...
@@ -6916,7 +6915,7 @@ case 491:
;
break
;}
case
492
:
#line 264
4
"gram.y"
#line 264
3
"gram.y"
{
yyval
.
sortgroupby
=
makeNode
(
SortGroupBy
);
yyval
.
sortgroupby
->
resno
=
yyvsp
[
0
].
ival
;
...
...
@@ -6926,15 +6925,15 @@ case 492:
;
break
;}
case
493
:
#line 265
3
"gram.y"
#line 265
2
"gram.y"
{
yyval
.
node
=
yyvsp
[
0
].
node
;
;
break
;}
case
494
:
#line 265
4
"gram.y"
#line 265
3
"gram.y"
{
yyval
.
node
=
NULL
;
/* no qualifiers */
;
break
;}
case
495
:
#line 265
8
"gram.y"
#line 265
7
"gram.y"
{
/* normal relations */
yyval
.
relexp
=
makeNode
(
RelExpr
);
...
...
@@ -6943,7 +6942,7 @@ case 495:
;
break
;}
case
496
:
#line 266
5
"gram.y"
#line 266
4
"gram.y"
{
/* inheritance query */
yyval
.
relexp
=
makeNode
(
RelExpr
);
...
...
@@ -6952,31 +6951,31 @@ case 496:
;
break
;}
case
497
:
#line 267
3
"gram.y"
#line 267
2
"gram.y"
{
yyval
.
list
=
lcons
(
makeInteger
(
-
1
),
yyvsp
[
0
].
list
);
;
break
;}
case
498
:
#line 267
5
"gram.y"
#line 267
4
"gram.y"
{
yyval
.
list
=
lcons
(
makeInteger
(
yyvsp
[
-
2
].
ival
),
yyvsp
[
0
].
list
);
;
break
;}
case
499
:
#line 267
7
"gram.y"
#line 267
6
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
500
:
#line 268
1
"gram.y"
#line 268
0
"gram.y"
{
yyval
.
list
=
lcons
(
makeInteger
(
-
1
),
yyvsp
[
0
].
list
);
;
break
;}
case
501
:
#line 268
3
"gram.y"
#line 268
2
"gram.y"
{
yyval
.
list
=
lcons
(
makeInteger
(
yyvsp
[
-
2
].
ival
),
yyvsp
[
0
].
list
);
;
break
;}
case
502
:
#line 268
5
"gram.y"
#line 268
4
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
503
:
#line 2
700
"gram.y"
#line 2
699
"gram.y"
{
yyval
.
typnam
=
yyvsp
[
-
1
].
typnam
;
yyval
.
typnam
->
arrayBounds
=
yyvsp
[
0
].
list
;
...
...
@@ -7000,14 +6999,14 @@ case 503:
;
break
;}
case
505
:
#line 272
3
"gram.y"
#line 272
2
"gram.y"
{
yyval
.
typnam
=
yyvsp
[
0
].
typnam
;
yyval
.
typnam
->
setof
=
TRUE
;
;
break
;}
case
509
:
#line 273
5
"gram.y"
#line 273
4
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
yyvsp
[
0
].
str
);
...
...
@@ -7015,15 +7014,15 @@ case 509:
;
break
;}
case
510
:
#line 274
2
"gram.y"
#line 274
1
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
511
:
#line 274
3
"gram.y"
#line 274
2
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
"type"
);
;
break
;}
case
512
:
#line 275
3
"gram.y"
#line 275
2
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
yyvsp
[
0
].
str
);
...
...
@@ -7031,14 +7030,14 @@ case 512:
;
break
;}
case
513
:
#line 275
9
"gram.y"
#line 275
8
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
"float"
);
;
break
;}
case
514
:
#line 276
4
"gram.y"
#line 276
3
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
"integer"
);
...
...
@@ -7046,7 +7045,7 @@ case 514:
;
break
;}
case
515
:
#line 27
70
"gram.y"
#line 27
69
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
"integer"
);
...
...
@@ -7054,23 +7053,23 @@ case 515:
;
break
;}
case
516
:
#line 277
8
"gram.y"
#line 277
7
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
"float8"
);
;
break
;}
case
517
:
#line 27
80
"gram.y"
#line 27
79
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
"float8"
);
;
break
;}
case
518
:
#line 278
2
"gram.y"
#line 278
1
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
"decimal"
);
;
break
;}
case
519
:
#line 278
4
"gram.y"
#line 278
3
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
"numeric"
);
;
break
;}
case
520
:
#line 278
8
"gram.y"
#line 278
7
"gram.y"
{
if
(
yyvsp
[
-
1
].
ival
<
1
)
elog
(
ERROR
,
"precision for FLOAT must be at least 1"
);
...
...
@@ -7083,13 +7082,13 @@ case 520:
;
break
;}
case
521
:
#line 279
9
"gram.y"
#line 279
8
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
"float8"
);
;
break
;}
case
522
:
#line 280
5
"gram.y"
#line 280
4
"gram.y"
{
if
(
yyvsp
[
-
3
].
ival
!=
9
)
elog
(
ERROR
,
"NUMERIC precision %d must be 9"
,
yyvsp
[
-
3
].
ival
);
...
...
@@ -7098,20 +7097,20 @@ case 522:
;
break
;}
case
523
:
#line 281
2
"gram.y"
#line 281
1
"gram.y"
{
if
(
yyvsp
[
-
1
].
ival
!=
9
)
elog
(
ERROR
,
"NUMERIC precision %d must be 9"
,
yyvsp
[
-
1
].
ival
);
;
break
;}
case
524
:
#line 281
7
"gram.y"
#line 281
6
"gram.y"
{
yyval
.
str
=
NULL
;
;
break
;}
case
525
:
#line 282
3
"gram.y"
#line 282
2
"gram.y"
{
if
(
yyvsp
[
-
3
].
ival
>
9
)
elog
(
ERROR
,
"DECIMAL precision %d exceeds implementation limit of 9"
,
yyvsp
[
-
3
].
ival
);
...
...
@@ -7121,7 +7120,7 @@ case 525:
;
break
;}
case
526
:
#line 283
1
"gram.y"
#line 283
0
"gram.y"
{
if
(
yyvsp
[
-
1
].
ival
>
9
)
elog
(
ERROR
,
"DECIMAL precision %d exceeds implementation limit of 9"
,
yyvsp
[
-
1
].
ival
);
...
...
@@ -7129,13 +7128,13 @@ case 526:
;
break
;}
case
527
:
#line 283
7
"gram.y"
#line 283
6
"gram.y"
{
yyval
.
str
=
NULL
;
;
break
;}
case
528
:
#line 28
50
"gram.y"
#line 28
49
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
if
(
!
strcasecmp
(
yyvsp
[
-
3
].
str
,
"char"
))
...
...
@@ -7163,7 +7162,7 @@ case 528:
;
break
;}
case
529
:
#line 287
6
"gram.y"
#line 287
5
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
yyvsp
[
0
].
str
);
...
...
@@ -7171,7 +7170,7 @@ case 529:
;
break
;}
case
530
:
#line 288
4
"gram.y"
#line 288
3
"gram.y"
{
char
*
type
,
*
c
;
if
((
yyvsp
[
-
1
].
str
==
NULL
)
||
(
strcasecmp
(
yyvsp
[
-
1
].
str
,
"sql_text"
)
==
0
))
{
...
...
@@ -7193,47 +7192,47 @@ case 530:
;
break
;}
case
531
:
#line 290
3
"gram.y"
#line 290
2
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
yyvsp
[
0
].
boolean
?
"varchar"
:
"char"
);
;
break
;}
case
532
:
#line 290
4
"gram.y"
#line 290
3
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
"varchar"
);
;
break
;}
case
533
:
#line 290
5
"gram.y"
#line 290
4
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
yyvsp
[
0
].
boolean
?
"varchar"
:
"char"
);
;
break
;}
case
534
:
#line 290
6
"gram.y"
#line 290
5
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
yyvsp
[
0
].
boolean
?
"varchar"
:
"char"
);
;
break
;}
case
535
:
#line 290
9
"gram.y"
#line 290
8
"gram.y"
{
yyval
.
boolean
=
TRUE
;
;
break
;}
case
536
:
#line 29
10
"gram.y"
#line 29
09
"gram.y"
{
yyval
.
boolean
=
FALSE
;
;
break
;}
case
537
:
#line 291
3
"gram.y"
#line 291
2
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
538
:
#line 291
4
"gram.y"
#line 291
3
"gram.y"
{
yyval
.
str
=
NULL
;
;
break
;}
case
539
:
#line 291
7
"gram.y"
#line 291
6
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
540
:
#line 291
8
"gram.y"
#line 291
7
"gram.y"
{
yyval
.
str
=
NULL
;
;
break
;}
case
541
:
#line 292
2
"gram.y"
#line 292
1
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
yyvsp
[
0
].
str
);
...
...
@@ -7241,7 +7240,7 @@ case 541:
;
break
;}
case
542
:
#line 292
8
"gram.y"
#line 292
7
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
"timestamp"
);
...
...
@@ -7250,7 +7249,7 @@ case 542:
;
break
;}
case
543
:
#line 293
5
"gram.y"
#line 293
4
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
"time"
);
...
...
@@ -7258,7 +7257,7 @@ case 543:
;
break
;}
case
544
:
#line 294
1
"gram.y"
#line 294
0
"gram.y"
{
yyval
.
typnam
=
makeNode
(
TypeName
);
yyval
.
typnam
->
name
=
xlateSqlType
(
"interval"
);
...
...
@@ -7266,75 +7265,75 @@ case 544:
;
break
;}
case
545
:
#line 294
8
"gram.y"
#line 294
7
"gram.y"
{
yyval
.
str
=
"year"
;
;
break
;}
case
546
:
#line 294
9
"gram.y"
#line 294
8
"gram.y"
{
yyval
.
str
=
"month"
;
;
break
;}
case
547
:
#line 29
50
"gram.y"
#line 29
49
"gram.y"
{
yyval
.
str
=
"day"
;
;
break
;}
case
548
:
#line 295
1
"gram.y"
#line 295
0
"gram.y"
{
yyval
.
str
=
"hour"
;
;
break
;}
case
549
:
#line 295
2
"gram.y"
#line 295
1
"gram.y"
{
yyval
.
str
=
"minute"
;
;
break
;}
case
550
:
#line 295
3
"gram.y"
#line 295
2
"gram.y"
{
yyval
.
str
=
"second"
;
;
break
;}
case
551
:
#line 295
6
"gram.y"
#line 295
5
"gram.y"
{
yyval
.
boolean
=
TRUE
;
;
break
;}
case
552
:
#line 295
7
"gram.y"
#line 295
6
"gram.y"
{
yyval
.
boolean
=
FALSE
;
;
break
;}
case
553
:
#line 29
60
"gram.y"
#line 29
59
"gram.y"
{
yyval
.
list
=
lcons
(
yyvsp
[
0
].
str
,
NIL
);
;
break
;}
case
554
:
#line 296
1
"gram.y"
#line 296
0
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
555
:
#line 296
2
"gram.y"
#line 296
1
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
556
:
#line 296
3
"gram.y"
#line 296
2
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
557
:
#line 296
4
"gram.y"
#line 296
3
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
558
:
#line 296
5
"gram.y"
#line 296
4
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
559
:
#line 296
6
"gram.y"
#line 296
5
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
560
:
#line 296
7
"gram.y"
#line 296
6
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
561
:
#line 297
8
"gram.y"
#line 297
7
"gram.y"
{
yyval
.
node
=
yyvsp
[
0
].
node
;
;
break
;}
case
562
:
#line 29
80
"gram.y"
#line 29
79
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_Null
;
...
...
@@ -7342,7 +7341,7 @@ case 562:
;
break
;}
case
563
:
#line 299
2
"gram.y"
#line 299
1
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
5
].
list
;
...
...
@@ -7354,7 +7353,7 @@ case 563:
;
break
;}
case
564
:
#line 300
2
"gram.y"
#line 300
1
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7366,7 +7365,7 @@ case 564:
;
break
;}
case
565
:
#line 301
2
"gram.y"
#line 301
1
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
5
].
list
;
...
...
@@ -7381,7 +7380,7 @@ case 565:
;
break
;}
case
566
:
#line 302
5
"gram.y"
#line 302
4
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
5
].
list
;
...
...
@@ -7393,7 +7392,7 @@ case 566:
;
break
;}
case
567
:
#line 303
5
"gram.y"
#line 303
4
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
5
].
list
;
...
...
@@ -7405,7 +7404,7 @@ case 567:
;
break
;}
case
568
:
#line 304
5
"gram.y"
#line 304
4
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
5
].
list
;
...
...
@@ -7417,7 +7416,7 @@ case 568:
;
break
;}
case
569
:
#line 305
5
"gram.y"
#line 305
4
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
5
].
list
;
...
...
@@ -7429,7 +7428,7 @@ case 569:
;
break
;}
case
570
:
#line 306
5
"gram.y"
#line 306
4
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
5
].
list
;
...
...
@@ -7441,7 +7440,7 @@ case 570:
;
break
;}
case
571
:
#line 307
5
"gram.y"
#line 307
4
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
5
].
list
;
...
...
@@ -7453,7 +7452,7 @@ case 571:
;
break
;}
case
572
:
#line 308
5
"gram.y"
#line 308
4
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
5
].
list
;
...
...
@@ -7465,7 +7464,7 @@ case 572:
;
break
;}
case
573
:
#line 309
5
"gram.y"
#line 309
4
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7480,7 +7479,7 @@ case 573:
;
break
;}
case
574
:
#line 310
8
"gram.y"
#line 310
7
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7492,7 +7491,7 @@ case 574:
;
break
;}
case
575
:
#line 311
8
"gram.y"
#line 311
7
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7504,7 +7503,7 @@ case 575:
;
break
;}
case
576
:
#line 312
8
"gram.y"
#line 312
7
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7516,7 +7515,7 @@ case 576:
;
break
;}
case
577
:
#line 313
8
"gram.y"
#line 313
7
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7528,7 +7527,7 @@ case 577:
;
break
;}
case
578
:
#line 314
8
"gram.y"
#line 314
7
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7540,7 +7539,7 @@ case 578:
;
break
;}
case
579
:
#line 315
8
"gram.y"
#line 315
7
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7552,7 +7551,7 @@ case 579:
;
break
;}
case
580
:
#line 316
8
"gram.y"
#line 316
7
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7564,7 +7563,7 @@ case 580:
;
break
;}
case
581
:
#line 317
8
"gram.y"
#line 317
7
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7579,7 +7578,7 @@ case 581:
;
break
;}
case
582
:
#line 319
1
"gram.y"
#line 319
0
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7591,7 +7590,7 @@ case 582:
;
break
;}
case
583
:
#line 320
1
"gram.y"
#line 320
0
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7603,7 +7602,7 @@ case 583:
;
break
;}
case
584
:
#line 321
1
"gram.y"
#line 321
0
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7615,7 +7614,7 @@ case 584:
;
break
;}
case
585
:
#line 322
1
"gram.y"
#line 322
0
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7627,7 +7626,7 @@ case 585:
;
break
;}
case
586
:
#line 323
1
"gram.y"
#line 323
0
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7639,7 +7638,7 @@ case 586:
;
break
;}
case
587
:
#line 324
1
"gram.y"
#line 324
0
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7651,7 +7650,7 @@ case 587:
;
break
;}
case
588
:
#line 325
1
"gram.y"
#line 325
0
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
yyvsp
[
-
6
].
list
;
...
...
@@ -7663,88 +7662,88 @@ case 588:
;
break
;}
case
589
:
#line 326
1
"gram.y"
#line 326
0
"gram.y"
{
yyval
.
node
=
makeRowExpr
(
yyvsp
[
-
3
].
str
,
yyvsp
[
-
5
].
list
,
yyvsp
[
-
1
].
list
);
;
break
;}
case
590
:
#line 326
5
"gram.y"
#line 326
4
"gram.y"
{
yyval
.
node
=
makeRowExpr
(
"+"
,
yyvsp
[
-
5
].
list
,
yyvsp
[
-
1
].
list
);
;
break
;}
case
591
:
#line 326
9
"gram.y"
#line 326
8
"gram.y"
{
yyval
.
node
=
makeRowExpr
(
"-"
,
yyvsp
[
-
5
].
list
,
yyvsp
[
-
1
].
list
);
;
break
;}
case
592
:
#line 327
3
"gram.y"
#line 327
2
"gram.y"
{
yyval
.
node
=
makeRowExpr
(
"/"
,
yyvsp
[
-
5
].
list
,
yyvsp
[
-
1
].
list
);
;
break
;}
case
593
:
#line 327
7
"gram.y"
#line 327
6
"gram.y"
{
yyval
.
node
=
makeRowExpr
(
"*"
,
yyvsp
[
-
5
].
list
,
yyvsp
[
-
1
].
list
);
;
break
;}
case
594
:
#line 328
1
"gram.y"
#line 328
0
"gram.y"
{
yyval
.
node
=
makeRowExpr
(
"<"
,
yyvsp
[
-
5
].
list
,
yyvsp
[
-
1
].
list
);
;
break
;}
case
595
:
#line 328
5
"gram.y"
#line 328
4
"gram.y"
{
yyval
.
node
=
makeRowExpr
(
">"
,
yyvsp
[
-
5
].
list
,
yyvsp
[
-
1
].
list
);
;
break
;}
case
596
:
#line 328
9
"gram.y"
#line 328
8
"gram.y"
{
yyval
.
node
=
makeRowExpr
(
"="
,
yyvsp
[
-
5
].
list
,
yyvsp
[
-
1
].
list
);
;
break
;}
case
597
:
#line 329
5
"gram.y"
#line 329
4
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
yyvsp
[
0
].
node
);
;
break
;}
case
598
:
#line 330
1
"gram.y"
#line 330
0
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
yyvsp
[
0
].
node
);
;
break
;}
case
599
:
#line 330
5
"gram.y"
#line 330
4
"gram.y"
{
yyval
.
list
=
lcons
(
yyvsp
[
0
].
node
,
NIL
);
;
break
;}
case
600
:
#line 331
9
"gram.y"
#line 331
8
"gram.y"
{
yyvsp
[
-
1
].
attr
->
indirection
=
yyvsp
[
0
].
list
;
yyval
.
node
=
(
Node
*
)
yyvsp
[
-
1
].
attr
;
;
break
;}
case
601
:
#line 332
4
"gram.y"
#line 332
3
"gram.y"
{
yyval
.
node
=
yyvsp
[
0
].
node
;
;
break
;}
case
602
:
#line 332
6
"gram.y"
#line 332
5
"gram.y"
{
yyval
.
node
=
yyvsp
[
0
].
node
;
;
break
;}
case
603
:
#line 332
8
"gram.y"
#line 332
7
"gram.y"
{
/* could be a column name or a relation_name */
Ident
*
n
=
makeNode
(
Ident
);
...
...
@@ -7754,51 +7753,51 @@ case 603:
;
break
;}
case
604
:
#line 333
6
"gram.y"
#line 333
5
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"-"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
605
:
#line 333
8
"gram.y"
#line 333
7
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"+"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
606
:
#line 33
40
"gram.y"
#line 33
39
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"-"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
607
:
#line 334
2
"gram.y"
#line 334
1
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"/"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
608
:
#line 334
4
"gram.y"
#line 334
3
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"*"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
609
:
#line 334
6
"gram.y"
#line 334
5
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"<"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
610
:
#line 334
8
"gram.y"
#line 334
7
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
">"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
611
:
#line 33
50
"gram.y"
#line 33
49
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"="
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
612
:
#line 335
2
"gram.y"
#line 335
1
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
":"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
613
:
#line 335
4
"gram.y"
#line 335
3
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
";"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
614
:
#line 335
6
"gram.y"
#line 335
5
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"|"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
615
:
#line 335
8
"gram.y"
#line 335
7
"gram.y"
{
yyval
.
node
=
(
Node
*
)
yyvsp
[
-
2
].
node
;
/* AexprConst can be either A_Const or ParamNo */
...
...
@@ -7816,7 +7815,7 @@ case 615:
;
break
;}
case
616
:
#line 337
4
"gram.y"
#line 337
3
"gram.y"
{
yyval
.
node
=
(
Node
*
)
yyvsp
[
-
3
].
node
;
/* AexprConst can be either A_Const or ParamNo */
...
...
@@ -7834,31 +7833,31 @@ case 616:
;
break
;}
case
617
:
#line 33
90
"gram.y"
#line 33
89
"gram.y"
{
yyval
.
node
=
yyvsp
[
-
1
].
node
;
;
break
;}
case
618
:
#line 339
2
"gram.y"
#line 339
1
"gram.y"
{
yyval
.
node
=
makeIndexable
(
yyvsp
[
-
1
].
str
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
619
:
#line 339
4
"gram.y"
#line 339
3
"gram.y"
{
yyval
.
node
=
makeIndexable
(
"~~"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
620
:
#line 339
6
"gram.y"
#line 339
5
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"!~~"
,
yyvsp
[
-
3
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
621
:
#line 339
8
"gram.y"
#line 339
7
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
yyvsp
[
-
1
].
str
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
622
:
#line 3
400
"gram.y"
#line 3
399
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
yyvsp
[
0
].
str
,
yyvsp
[
-
1
].
node
,
NULL
);
;
break
;}
case
623
:
#line 340
2
"gram.y"
#line 340
1
"gram.y"
{
/* cheap hack for aggregate (eg. count) */
FuncCall
*
n
=
makeNode
(
FuncCall
);
...
...
@@ -7872,7 +7871,7 @@ case 623:
;
break
;}
case
624
:
#line 341
4
"gram.y"
#line 341
3
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
yyvsp
[
-
2
].
str
;
...
...
@@ -7881,7 +7880,7 @@ case 624:
;
break
;}
case
625
:
#line 342
1
"gram.y"
#line 342
0
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
yyvsp
[
-
3
].
str
;
...
...
@@ -7890,7 +7889,7 @@ case 625:
;
break
;}
case
626
:
#line 342
8
"gram.y"
#line 342
7
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
TypeName
*
t
=
makeNode
(
TypeName
);
...
...
@@ -7907,7 +7906,7 @@ case 626:
;
break
;}
case
627
:
#line 344
3
"gram.y"
#line 344
2
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
TypeName
*
t
=
makeNode
(
TypeName
);
...
...
@@ -7924,7 +7923,7 @@ case 627:
;
break
;}
case
628
:
#line 345
8
"gram.y"
#line 345
7
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
A_Const
*
s
=
makeNode
(
A_Const
);
...
...
@@ -7948,7 +7947,7 @@ case 628:
;
break
;}
case
629
:
#line 34
80
"gram.y"
#line 34
79
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
TypeName
*
t
=
makeNode
(
TypeName
);
...
...
@@ -7965,7 +7964,7 @@ case 629:
;
break
;}
case
630
:
#line 349
5
"gram.y"
#line 349
4
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
A_Const
*
s
=
makeNode
(
A_Const
);
...
...
@@ -7989,7 +7988,7 @@ case 630:
;
break
;}
case
631
:
#line 351
7
"gram.y"
#line 351
6
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"getpgusername"
;
...
...
@@ -7998,7 +7997,7 @@ case 631:
;
break
;}
case
632
:
#line 352
4
"gram.y"
#line 352
3
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
NIL
;
...
...
@@ -8010,7 +8009,7 @@ case 632:
;
break
;}
case
633
:
#line 353
4
"gram.y"
#line 353
3
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"date_part"
;
...
...
@@ -8019,7 +8018,7 @@ case 633:
;
break
;}
case
634
:
#line 354
1
"gram.y"
#line 354
0
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"strpos"
;
...
...
@@ -8028,7 +8027,7 @@ case 634:
;
break
;}
case
635
:
#line 354
8
"gram.y"
#line 354
7
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"substr"
;
...
...
@@ -8037,7 +8036,7 @@ case 635:
;
break
;}
case
636
:
#line 355
6
"gram.y"
#line 355
5
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"btrim"
;
...
...
@@ -8046,7 +8045,7 @@ case 636:
;
break
;}
case
637
:
#line 356
3
"gram.y"
#line 356
2
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"ltrim"
;
...
...
@@ -8055,7 +8054,7 @@ case 637:
;
break
;}
case
638
:
#line 35
70
"gram.y"
#line 35
69
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"rtrim"
;
...
...
@@ -8064,7 +8063,7 @@ case 638:
;
break
;}
case
639
:
#line 357
7
"gram.y"
#line 357
6
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"btrim"
;
...
...
@@ -8073,23 +8072,23 @@ case 639:
;
break
;}
case
640
:
#line 358
4
"gram.y"
#line 358
3
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
ISNULL
,
NULL
,
yyvsp
[
-
1
].
node
,
NULL
);
;
break
;}
case
641
:
#line 358
6
"gram.y"
#line 358
5
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
ISNULL
,
NULL
,
yyvsp
[
-
2
].
node
,
NULL
);
;
break
;}
case
642
:
#line 358
8
"gram.y"
#line 358
7
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
NOTNULL
,
NULL
,
yyvsp
[
-
1
].
node
,
NULL
);
;
break
;}
case
643
:
#line 35
90
"gram.y"
#line 35
89
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
NOTNULL
,
NULL
,
yyvsp
[
-
3
].
node
,
NULL
);
;
break
;}
case
644
:
#line 359
7
"gram.y"
#line 359
6
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_String
;
...
...
@@ -8101,7 +8100,7 @@ case 644:
;
break
;}
case
645
:
#line 360
7
"gram.y"
#line 360
6
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_String
;
...
...
@@ -8113,7 +8112,7 @@ case 645:
;
break
;}
case
646
:
#line 361
7
"gram.y"
#line 361
6
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_String
;
...
...
@@ -8125,7 +8124,7 @@ case 646:
;
break
;}
case
647
:
#line 362
7
"gram.y"
#line 362
6
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_String
;
...
...
@@ -8137,7 +8136,7 @@ case 647:
;
break
;}
case
648
:
#line 363
7
"gram.y"
#line 363
6
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
AND
,
NULL
,
makeA_Expr
(
OP
,
">="
,
yyvsp
[
-
4
].
node
,
yyvsp
[
-
2
].
node
),
...
...
@@ -8145,7 +8144,7 @@ case 648:
;
break
;}
case
649
:
#line 364
3
"gram.y"
#line 364
2
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OR
,
NULL
,
makeA_Expr
(
OP
,
"<"
,
yyvsp
[
-
5
].
node
,
yyvsp
[
-
2
].
node
),
...
...
@@ -8153,11 +8152,11 @@ case 649:
;
break
;}
case
650
:
#line 364
8
"gram.y"
#line 364
7
"gram.y"
{
saved_In_Expr
=
lcons
(
yyvsp
[
-
1
].
node
,
saved_In_Expr
);
;
break
;}
case
651
:
#line 364
9
"gram.y"
#line 364
8
"gram.y"
{
saved_In_Expr
=
lnext
(
saved_In_Expr
);
if
(
nodeTag
(
yyvsp
[
-
1
].
node
)
==
T_SubLink
)
...
...
@@ -8173,11 +8172,11 @@ case 651:
;
break
;}
case
652
:
#line 366
2
"gram.y"
#line 366
1
"gram.y"
{
saved_In_Expr
=
lcons
(
yyvsp
[
-
2
].
node
,
saved_In_Expr
);
;
break
;}
case
653
:
#line 366
3
"gram.y"
#line 366
2
"gram.y"
{
saved_In_Expr
=
lnext
(
saved_In_Expr
);
if
(
nodeTag
(
yyvsp
[
-
1
].
node
)
==
T_SubLink
)
...
...
@@ -8193,7 +8192,7 @@ case 653:
;
break
;}
case
654
:
#line 367
7
"gram.y"
#line 367
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
4
].
node
,
NULL
);
...
...
@@ -8205,7 +8204,7 @@ case 654:
;
break
;}
case
655
:
#line 368
7
"gram.y"
#line 368
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
4
].
node
,
NULL
);
...
...
@@ -8217,7 +8216,7 @@ case 655:
;
break
;}
case
656
:
#line 369
7
"gram.y"
#line 369
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
4
].
node
,
NULL
);
...
...
@@ -8229,7 +8228,7 @@ case 656:
;
break
;}
case
657
:
#line 370
7
"gram.y"
#line 370
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
4
].
node
,
NULL
);
...
...
@@ -8241,7 +8240,7 @@ case 657:
;
break
;}
case
658
:
#line 371
7
"gram.y"
#line 371
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
4
].
node
,
NULL
);
...
...
@@ -8253,7 +8252,7 @@ case 658:
;
break
;}
case
659
:
#line 372
7
"gram.y"
#line 372
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
4
].
node
,
NULL
);
...
...
@@ -8265,7 +8264,7 @@ case 659:
;
break
;}
case
660
:
#line 373
7
"gram.y"
#line 373
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
4
].
node
,
NULL
);
...
...
@@ -8277,7 +8276,7 @@ case 660:
;
break
;}
case
661
:
#line 374
7
"gram.y"
#line 374
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
4
].
node
,
NULL
);
...
...
@@ -8289,7 +8288,7 @@ case 661:
;
break
;}
case
662
:
#line 375
7
"gram.y"
#line 375
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NIL
);
...
...
@@ -8301,7 +8300,7 @@ case 662:
;
break
;}
case
663
:
#line 376
7
"gram.y"
#line 376
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NIL
);
...
...
@@ -8313,7 +8312,7 @@ case 663:
;
break
;}
case
664
:
#line 377
7
"gram.y"
#line 377
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NIL
);
...
...
@@ -8325,7 +8324,7 @@ case 664:
;
break
;}
case
665
:
#line 378
7
"gram.y"
#line 378
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NIL
);
...
...
@@ -8337,7 +8336,7 @@ case 665:
;
break
;}
case
666
:
#line 379
7
"gram.y"
#line 379
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NIL
);
...
...
@@ -8349,7 +8348,7 @@ case 666:
;
break
;}
case
667
:
#line 380
7
"gram.y"
#line 380
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NIL
);
...
...
@@ -8361,7 +8360,7 @@ case 667:
;
break
;}
case
668
:
#line 381
7
"gram.y"
#line 381
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NIL
);
...
...
@@ -8373,7 +8372,7 @@ case 668:
;
break
;}
case
669
:
#line 382
7
"gram.y"
#line 382
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NIL
);
...
...
@@ -8385,7 +8384,7 @@ case 669:
;
break
;}
case
670
:
#line 383
7
"gram.y"
#line 383
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NULL
);
...
...
@@ -8397,7 +8396,7 @@ case 670:
;
break
;}
case
671
:
#line 384
7
"gram.y"
#line 384
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NULL
);
...
...
@@ -8409,7 +8408,7 @@ case 671:
;
break
;}
case
672
:
#line 385
7
"gram.y"
#line 385
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NULL
);
...
...
@@ -8421,7 +8420,7 @@ case 672:
;
break
;}
case
673
:
#line 386
7
"gram.y"
#line 386
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NULL
);
...
...
@@ -8433,7 +8432,7 @@ case 673:
;
break
;}
case
674
:
#line 387
7
"gram.y"
#line 387
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NULL
);
...
...
@@ -8445,7 +8444,7 @@ case 674:
;
break
;}
case
675
:
#line 388
7
"gram.y"
#line 388
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NULL
);
...
...
@@ -8457,7 +8456,7 @@ case 675:
;
break
;}
case
676
:
#line 389
7
"gram.y"
#line 389
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NULL
);
...
...
@@ -8469,7 +8468,7 @@ case 676:
;
break
;}
case
677
:
#line 390
7
"gram.y"
#line 390
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
lefthand
=
lcons
(
yyvsp
[
-
5
].
node
,
NULL
);
...
...
@@ -8481,30 +8480,30 @@ case 677:
;
break
;}
case
678
:
#line 391
7
"gram.y"
#line 391
6
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
AND
,
NULL
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
679
:
#line 391
9
"gram.y"
#line 391
8
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OR
,
NULL
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
680
:
#line 392
1
"gram.y"
#line 392
0
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
NOT
,
NULL
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
681
:
#line 393
1
"gram.y"
#line 393
0
"gram.y"
{
yyvsp
[
-
1
].
attr
->
indirection
=
yyvsp
[
0
].
list
;
yyval
.
node
=
(
Node
*
)
yyvsp
[
-
1
].
attr
;
;
break
;}
case
682
:
#line 393
6
"gram.y"
#line 393
5
"gram.y"
{
yyval
.
node
=
yyvsp
[
0
].
node
;
;
break
;}
case
683
:
#line 393
8
"gram.y"
#line 393
7
"gram.y"
{
/* could be a column name or a relation_name */
Ident
*
n
=
makeNode
(
Ident
);
...
...
@@ -8514,39 +8513,39 @@ case 683:
;
break
;}
case
684
:
#line 394
6
"gram.y"
#line 394
5
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"-"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
685
:
#line 394
8
"gram.y"
#line 394
7
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"+"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
686
:
#line 39
50
"gram.y"
#line 39
49
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"-"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
687
:
#line 395
2
"gram.y"
#line 395
1
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"/"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
688
:
#line 395
4
"gram.y"
#line 395
3
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"*"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
689
:
#line 395
6
"gram.y"
#line 395
5
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
":"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
690
:
#line 395
8
"gram.y"
#line 395
7
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
";"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
691
:
#line 39
60
"gram.y"
#line 39
59
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"|"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
692
:
#line 396
2
"gram.y"
#line 396
1
"gram.y"
{
yyval
.
node
=
(
Node
*
)
yyvsp
[
-
2
].
node
;
/* AexprConst can be either A_Const or ParamNo */
...
...
@@ -8564,7 +8563,7 @@ case 692:
;
break
;}
case
693
:
#line 397
8
"gram.y"
#line 397
7
"gram.y"
{
yyval
.
node
=
(
Node
*
)
yyvsp
[
-
3
].
node
;
/* AexprConst can be either A_Const or ParamNo */
...
...
@@ -8582,23 +8581,23 @@ case 693:
;
break
;}
case
694
:
#line 399
4
"gram.y"
#line 399
3
"gram.y"
{
yyval
.
node
=
yyvsp
[
-
1
].
node
;
;
break
;}
case
695
:
#line 399
6
"gram.y"
#line 399
5
"gram.y"
{
yyval
.
node
=
makeIndexable
(
yyvsp
[
-
1
].
str
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
696
:
#line 399
8
"gram.y"
#line 399
7
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
yyvsp
[
-
1
].
str
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
697
:
#line
4000
"gram.y"
#line
3999
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
yyvsp
[
0
].
str
,
yyvsp
[
-
1
].
node
,
NULL
);
;
break
;}
case
698
:
#line 400
2
"gram.y"
#line 400
1
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
yyvsp
[
-
2
].
str
;
...
...
@@ -8607,7 +8606,7 @@ case 698:
;
break
;}
case
699
:
#line 400
9
"gram.y"
#line 400
8
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
yyvsp
[
-
3
].
str
;
...
...
@@ -8616,7 +8615,7 @@ case 699:
;
break
;}
case
700
:
#line 401
6
"gram.y"
#line 401
5
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
TypeName
*
t
=
makeNode
(
TypeName
);
...
...
@@ -8633,7 +8632,7 @@ case 700:
;
break
;}
case
701
:
#line 403
1
"gram.y"
#line 403
0
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
TypeName
*
t
=
makeNode
(
TypeName
);
...
...
@@ -8650,7 +8649,7 @@ case 701:
;
break
;}
case
702
:
#line 404
6
"gram.y"
#line 404
5
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
A_Const
*
s
=
makeNode
(
A_Const
);
...
...
@@ -8674,7 +8673,7 @@ case 702:
;
break
;}
case
703
:
#line 406
8
"gram.y"
#line 406
7
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
TypeName
*
t
=
makeNode
(
TypeName
);
...
...
@@ -8691,7 +8690,7 @@ case 703:
;
break
;}
case
704
:
#line 408
3
"gram.y"
#line 408
2
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
A_Const
*
s
=
makeNode
(
A_Const
);
...
...
@@ -8715,7 +8714,7 @@ case 704:
;
break
;}
case
705
:
#line 410
5
"gram.y"
#line 410
4
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"getpgusername"
;
...
...
@@ -8724,7 +8723,7 @@ case 705:
;
break
;}
case
706
:
#line 411
2
"gram.y"
#line 411
1
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"strpos"
;
...
...
@@ -8733,7 +8732,7 @@ case 706:
;
break
;}
case
707
:
#line 411
9
"gram.y"
#line 411
8
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"substr"
;
...
...
@@ -8742,7 +8741,7 @@ case 707:
;
break
;}
case
708
:
#line 412
7
"gram.y"
#line 412
6
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"btrim"
;
...
...
@@ -8751,7 +8750,7 @@ case 708:
;
break
;}
case
709
:
#line 413
4
"gram.y"
#line 413
3
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"ltrim"
;
...
...
@@ -8760,7 +8759,7 @@ case 709:
;
break
;}
case
710
:
#line 414
1
"gram.y"
#line 414
0
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"rtrim"
;
...
...
@@ -8769,7 +8768,7 @@ case 710:
;
break
;}
case
711
:
#line 414
8
"gram.y"
#line 414
7
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"btrim"
;
...
...
@@ -8778,7 +8777,7 @@ case 711:
;
break
;}
case
712
:
#line 415
7
"gram.y"
#line 415
6
"gram.y"
{
A_Indices
*
ai
=
makeNode
(
A_Indices
);
ai
->
lidx
=
NULL
;
...
...
@@ -8787,7 +8786,7 @@ case 712:
;
break
;}
case
713
:
#line 416
4
"gram.y"
#line 416
3
"gram.y"
{
A_Indices
*
ai
=
makeNode
(
A_Indices
);
ai
->
lidx
=
yyvsp
[
-
4
].
node
;
...
...
@@ -8796,23 +8795,23 @@ case 713:
;
break
;}
case
714
:
#line 417
1
"gram.y"
#line 417
0
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
715
:
#line 417
5
"gram.y"
#line 417
4
"gram.y"
{
yyval
.
list
=
lcons
(
yyvsp
[
0
].
node
,
NIL
);
;
break
;}
case
716
:
#line 417
7
"gram.y"
#line 417
6
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
yyvsp
[
0
].
node
);
;
break
;}
case
717
:
#line 417
9
"gram.y"
#line 417
8
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
yyvsp
[
0
].
node
);
;
break
;}
case
718
:
#line 418
3
"gram.y"
#line 418
2
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_String
;
...
...
@@ -8821,58 +8820,58 @@ case 718:
;
break
;}
case
719
:
#line 41
90
"gram.y"
#line 41
89
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
720
:
#line 419
8
"gram.y"
#line 419
7
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
721
:
#line 420
2
"gram.y"
#line 420
1
"gram.y"
{
yyval
.
list
=
makeList
(
yyvsp
[
0
].
node
,
yyvsp
[
-
2
].
node
,
-
1
);
;
break
;}
case
722
:
#line 420
4
"gram.y"
#line 420
3
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
723
:
#line 420
8
"gram.y"
#line 420
7
"gram.y"
{
yyvsp
[
-
1
].
attr
->
indirection
=
yyvsp
[
0
].
list
;
yyval
.
node
=
(
Node
*
)
yyvsp
[
-
1
].
attr
;
;
break
;}
case
724
:
#line 421
3
"gram.y"
#line 421
2
"gram.y"
{
yyval
.
node
=
yyvsp
[
0
].
node
;
;
break
;}
case
725
:
#line 421
5
"gram.y"
#line 421
4
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"-"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
726
:
#line 421
7
"gram.y"
#line 421
6
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"+"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
727
:
#line 421
9
"gram.y"
#line 421
8
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"-"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
728
:
#line 422
1
"gram.y"
#line 422
0
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"/"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
729
:
#line 422
3
"gram.y"
#line 422
2
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"*"
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
730
:
#line 422
5
"gram.y"
#line 422
4
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"|"
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
731
:
#line 422
7
"gram.y"
#line 422
6
"gram.y"
{
yyval
.
node
=
(
Node
*
)
yyvsp
[
-
2
].
node
;
/* AexprConst can be either A_Const or ParamNo */
...
...
@@ -8890,7 +8889,7 @@ case 731:
;
break
;}
case
732
:
#line 424
3
"gram.y"
#line 424
2
"gram.y"
{
yyval
.
node
=
(
Node
*
)
yyvsp
[
-
3
].
node
;
/* AexprConst can be either A_Const or ParamNo */
...
...
@@ -8908,23 +8907,23 @@ case 732:
;
break
;}
case
733
:
#line 425
9
"gram.y"
#line 425
8
"gram.y"
{
yyval
.
node
=
yyvsp
[
-
1
].
node
;
;
break
;}
case
734
:
#line 426
1
"gram.y"
#line 426
0
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
yyvsp
[
-
1
].
str
,
yyvsp
[
-
2
].
node
,
yyvsp
[
0
].
node
);
;
break
;}
case
735
:
#line 426
3
"gram.y"
#line 426
2
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
yyvsp
[
-
1
].
str
,
NULL
,
yyvsp
[
0
].
node
);
;
break
;}
case
736
:
#line 426
5
"gram.y"
#line 426
4
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
yyvsp
[
0
].
str
,
yyvsp
[
-
1
].
node
,
NULL
);
;
break
;}
case
737
:
#line 426
7
"gram.y"
#line 426
6
"gram.y"
{
/* could be a column name or a relation_name */
Ident
*
n
=
makeNode
(
Ident
);
...
...
@@ -8934,7 +8933,7 @@ case 737:
;
break
;}
case
738
:
#line 427
5
"gram.y"
#line 427
4
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
yyvsp
[
-
2
].
str
;
...
...
@@ -8943,7 +8942,7 @@ case 738:
;
break
;}
case
739
:
#line 428
2
"gram.y"
#line 428
1
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
yyvsp
[
-
3
].
str
;
...
...
@@ -8952,7 +8951,7 @@ case 739:
;
break
;}
case
740
:
#line 428
9
"gram.y"
#line 428
8
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"strpos"
;
...
...
@@ -8961,7 +8960,7 @@ case 740:
;
break
;}
case
741
:
#line 429
6
"gram.y"
#line 429
5
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"substr"
;
...
...
@@ -8970,7 +8969,7 @@ case 741:
;
break
;}
case
742
:
#line 430
4
"gram.y"
#line 430
3
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"btrim"
;
...
...
@@ -8979,7 +8978,7 @@ case 742:
;
break
;}
case
743
:
#line 431
1
"gram.y"
#line 431
0
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"ltrim"
;
...
...
@@ -8988,7 +8987,7 @@ case 743:
;
break
;}
case
744
:
#line 431
8
"gram.y"
#line 431
7
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"rtrim"
;
...
...
@@ -8997,7 +8996,7 @@ case 744:
;
break
;}
case
745
:
#line 432
5
"gram.y"
#line 432
4
"gram.y"
{
FuncCall
*
n
=
makeNode
(
FuncCall
);
n
->
funcname
=
"btrim"
;
...
...
@@ -9006,21 +9005,21 @@ case 745:
;
break
;}
case
746
:
#line 433
4
"gram.y"
#line 433
3
"gram.y"
{
yyval
.
list
=
nconc
(
nconc
(
yyvsp
[
-
2
].
list
,
yyvsp
[
-
1
].
list
),
yyvsp
[
0
].
list
);
;
break
;}
case
747
:
#line 433
8
"gram.y"
#line 433
7
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
748
:
#line 434
2
"gram.y"
#line 434
1
"gram.y"
{
yyval
.
list
=
yyvsp
[
0
].
list
;
;
break
;}
case
749
:
#line 434
4
"gram.y"
#line 434
3
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_Integer
;
...
...
@@ -9029,27 +9028,27 @@ case 749:
;
break
;}
case
750
:
#line 435
3
"gram.y"
#line 435
2
"gram.y"
{
yyval
.
list
=
yyvsp
[
0
].
list
;
;
break
;}
case
751
:
#line 435
5
"gram.y"
#line 435
4
"gram.y"
{
yyval
.
list
=
NIL
;
;
break
;}
case
752
:
#line 435
9
"gram.y"
#line 435
8
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
0
].
list
,
yyvsp
[
-
2
].
node
);
;
break
;}
case
753
:
#line 436
1
"gram.y"
#line 436
0
"gram.y"
{
yyval
.
list
=
yyvsp
[
0
].
list
;
;
break
;}
case
754
:
#line 436
3
"gram.y"
#line 436
2
"gram.y"
{
yyval
.
list
=
yyvsp
[
0
].
list
;
;
break
;}
case
755
:
#line 436
7
"gram.y"
#line 436
6
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
subselect
=
yyvsp
[
0
].
node
;
...
...
@@ -9057,21 +9056,21 @@ case 755:
;
break
;}
case
756
:
#line 437
3
"gram.y"
#line 437
2
"gram.y"
{
yyval
.
node
=
yyvsp
[
0
].
node
;
;
break
;}
case
757
:
#line 437
7
"gram.y"
#line 437
6
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"="
,
lfirst
(
saved_In_Expr
),
yyvsp
[
0
].
node
);
;
break
;}
case
758
:
#line 437
9
"gram.y"
#line 437
8
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OR
,
NULL
,
yyvsp
[
-
2
].
node
,
makeA_Expr
(
OP
,
"="
,
lfirst
(
saved_In_Expr
),
yyvsp
[
0
].
node
));
;
break
;}
case
759
:
#line 438
5
"gram.y"
#line 438
4
"gram.y"
{
SubLink
*
n
=
makeNode
(
SubLink
);
n
->
subselect
=
yyvsp
[
0
].
node
;
...
...
@@ -9079,21 +9078,21 @@ case 759:
;
break
;}
case
760
:
#line 439
1
"gram.y"
#line 439
0
"gram.y"
{
yyval
.
node
=
yyvsp
[
0
].
node
;
;
break
;}
case
761
:
#line 439
5
"gram.y"
#line 439
4
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
OP
,
"<>"
,
lfirst
(
saved_In_Expr
),
yyvsp
[
0
].
node
);
;
break
;}
case
762
:
#line 439
7
"gram.y"
#line 439
6
"gram.y"
{
yyval
.
node
=
makeA_Expr
(
AND
,
NULL
,
yyvsp
[
-
2
].
node
,
makeA_Expr
(
OP
,
"<>"
,
lfirst
(
saved_In_Expr
),
yyvsp
[
0
].
node
));
;
break
;}
case
763
:
#line 440
3
"gram.y"
#line 440
2
"gram.y"
{
yyval
.
attr
=
makeNode
(
Attr
);
yyval
.
attr
->
relname
=
yyvsp
[
-
2
].
str
;
...
...
@@ -9103,7 +9102,7 @@ case 763:
;
break
;}
case
764
:
#line 441
1
"gram.y"
#line 441
0
"gram.y"
{
yyval
.
attr
=
makeNode
(
Attr
);
yyval
.
attr
->
relname
=
NULL
;
...
...
@@ -9113,27 +9112,27 @@ case 764:
;
break
;}
case
765
:
#line 442
1
"gram.y"
#line 442
0
"gram.y"
{
yyval
.
list
=
lcons
(
makeString
(
yyvsp
[
0
].
str
),
NIL
);
;
break
;}
case
766
:
#line 442
3
"gram.y"
#line 442
2
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
makeString
(
yyvsp
[
0
].
str
));
;
break
;}
case
767
:
#line 442
5
"gram.y"
#line 442
4
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
makeString
(
"*"
));
;
break
;}
case
768
:
#line 443
6
"gram.y"
#line 443
5
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
yyvsp
[
0
].
target
);
;
break
;}
case
769
:
#line 443
8
"gram.y"
#line 443
7
"gram.y"
{
yyval
.
list
=
lcons
(
yyvsp
[
0
].
target
,
NIL
);
;
break
;}
case
770
:
#line 44
40
"gram.y"
#line 44
39
"gram.y"
{
ResTarget
*
rt
=
makeNode
(
ResTarget
);
Attr
*
att
=
makeNode
(
Attr
);
...
...
@@ -9148,7 +9147,7 @@ case 770:
;
break
;}
case
771
:
#line 445
5
"gram.y"
#line 445
4
"gram.y"
{
yyval
.
target
=
makeNode
(
ResTarget
);
yyval
.
target
->
name
=
yyvsp
[
-
3
].
str
;
...
...
@@ -9157,7 +9156,7 @@ case 771:
;
break
;}
case
772
:
#line 446
2
"gram.y"
#line 446
1
"gram.y"
{
yyval
.
target
=
makeNode
(
ResTarget
);
yyval
.
target
->
name
=
NULL
;
...
...
@@ -9166,7 +9165,7 @@ case 772:
;
break
;}
case
773
:
#line 446
9
"gram.y"
#line 446
8
"gram.y"
{
Attr
*
att
=
makeNode
(
Attr
);
att
->
relname
=
yyvsp
[
-
2
].
str
;
...
...
@@ -9180,15 +9179,15 @@ case 773:
;
break
;}
case
774
:
#line 448
8
"gram.y"
#line 448
7
"gram.y"
{
yyval
.
list
=
lappend
(
yyvsp
[
-
2
].
list
,
yyvsp
[
0
].
target
);
;
break
;}
case
775
:
#line 44
90
"gram.y"
#line 44
89
"gram.y"
{
yyval
.
list
=
lcons
(
yyvsp
[
0
].
target
,
NIL
);
;
break
;}
case
776
:
#line 449
5
"gram.y"
#line 449
4
"gram.y"
{
yyval
.
target
=
makeNode
(
ResTarget
);
yyval
.
target
->
name
=
yyvsp
[
0
].
str
;
...
...
@@ -9197,7 +9196,7 @@ case 776:
;
break
;}
case
777
:
#line 450
2
"gram.y"
#line 450
1
"gram.y"
{
yyval
.
target
=
makeNode
(
ResTarget
);
yyval
.
target
->
name
=
NULL
;
...
...
@@ -9206,7 +9205,7 @@ case 777:
;
break
;}
case
778
:
#line 450
9
"gram.y"
#line 450
8
"gram.y"
{
Attr
*
att
=
makeNode
(
Attr
);
att
->
relname
=
yyvsp
[
-
2
].
str
;
...
...
@@ -9220,7 +9219,7 @@ case 778:
;
break
;}
case
779
:
#line 452
1
"gram.y"
#line 452
0
"gram.y"
{
Attr
*
att
=
makeNode
(
Attr
);
att
->
relname
=
"*"
;
...
...
@@ -9234,22 +9233,22 @@ case 779:
;
break
;}
case
780
:
#line 453
4
"gram.y"
#line 453
3
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
781
:
#line 453
5
"gram.y"
#line 453
4
"gram.y"
{
yyval
.
str
=
NULL
;
;
break
;}
case
782
:
#line 453
9
"gram.y"
#line 453
8
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
StrNCpy
(
saved_relname
,
yyvsp
[
0
].
str
,
NAMEDATALEN
);
;
break
;}
case
783
:
#line 454
4
"gram.y"
#line 454
3
"gram.y"
{
/* disallow refs to variable system tables */
if
(
strcmp
(
LogRelationName
,
yyvsp
[
0
].
str
)
==
0
...
...
@@ -9261,43 +9260,43 @@ case 783:
;
break
;}
case
784
:
#line 455
5
"gram.y"
#line 455
4
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
785
:
#line 455
6
"gram.y"
#line 455
5
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
786
:
#line 455
7
"gram.y"
#line 455
6
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
787
:
#line 455
8
"gram.y"
#line 455
7
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
788
:
#line 455
9
"gram.y"
#line 455
8
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
789
:
#line 456
5
"gram.y"
#line 456
4
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
790
:
#line 456
6
"gram.y"
#line 456
5
"gram.y"
{
yyval
.
str
=
xlateSqlFunc
(
yyvsp
[
0
].
str
);
;
break
;}
case
791
:
#line 456
8
"gram.y"
#line 456
7
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
792
:
#line 456
9
"gram.y"
#line 456
8
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
793
:
#line 457
5
"gram.y"
#line 457
4
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_Integer
;
...
...
@@ -9306,7 +9305,7 @@ case 793:
;
break
;}
case
794
:
#line 458
2
"gram.y"
#line 458
1
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_Float
;
...
...
@@ -9315,7 +9314,7 @@ case 794:
;
break
;}
case
795
:
#line 458
9
"gram.y"
#line 458
8
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_String
;
...
...
@@ -9324,7 +9323,7 @@ case 795:
;
break
;}
case
796
:
#line 459
6
"gram.y"
#line 459
5
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
typename
=
yyvsp
[
-
1
].
typnam
;
...
...
@@ -9334,11 +9333,11 @@ case 796:
;
break
;}
case
797
:
#line 460
4
"gram.y"
#line 460
3
"gram.y"
{
yyval
.
node
=
(
Node
*
)
yyvsp
[
0
].
paramno
;
;
break
;}
case
798
:
#line 460
6
"gram.y"
#line 460
5
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_String
;
...
...
@@ -9350,7 +9349,7 @@ case 798:
;
break
;}
case
799
:
#line 461
6
"gram.y"
#line 461
5
"gram.y"
{
A_Const
*
n
=
makeNode
(
A_Const
);
n
->
val
.
type
=
T_String
;
...
...
@@ -9362,238 +9361,238 @@ case 799:
;
break
;}
case
800
:
#line 462
8
"gram.y"
#line 462
7
"gram.y"
{
yyval
.
paramno
=
makeNode
(
ParamNo
);
yyval
.
paramno
->
number
=
yyvsp
[
0
].
ival
;
;
break
;}
case
801
:
#line 463
4
"gram.y"
#line 463
3
"gram.y"
{
yyval
.
value
=
makeInteger
(
yyvsp
[
0
].
ival
);
;
break
;}
case
802
:
#line 463
5
"gram.y"
#line 463
4
"gram.y"
{
yyval
.
value
=
makeFloat
(
yyvsp
[
0
].
dval
);
;
break
;}
case
803
:
#line 463
8
"gram.y"
#line 463
7
"gram.y"
{
yyval
.
ival
=
yyvsp
[
0
].
ival
;
;
break
;}
case
804
:
#line 463
9
"gram.y"
#line 463
8
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
805
:
#line 46
40
"gram.y"
#line 46
39
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
806
:
#line 464
8
"gram.y"
#line 464
7
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
yyvsp
[
0
].
str
);
;
break
;}
case
807
:
#line 46
50
"gram.y"
#line 46
49
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
yyvsp
[
0
].
str
);
;
break
;}
case
808
:
#line 465
2
"gram.y"
#line 465
1
"gram.y"
{
yyval
.
str
=
xlateSqlType
(
yyvsp
[
0
].
str
);
;
break
;}
case
809
:
#line 466
2
"gram.y"
#line 466
1
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
810
:
#line 466
3
"gram.y"
#line 466
2
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
811
:
#line 466
4
"gram.y"
#line 466
3
"gram.y"
{
yyval
.
str
=
"action"
;
;
break
;}
case
812
:
#line 466
5
"gram.y"
#line 466
4
"gram.y"
{
yyval
.
str
=
"cache"
;
;
break
;}
case
813
:
#line 466
6
"gram.y"
#line 466
5
"gram.y"
{
yyval
.
str
=
"cycle"
;
;
break
;}
case
814
:
#line 466
7
"gram.y"
#line 466
6
"gram.y"
{
yyval
.
str
=
"database"
;
;
break
;}
case
815
:
#line 466
8
"gram.y"
#line 466
7
"gram.y"
{
yyval
.
str
=
"delimiters"
;
;
break
;}
case
816
:
#line 466
9
"gram.y"
#line 466
8
"gram.y"
{
yyval
.
str
=
"double"
;
;
break
;}
case
817
:
#line 46
70
"gram.y"
#line 46
69
"gram.y"
{
yyval
.
str
=
"each"
;
;
break
;}
case
818
:
#line 467
1
"gram.y"
#line 467
0
"gram.y"
{
yyval
.
str
=
"function"
;
;
break
;}
case
819
:
#line 467
2
"gram.y"
#line 467
1
"gram.y"
{
yyval
.
str
=
"increment"
;
;
break
;}
case
820
:
#line 467
3
"gram.y"
#line 467
2
"gram.y"
{
yyval
.
str
=
"index"
;
;
break
;}
case
821
:
#line 467
4
"gram.y"
#line 467
3
"gram.y"
{
yyval
.
str
=
"key"
;
;
break
;}
case
822
:
#line 467
5
"gram.y"
#line 467
4
"gram.y"
{
yyval
.
str
=
"language"
;
;
break
;}
case
823
:
#line 467
6
"gram.y"
#line 467
5
"gram.y"
{
yyval
.
str
=
"location"
;
;
break
;}
case
824
:
#line 467
7
"gram.y"
#line 467
6
"gram.y"
{
yyval
.
str
=
"match"
;
;
break
;}
case
825
:
#line 467
8
"gram.y"
#line 467
7
"gram.y"
{
yyval
.
str
=
"maxvalue"
;
;
break
;}
case
826
:
#line 467
9
"gram.y"
#line 467
8
"gram.y"
{
yyval
.
str
=
"minvalue"
;
;
break
;}
case
827
:
#line 46
80
"gram.y"
#line 46
79
"gram.y"
{
yyval
.
str
=
"operator"
;
;
break
;}
case
828
:
#line 468
1
"gram.y"
#line 468
0
"gram.y"
{
yyval
.
str
=
"option"
;
;
break
;}
case
829
:
#line 468
2
"gram.y"
#line 468
1
"gram.y"
{
yyval
.
str
=
"password"
;
;
break
;}
case
830
:
#line 468
3
"gram.y"
#line 468
2
"gram.y"
{
yyval
.
str
=
"privileges"
;
;
break
;}
case
831
:
#line 468
4
"gram.y"
#line 468
3
"gram.y"
{
yyval
.
str
=
"recipe"
;
;
break
;}
case
832
:
#line 468
5
"gram.y"
#line 468
4
"gram.y"
{
yyval
.
str
=
"row"
;
;
break
;}
case
833
:
#line 468
6
"gram.y"
#line 468
5
"gram.y"
{
yyval
.
str
=
"start"
;
;
break
;}
case
834
:
#line 468
7
"gram.y"
#line 468
6
"gram.y"
{
yyval
.
str
=
"statement"
;
;
break
;}
case
835
:
#line 468
8
"gram.y"
#line 468
7
"gram.y"
{
yyval
.
str
=
"time"
;
;
break
;}
case
836
:
#line 468
9
"gram.y"
#line 468
8
"gram.y"
{
yyval
.
str
=
"trigger"
;
;
break
;}
case
837
:
#line 46
90
"gram.y"
#line 46
89
"gram.y"
{
yyval
.
str
=
"type"
;
;
break
;}
case
838
:
#line 469
1
"gram.y"
#line 469
0
"gram.y"
{
yyval
.
str
=
"user"
;
;
break
;}
case
839
:
#line 469
2
"gram.y"
#line 469
1
"gram.y"
{
yyval
.
str
=
"valid"
;
;
break
;}
case
840
:
#line 469
3
"gram.y"
#line 469
2
"gram.y"
{
yyval
.
str
=
"version"
;
;
break
;}
case
841
:
#line 469
4
"gram.y"
#line 469
3
"gram.y"
{
yyval
.
str
=
"zone"
;
;
break
;}
case
842
:
#line 470
7
"gram.y"
#line 470
6
"gram.y"
{
yyval
.
str
=
yyvsp
[
0
].
str
;
;
break
;}
case
843
:
#line 470
8
"gram.y"
#line 470
7
"gram.y"
{
yyval
.
str
=
"archive"
;
;
break
;}
case
844
:
#line 470
9
"gram.y"
#line 470
8
"gram.y"
{
yyval
.
str
=
"cluster"
;
;
break
;}
case
845
:
#line 47
10
"gram.y"
#line 47
09
"gram.y"
{
yyval
.
str
=
"constraint"
;
;
break
;}
case
846
:
#line 471
1
"gram.y"
#line 471
0
"gram.y"
{
yyval
.
str
=
"cross"
;
;
break
;}
case
847
:
#line 471
2
"gram.y"
#line 471
1
"gram.y"
{
yyval
.
str
=
"foreign"
;
;
break
;}
case
848
:
#line 471
3
"gram.y"
#line 471
2
"gram.y"
{
yyval
.
str
=
"group"
;
;
break
;}
case
849
:
#line 471
4
"gram.y"
#line 471
3
"gram.y"
{
yyval
.
str
=
"load"
;
;
break
;}
case
850
:
#line 471
5
"gram.y"
#line 471
4
"gram.y"
{
yyval
.
str
=
"order"
;
;
break
;}
case
851
:
#line 471
6
"gram.y"
#line 471
5
"gram.y"
{
yyval
.
str
=
"position"
;
;
break
;}
case
852
:
#line 471
7
"gram.y"
#line 471
6
"gram.y"
{
yyval
.
str
=
"precision"
;
;
break
;}
case
853
:
#line 471
8
"gram.y"
#line 471
7
"gram.y"
{
yyval
.
str
=
"table"
;
;
break
;}
case
854
:
#line 471
9
"gram.y"
#line 471
8
"gram.y"
{
yyval
.
str
=
"transaction"
;
;
break
;}
case
855
:
#line 47
20
"gram.y"
#line 47
19
"gram.y"
{
yyval
.
str
=
"true"
;
;
break
;}
case
856
:
#line 472
1
"gram.y"
#line 472
0
"gram.y"
{
yyval
.
str
=
"false"
;
;
break
;}
case
857
:
#line 472
5
"gram.y"
#line 472
4
"gram.y"
{
if
(
QueryIsRule
)
yyval
.
str
=
"*CURRENT*"
;
...
...
@@ -9602,7 +9601,7 @@ case 857:
;
break
;}
case
858
:
#line 473
2
"gram.y"
#line 473
1
"gram.y"
{
if
(
QueryIsRule
)
yyval
.
str
=
"*NEW*"
;
...
...
@@ -9612,7 +9611,7 @@ case 858:
break
;}
}
/* the action file gets copied in in place of this dollarsign */
#line 498 "/usr/
lib
/bison.simple"
#line 498 "/usr/
share/misc
/bison.simple"
yyvsp
-=
yylen
;
yyssp
-=
yylen
;
...
...
@@ -9808,7 +9807,7 @@ yyerrhandle:
yystate
=
yyn
;
goto
yynewstate
;
}
#line 47
40
"gram.y"
#line 47
39
"gram.y"
static
Node
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment