|
21 | 21 | * NOTES |
22 | 22 | * CAPITALS are used to represent terminal symbols. |
23 | 23 | * non-capitals are used to represent non-terminals. |
24 | | - * SQL92-specific syntax is separated from plain SQL/Postgres syntax |
25 | | - * to help isolate the non-extensible portions of the parser. |
26 | 24 | * |
27 | 25 | * In general, nothing in this file should initiate database accesses |
28 | 26 | * nor depend on changeable state (such as SET variables). If you do |
@@ -1281,7 +1279,7 @@ schema_stmt: |
1281 | 1279 | * |
1282 | 1280 | * Set PG internal variable |
1283 | 1281 | * SET name TO 'var_value' |
1284 | | - * Include SQL92 syntax (thomas 1997-10-22): |
| 1282 | + * Include SQL syntax (thomas 1997-10-22): |
1285 | 1283 | * SET TIME ZONE 'var_value' |
1286 | 1284 | * |
1287 | 1285 | *****************************************************************************/ |
@@ -2780,7 +2778,7 @@ ColConstraint: |
2780 | 2778 | * to make it explicit. |
2781 | 2779 | * - thomas 1998-09-13 |
2782 | 2780 | * |
2783 | | - * WITH NULL and NULL are not SQL92-standard syntax elements, |
| 2781 | + * WITH NULL and NULL are not SQL-standard syntax elements, |
2784 | 2782 | * so leave them out. Use DEFAULT NULL to explicitly indicate |
2785 | 2783 | * that a column may have that value. WITH NULL leads to |
2786 | 2784 | * shift/reduce conflicts with WITH TIME ZONE anyway. |
@@ -9159,7 +9157,7 @@ select_clause: |
9159 | 9157 | * As with select_no_parens, simple_select cannot have outer parentheses, |
9160 | 9158 | * but can have parenthesized subclauses. |
9161 | 9159 | * |
9162 | | - * Note that sort clauses cannot be included at this level --- SQL92 requires |
| 9160 | + * Note that sort clauses cannot be included at this level --- SQL requires |
9163 | 9161 | * SELECT foo UNION SELECT bar ORDER BY baz |
9164 | 9162 | * to be parsed as |
9165 | 9163 | * (SELECT foo UNION SELECT bar) ORDER BY baz |
@@ -9660,7 +9658,7 @@ table_ref: relation_expr opt_alias_clause |
9660 | 9658 |
|
9661 | 9659 | /* |
9662 | 9660 | * It may seem silly to separate joined_table from table_ref, but there is |
9663 | | - * method in SQL92's madness: if you don't do it this way you get reduce- |
| 9661 | + * method in SQL's madness: if you don't do it this way you get reduce- |
9664 | 9662 | * reduce conflicts, because it's not clear to the parser generator whether |
9665 | 9663 | * to expect alias_clause after ')' or not. For the same reason we must |
9666 | 9664 | * treat 'JOIN' and 'join_type JOIN' separately, rather than allowing |
@@ -9959,7 +9957,7 @@ TableFuncElement: ColId Typename opt_collate_clause |
9959 | 9957 | /***************************************************************************** |
9960 | 9958 | * |
9961 | 9959 | * Type syntax |
9962 | | - * SQL92 introduces a large amount of type-specific syntax. |
| 9960 | + * SQL introduces a large amount of type-specific syntax. |
9963 | 9961 | * Define individual clauses to handle these cases, and use |
9964 | 9962 | * the generic case to handle regular type-extensible Postgres syntax. |
9965 | 9963 | * - thomas 1997-10-10 |
@@ -10085,7 +10083,7 @@ opt_type_modifiers: '(' expr_list ')' { $$ = $2; } |
10085 | 10083 | ; |
10086 | 10084 |
|
10087 | 10085 | /* |
10088 | | - * SQL92 numeric data types |
| 10086 | + * SQL numeric data types |
10089 | 10087 | */ |
10090 | 10088 | Numeric: INT_P |
10091 | 10089 | { |
@@ -10175,7 +10173,7 @@ opt_float: '(' Iconst ')' |
10175 | 10173 | ; |
10176 | 10174 |
|
10177 | 10175 | /* |
10178 | | - * SQL92 bit-field data types |
| 10176 | + * SQL bit-field data types |
10179 | 10177 | * The following implements BIT() and BIT VARYING(). |
10180 | 10178 | */ |
10181 | 10179 | Bit: BitWithLength |
@@ -10232,7 +10230,7 @@ BitWithoutLength: |
10232 | 10230 |
|
10233 | 10231 |
|
10234 | 10232 | /* |
10235 | | - * SQL92 character data types |
| 10233 | + * SQL character data types |
10236 | 10234 | * The following implements CHAR() and VARCHAR(). |
10237 | 10235 | */ |
10238 | 10236 | Character: CharacterWithLength |
@@ -10329,7 +10327,7 @@ opt_charset: |
10329 | 10327 | ; |
10330 | 10328 |
|
10331 | 10329 | /* |
10332 | | - * SQL92 date/time types |
| 10330 | + * SQL date/time types |
10333 | 10331 | */ |
10334 | 10332 | ConstDatetime: |
10335 | 10333 | TIMESTAMP '(' Iconst ')' opt_timezone |
@@ -10661,7 +10659,7 @@ a_expr: c_expr { $$ = $1; } |
10661 | 10659 | } |
10662 | 10660 |
|
10663 | 10661 | /* NullTest clause |
10664 | | - * Define SQL92-style Null test clause. |
| 10662 | + * Define SQL-style Null test clause. |
10665 | 10663 | * Allow two forms described in the standard: |
10666 | 10664 | * a IS NULL |
10667 | 10665 | * a IS NOT NULL |
@@ -11189,7 +11187,7 @@ func_expr: func_name '(' ')' over_clause |
11189 | 11187 | /* |
11190 | 11188 | * We consider AGGREGATE(*) to invoke a parameterless |
11191 | 11189 | * aggregate. This does the right thing for COUNT(*), |
11192 | | - * and there are no other aggregates in SQL92 that accept |
| 11190 | + * and there are no other aggregates in SQL that accept |
11193 | 11191 | * '*' as parameter. |
11194 | 11192 | * |
11195 | 11193 | * The FuncCall node is also marked agg_star = true, |
@@ -11505,7 +11503,7 @@ func_expr: func_name '(' ')' over_clause |
11505 | 11503 | } |
11506 | 11504 | | TRIM '(' BOTH trim_list ')' |
11507 | 11505 | { |
11508 | | - /* various trim expressions are defined in SQL92 |
| 11506 | + /* various trim expressions are defined in SQL |
11509 | 11507 | * - thomas 1997-07-19 |
11510 | 11508 | */ |
11511 | 11509 | FuncCall *n = makeNode(FuncCall); |
@@ -12208,7 +12206,7 @@ in_expr: select_with_parens |
12208 | 12206 | ; |
12209 | 12207 |
|
12210 | 12208 | /* |
12211 | | - * Define SQL92-style case clause. |
| 12209 | + * Define SQL-style CASE clause. |
12212 | 12210 | * - Full specification |
12213 | 12211 | * CASE WHEN a = b THEN c ... ELSE d END |
12214 | 12212 | * - Implicit argument |
|
0 commit comments