|
1 | 1 | /*-------------------------------------------------------------------------
|
2 | 2 | *
|
3 | 3 | * jsquery_extract.c
|
4 |
| - *Functions and operations to support jsquery in indexes |
| 4 | + *Functions and operations to support jsquery in indexes |
5 | 5 | *
|
6 | 6 | * Copyright (c) 2014, PostgreSQL Global Development Group
|
7 | 7 | * Author: Alexander Korotkov <aekorotkov@gmail.com>
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - *contrib/jsquery/jsquery_extract.c |
| 10 | + *contrib/jsquery/jsquery_extract.c |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -43,10 +43,10 @@ static void debugRecursive(StringInfo buf, ExtractedNode *node, int shift);
|
43 | 43 | staticExtractedNode*
|
44 | 44 | recursiveExtract(JsQueryItem*jsq,boolnot,boolindirect,PathItem*path)
|
45 | 45 | {
|
46 |
| -ExtractedNode*leftNode,*rightNode,*result; |
47 |
| -PathItem*pathItem; |
48 |
| -ExtractedNodeTypetype; |
49 |
| -JsQueryItemelem,e; |
| 46 | +ExtractedNode*leftNode,*rightNode,*result; |
| 47 | +PathItem*pathItem; |
| 48 | +ExtractedNodeTypetype; |
| 49 | +JsQueryItemelem,e; |
50 | 50 |
|
51 | 51 | check_stack_depth();
|
52 | 52 |
|
@@ -453,11 +453,11 @@ compareJsQueryItem(JsQueryItem *v1, JsQueryItem *v2)
|
453 | 453 | staticvoid
|
454 | 454 | processGroup(ExtractedNode*node,intstart,intend)
|
455 | 455 | {
|
456 |
| -inti; |
| 456 | +inti; |
457 | 457 | JsQueryItem*leftBound=NULL,
|
458 | 458 | *rightBound=NULL,
|
459 | 459 | *exactValue=NULL;
|
460 |
| -boolleftInclusive= false, |
| 460 | +boolleftInclusive= false, |
461 | 461 | rightInclusive= false,
|
462 | 462 | first= true;
|
463 | 463 | ExtractedNode*child;
|
@@ -575,8 +575,8 @@ simplifyRecursive(ExtractedNode *node)
|
575 | 575 | {
|
576 | 576 | if (node->type==eAnd)
|
577 | 577 | {
|
578 |
| -inti,groupStart=-1; |
579 |
| -ExtractedNode*child,*prevChild=NULL; |
| 578 | +inti,groupStart=-1; |
| 579 | +ExtractedNode*child,*prevChild=NULL; |
580 | 580 |
|
581 | 581 | for (i=0;i<node->args.count;i++)
|
582 | 582 | node->args.items[i]->number=i;
|
@@ -764,7 +764,7 @@ ExtractedNode *
|
764 | 764 | extractJsQuery(JsQuery*jq,MakeEntryHandlermakeHandler,
|
765 | 765 | CheckEntryHandlercheckHandler,Pointerextra)
|
766 | 766 | {
|
767 |
| -ExtractedNode*root; |
| 767 | +ExtractedNode*root; |
768 | 768 | JsQueryItemjsq;
|
769 | 769 |
|
770 | 770 | jsqInit(&jsq,jq);
|
|