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

SELECT with LIKE raises "Cannot transliterate character between character sets" [CORE3083] #3462

Closed
firebird-automations opened this issue Jul 27, 2010 · 14 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Claudio Modanese (claudiosinesy)

Attachments:
DATABASE.zip

In the attached DB making a select query with like option I receive the following error:

"
Arithmetic overflow or division by zero has occurred.
arithmetic exception, numeric overflow, or string truncation.
Cannot transliterate character between character sets.
"

The query to reproduce the problem is the following:

select * from person
where name like 'Müller'

Instead the following one is ok.
select * from person
where name = 'Müller'

I connect to the DB using the UNICODE_FSS character set

@firebird-automations
Copy link
Collaborator Author

Commented by: Claudio Modanese (claudiosinesy)

Attached the DB to reproduce the error on the issue

@firebird-automations
Copy link
Collaborator Author

Modified by: Claudio Modanese (claudiosinesy)

Attachment: DATABASE.zip [ 11692 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Please try with the latest snapshot build of v2.1.4.

@firebird-automations
Copy link
Collaborator Author

Commented by: Claudio Modanese (claudiosinesy)

I've try with v. 2.1.4... same error.

@firebird-automations
Copy link
Collaborator Author

Modified by: Claudio Modanese (claudiosinesy)

Version: 2.1.4 [ 10361 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

summary: Cannot transliterate character between character sets on select with like => SELECT with LIKE raises "Cannot transliterate character between character sets"

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

What application did you use to connect?

Are you *sure* the application works with actual UNICODE_FSS/UTF-8 data?

@firebird-automations
Copy link
Collaborator Author

Commented by: Claudio Modanese (claudiosinesy)

I've try with EMS, FlameRobin and also an application that I've developped using IBO Objects.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Database has invalid unicode data.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Won't Fix [ 2 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Commented by: Claudio Modanese (claudiosinesy)

What does it mean "Database has invalid unicode data?"

The db attached was created with the following sql script:

CREATE DATABASE 'c:\database.gdb'
USER 'SYSDBA' PASSWORD 'masterkey'
PAGE_SIZE = 1024
DEFAULT CHARACTER SET UNICODE_FSS

CREATE TABLE TABLE1 (
FIELD1 VARCHAR(50) CHARACTER SET UNICODE_FSS
COLLATE UNICODE_FSS
)

The following query give me the error:

select * from TABLE1 where field1 like 'ä'

Where is the error?

@firebird-automations
Copy link
Collaborator Author

Commented by: Claudio Modanese (claudiosinesy)

Using firebird 1.5 the query will crash the fbserver.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Please ask in a support list about client character set and actual data encoding. They must match.

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

No branches or pull requests

1 participant