Regression: crash when built-in function LEFT() or RIGHT() missed 2nd argument (number of characters to be taken). ------------------------------------------------------------------------------------------------------------------
Key: CORE-6251 URL: http://tracker.firebirdsql.org/browse/CORE-6251 Project: Firebird Core Issue Type: Bug Affects Versions: 3.0.5, 4.0 Beta 1 Reporter: Pavel Zotov Scenario to reproduce: ====== set bail on; shell del c:\temp\tmp4test.fdb 2>nul; create database 'localhost:c:\temp\tmp4test.fdb'; show version; recreate table test( s varchar(10) ); commit; set echo on; connect 'localhost:c:\temp\tmp4test.fdb'; select 1 as z from test f where right( f.s ) = '1'; ======= Console output: ======= Statement failed, SQLSTATE = 08006 Error reading data from the connection. ======= (the same for LEFT(); but not for SUBSTRING() ). firebird.log: ===== REMOTE INTERFACE/gds__detach: Unsuccesful detach from database. Uncommitted work may have been lost. Error writing data to the connection. send_packet/send ===== Stack traces: https://drive.google.com/open?id=1EIWC3sxGJf1fc2AMLjKrC5o6CuymrZPF PS. Checked on: WI-V3.0.6.33249; WI-T4.0.0.1777 Expected (WI-V2.5.9.27149): Statement failed, SQLSTATE = 39000 function LEFT could not be matched -- 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