Integer divide by zero.
-----------------------

                 Key: CORE-4494
                 URL: http://tracker.firebirdsql.org/browse/CORE-4494
             Project: Firebird Core
          Issue Type: Bug
    Affects Versions: 3.0 Alpha 2
         Environment: Integer divide by zero.  The code attempted to divide an 
integer value by an integer divisor of zero.
            Reporter: hearts


select
    id,
    department,
    salary1,
    salary1 / sum(salary1) OVER () percent1
    salary,
    salary / sum(salary) OVER () percent2
  from employee
  order by id;

IF  sum(salary1) = 0 THEN 
arithmetic exception, numeric overflow, or string truncation.
Integer divide by zero.  The code attempted to divide an integer value by an 
integer divisor of zero.
      

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to