@@ -1429,15 +1429,15 @@ ____________________________________________________________________________-->
1429
1429
<para>
1430
1430
When working with non-SQL-standard operator names, you will usually
1431
1431
need to separate adjacent operators with spaces to avoid ambiguity.
1432
- For example, if you have defined a left unary operator named <literal>@</literal>,
1432
+ For example, if you have defined a prefix operator named <literal>@</literal>,
1433
1433
you cannot write <literal>X*@Y</literal>; you must write
1434
1434
<literal>X* @Y</literal> to ensure that
1435
1435
<productname>PostgreSQL</productname> reads it as two operator names
1436
1436
not one.
1437
1437
</para>
1438
1438
____________________________________________________________________________-->
1439
1439
<para>
1440
- 当使用非 SQL 标准的操作符名时,你通常需要用空格分隔相邻的操作符来避免歧义。例如,如果你定义了一个名为<literal>@</literal>的左一元操作符 ,你不能写<literal>X*@Y</literal>,你必须写<literal>X* @Y</literal>来确保<productname>PostgreSQL</productname>把它读作两个操作符名而不是一个。
1440
+ 当使用非 SQL 标准的操作符名时,你通常需要用空格分隔相邻的操作符来避免歧义。例如,如果你定义了一个名为<literal>@</literal>的前缀操作符 ,你不能写<literal>X*@Y</literal>,你必须写<literal>X* @Y</literal>来确保<productname>PostgreSQL</productname>把它读作两个操作符名而不是一个。
1441
1441
</para>
1442
1442
</sect2>
1443
1443
@@ -1950,11 +1950,7 @@ SELECT 3 OPERATOR(pg_catalog.+) 4;
1950
1950
cases, these changes will result in no behavioral change, or perhaps
1951
1951
in <quote>no such operator</quote> failures which can be resolved by adding
1952
1952
parentheses. However there are corner cases in which a query might
1953
- change behavior without any parsing error being reported. If you are
1954
- concerned about whether these changes have silently broken something,
1955
- you can test your application with the configuration
1956
- parameter <xref linkend="guc-operator-precedence-warning"/> turned on
1957
- to see if any warnings are logged.
1953
+ change behavior without any parsing error being reported.
1958
1954
</para>
1959
1955
____________________________________________________________________________-->
1960
1956
<para>
@@ -1967,9 +1963,7 @@ ____________________________________________________________________________-->
1967
1963
逻辑上等价的结构不一致的处理,这些规则也得到了修改。在大部分情况下,
1968
1964
这些变化不会导致行为上的变化,或者可能会产生<quote>no such operator</quote>
1969
1965
错误,但可以通过增加圆括号解决。不过在一些极端情况中,查询可能在
1970
- 没有被报告解析错误的情况下发生行为的改变。如果你发觉这些改变悄悄地
1971
- 破坏了一些事情,可以打开<xref linkend="guc-operator-precedence-warning"/>
1972
- 配置参数,然后测试你的应用看看有没有一些警告被记录。
1966
+ 没有被报告解析错误的情况下发生行为的改变。
1973
1967
</para>
1974
1968
</note>
1975
1969
</sect2>
@@ -2566,7 +2560,7 @@ ____________________________________________________________________________-->
2566
2560
2567
2561
<!--==========================orignal english content==========================
2568
2562
<para>
2569
- There are three possible syntaxes for an operator invocation:
2563
+ There are two possible syntaxes for an operator invocation:
2570
2564
<simplelist>
2571
2565
<member><replaceable>expression</replaceable> <replaceable>operator</replaceable> <replaceable>expression</replaceable> (binary infix operator)</member>
2572
2566
<member><replaceable>operator</replaceable> <replaceable>expression</replaceable> (unary prefix operator)</member>
@@ -2586,11 +2580,10 @@ ____________________________________________________________________________-->
2586
2580
</para>
2587
2581
____________________________________________________________________________-->
2588
2582
<para>
2589
- 对于一次操作符调用,有三种可能的语法 :
2583
+ 对于一次操作符调用,有两种可能的语法 :
2590
2584
<simplelist>
2591
2585
<member><replaceable>expression</replaceable> <replaceable>operator</replaceable> <replaceable>expression</replaceable>(二元中缀操作符)</member>
2592
2586
<member><replaceable>operator</replaceable> <replaceable>expression</replaceable>(一元前缀操作符)</member>
2593
- <member><replaceable>expression</replaceable> <replaceable>operator</replaceable>(一元后缀操作符)</member>
2594
2587
</simplelist>
2595
2588
其中<replaceable>operator</replaceable>记号遵循<xref linkend="sql-syntax-operators"/>的语法规则,或者是关键词<token>AND</token>、<token>OR</token>和<token>NOT</token>之一,或者是一个如下形式的受限定操作符名:
2596
2589
<synopsis>
0 commit comments