diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-06-15 22:15:03 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-06-15 22:15:03 +0000 |
commit | 62d45261144f973ca6139cb85ebfca735103852e (patch) | |
tree | 9d7171a85338ad0bdb7705a4ed2141a77c585d8e /doc/src | |
parent | 32fecad80a88cff01903d9cce820e26acaf1fd42 (diff) | |
download | postgresql-62d45261144f973ca6139cb85ebfca735103852e.tar.gz postgresql-62d45261144f973ca6139cb85ebfca735103852e.zip |
Ooops, fix busted markup.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/syntax.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 83b487d4f9f..fb727a8433c 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.62 2002/06/15 21:28:55 tgl Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.63 2002/06/15 22:15:03 tgl Exp $ --> <chapter id="sql-syntax"> @@ -1471,11 +1471,11 @@ SELECT somefunc() OR true; be used. For example, this is an untrustworthy way of trying to avoid division by zero in a WHERE clause: <programlisting> -SELECT ... WHERE x <> 0 AND y/x > 1.5; +SELECT ... WHERE x <> 0 AND y/x > 1.5; </programlisting> but this is safe: <programlisting> -SELECT ... WHERE CASE WHEN x <> 0 THEN y/x > 1.5 ELSE false END; +SELECT ... WHERE CASE WHEN x <> 0 THEN y/x > 1.5 ELSE false END; </programlisting> A CASE construct used in this fashion will defeat optimization attempts, so it should only be done when necessary. |