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-issue-importer opened this issue Dec 14, 2010 · 9 comments
Closed

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

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

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 14, 2010

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 14, 2010

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 14, 2010

Modified by: 1g0r (1g0r)

security: Developers [ 10012 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 14, 2010

Commented by: @dyemanov

Confirmed for both 2.5.0 and 2.5.1.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 14, 2010

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 15, 2010

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 16, 2010

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 4, 2011

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 29, 2015

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants