Issue Details (XML | Word | Printable)

Key: CORE-3277
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adriano dos Santos Fernandes
Reporter: 1g0r
Votes: 0
Watchers: 0
Operations

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

Wrong result for RIGHT(UTF8 varchar)

Created: 14/Dec/10 03:41 PM   Updated: 04/Feb/11 01:23 PM
Component/s: Charsets/Collation
Affects Version/s: 2.5.0
Fix Version/s: 2.5.1, 3.0 Alpha 1

Time Tracking:
Not Specified

Environment: Windows XP SP3

Planning Status: Unspecified


 Description  « Hide
example of the issue:

{{SELECT VAL,
  LEFT(VAL, 2),
 RIGHT(VAL, 2)
  FROM (SELECT CAST('АБВГД' AS VARCHAR(10) CHARACTER SET UTF8) VAL
          FROM RDB$DATABASE);}}

||VAL||LEFT||RIGHT||
|АБВГД|АБ| |

RIGHT() returns an empty string

 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dmitry Yemanov added a comment - 14/Dec/10 07:34 PM
Confirmed for both 2.5.0 and 2.5.1.