Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong result for RIGHT(UTF8 varchar) [CORE3277] #3645

Closed
firebird-automations opened this issue Dec 14, 2010 · 9 comments
Closed

Wrong result for RIGHT(UTF8 varchar) [CORE3277] #3645

firebird-automations opened this issue Dec 14, 2010 · 9 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: 1g0r (1g0r)

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

Commits: cdd8620 1a1e892

@firebird-automations
Copy link
Collaborator Author

Modified by: 1g0r (1g0r)

description: 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

=>

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 <BR>
========== ========== ==========
АБВГД АБ

RIGHT() returns an empty string

@firebird-automations
Copy link
Collaborator Author

Modified by: 1g0r (1g0r)

description: 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 <BR>
========== ========== ==========
АБВГД АБ

RIGHT() returns an empty string

=>

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

@firebird-automations
Copy link
Collaborator Author

Modified by: 1g0r (1g0r)

security: Developers [ 10012 ] =>

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Confirmed for both 2.5.0 and 2.5.1.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: 1g0r (1g0r)

description: 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

=>

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5.1 [ 10333 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment