Some PSQL constructions may lead to exceptions report wrong line/column -----------------------------------------------------------------------
Key: CORE-6403 URL: http://tracker.firebirdsql.org/browse/CORE-6403 Project: Firebird Core Issue Type: Bug Components: Engine Affects Versions: 3.0.6, 4.0 Beta 2 Reporter: Adriano dos Santos Fernandes Example 1: execute block as declare n integer = 0; begin while (1 / n > 0) do begin n = n - 1; end end! 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. -At block line: 5, col: 5 If initial value of N variable is changed to 1, then error is: -At block line: 8, col: 9 ----------- Example 2: execute block as declare n integer = 0; declare x integer; begin for select 1 / :n from rdb$database union all select 1 / :n from rdb$database into x do begin n = n - 1; end end! 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. -At block line: 6, col: 5 If initial value of N variable is changed to 1, then error is: -At block line: 9, col: 9 -- 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 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel