Thread: Port Bug Report: parse error with Factorial

Port Bug Report: parse error with Factorial

From
Unprivileged user
Date:
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name        : Volker Paul
Your email address    : vpaul@dohle.com

Category        : unknown
Severity        : non-critical

Summary: parse error with Factorial

System Configuration
--------------------
  Operating System   : Linux

  PostgreSQL version : 6.4

  Compiler used      :

Hardware:
---------
Linux helena 2.1.131 #1 SMP Thu Dec 17 15:11:02 MET 1998 i686 unknown

Versions of other tools:
------------------------


--------------------------------------------------------------------------

Problem Description:
--------------------
zeit=> select 5! ;
ERROR:  parser: parse error at or near ""
zeit=> select 5! +0 ;
?column?
--------
     120
(1 row)

--------------------------------------------------------------------------

Test Case:
----------
see above

--------------------------------------------------------------------------

Solution:
---------
solution: add "+0"

--------------------------------------------------------------------------