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

Illegal characters in field name crashes database [CORE1251] #1675

Open
firebird-automations opened this issue May 9, 2007 · 3 comments
Open

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Poul Dige (tabulex)

Bug encountered with IBExpert and Firebird-2.0.1.12855-1 embedded server.
Creating a new table (NEW_TABLE) and then inputting an illegal character (e.g. danish letters ?,?,?) in the default fields field name crashes the program with the message:

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

Afterwards the rdb$relation_fields.rdb$field_name is impossible to address for the table.

Running the following SQL will fix the problem:

update rdb$relation_fields
set rdb$field_name = 'NewFieldName'
where rdb$relation_name = 'NEW_TABLE'

However, I guess illegal characters should be caught by the engine before going into the rdb$relation_fields.rdb$field_name :)

@firebird-automations
Copy link
Collaborator Author

Modified by: Poul Dige (tabulex)

description: Trying to input an illegal character (e.g. danish letters ?,?,?) in a field name crashes the program with

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

Afterwards the rdb$relation_fields.rdb$field_name is impossible to address for the table.

Running the following SQL will fix the problem:

update rdb$relation_fields
set rdb$field_name = 'NewFieldName'
where rdb$relation_name = 'NEW_TABLE'

However, I guess illegal characters should be caught by the engine before going into the rdb$relation_fields.rdb$field_name :)

=>

Bug encountered with IBExpert and Firebird-2.0.1.12855-1 embedded server.
Creating a new table (NEW_TABLE) and then inputting an illegal character (e.g. danish letters ?,?,?) in the default fields field name crashes the program with the message:

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

Afterwards the rdb$relation_fields.rdb$field_name is impossible to address for the table.

Running the following SQL will fix the problem:

update rdb$relation_fields
set rdb$field_name = 'NewFieldName'
where rdb$relation_name = 'NEW_TABLE'

However, I guess illegal characters should be caught by the engine before going into the rdb$relation_fields.rdb$field_name :)

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

> Creating a new table (NEW_TABLE) and then inputting an illegal character (e.g. danish letters ?,?,?) in the default fields field name crashes the program with the message:
>
> Arithmetic overflow or division by zero has occurred.
> arithmetic exception, numeric overflow, or string truncation.
> Cannot transliterate character between character sets.
Do it really crashes after this errors?
What's the crash message?

What is your connection charset?

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 12060 ] => Firebird [ 15561 ]

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