Issue Details (XML | Word | Printable)

Key: CORE-6251
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adriano dos Santos Fernandes
Reporter: Pavel Zotov
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.
Firebird Core

Regression: crash when built-in function LEFT() or RIGHT() missed 2nd argument (number of characters to be taken).

Created: 19/Feb/20 10:25 AM   Updated: 20/Feb/20 04:24 AM
Component/s: None
Affects Version/s: 4.0 Beta 1, 3.0.5
Fix Version/s: 4.0 Beta 2, 3.0.6

QA Status: Done successfully

 Description  « Hide
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) );

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() ).

REMOTE INTERFACE/gds__detach: Unsuccesful detach from database.
Uncommitted work may have been lost.
Error writing data to the connection.

Stack traces:

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

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.