diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-04-18 03:37:13 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-04-18 03:37:13 +0000 |
commit | 3cd9399d86faef43c64724e63a138f6b6b7bb814 (patch) | |
tree | e028d9ee90f8726f73ad752396d4281ca636d94d /doc/src | |
parent | af03e2edc9465de4f9b762877ef088a785a74a07 (diff) | |
download | postgresql-3cd9399d86faef43c64724e63a138f6b6b7bb814.tar.gz postgresql-3cd9399d86faef43c64724e63a138f6b6b7bb814.zip |
Change docs to do 20! rather than larger.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/typeconv.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/typeconv.sgml b/doc/src/sgml/typeconv.sgml index 031be06a2e8..b53dbe4e75d 100644 --- a/doc/src/sgml/typeconv.sgml +++ b/doc/src/sgml/typeconv.sgml @@ -435,7 +435,7 @@ On the other hand, the postfix operator <literal>!</> (factorial) is defined only for integer data types, not for float8. So, if we try a similar case with <literal>!</>, we get: <screen> -tgl=> select text '44' ! as "factorial"; +tgl=> select text '20' ! as "factorial"; ERROR: Unable to identify a postfix operator '!' for type 'text' You may need to add parentheses or an explicit cast </screen> @@ -443,10 +443,10 @@ This happens because the system can't decide which of the several possible <literal>!</> operators should be preferred. We can help it out with an explicit cast: <screen> -tgl=> select cast(text '44' as int8) ! as "factorial"; +tgl=> select cast(text '20' as int8) ! as "factorial"; factorial --------------------- - 2673996885588443136 + 2432902008176640000 (1 row) </screen> </para> |