Issue - (#6): Build failed for PostgreSQL Version 12.
parent
b8472fbcd3
commit
40e1df799e
|
@ -2743,6 +2743,18 @@ JumbleExpr(pgssJumbleState *jstate, Node *node)
|
||||||
JumbleExpr(jstate, (Node *) expr->aggfilter);
|
JumbleExpr(jstate, (Node *) expr->aggfilter);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#if PG_VERSION_NUM >= 120000
|
||||||
|
case T_SubscriptingRef:
|
||||||
|
{
|
||||||
|
SubscriptingRef *sbsref = (SubscriptingRef *) node;
|
||||||
|
|
||||||
|
JumbleExpr(jstate, (Node *) sbsref->refupperindexpr);
|
||||||
|
JumbleExpr(jstate, (Node *) sbsref->reflowerindexpr);
|
||||||
|
JumbleExpr(jstate, (Node *) sbsref->refexpr);
|
||||||
|
JumbleExpr(jstate, (Node *) sbsref->refassgnexpr);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
#else
|
||||||
case T_ArrayRef:
|
case T_ArrayRef:
|
||||||
{
|
{
|
||||||
ArrayRef *aref = (ArrayRef *) node;
|
ArrayRef *aref = (ArrayRef *) node;
|
||||||
|
@ -2753,6 +2765,7 @@ JumbleExpr(pgssJumbleState *jstate, Node *node)
|
||||||
JumbleExpr(jstate, (Node *) aref->refassgnexpr);
|
JumbleExpr(jstate, (Node *) aref->refassgnexpr);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case T_FuncExpr:
|
case T_FuncExpr:
|
||||||
{
|
{
|
||||||
FuncExpr *expr = (FuncExpr *) node;
|
FuncExpr *expr = (FuncExpr *) node;
|
||||||
|
@ -3313,9 +3326,13 @@ fill_in_constant_lengths(pgssJumbleState *jstate, const char *query,
|
||||||
/* initialize the flex scanner --- should match raw_parser() */
|
/* initialize the flex scanner --- should match raw_parser() */
|
||||||
yyscanner = scanner_init(query,
|
yyscanner = scanner_init(query,
|
||||||
&yyextra,
|
&yyextra,
|
||||||
|
#if PG_VERSION_NUM >= 120000
|
||||||
|
&ScanKeywords,
|
||||||
|
ScanKeywordTokens);
|
||||||
|
#else
|
||||||
ScanKeywords,
|
ScanKeywords,
|
||||||
NumScanKeywords);
|
NumScanKeywords);
|
||||||
|
#endif
|
||||||
/* we don't want to re-emit any escape string warnings */
|
/* we don't want to re-emit any escape string warnings */
|
||||||
yyextra.escape_string_warning = false;
|
yyextra.escape_string_warning = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue