Issue Details (XML | Word | Printable)

Key: CORE-1927
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Adriano dos Santos Fernandes
Reporter: Kovalenko Dmitry
Votes: 0
Watchers: 1

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

sp_register_character_set can generate the negative RDB$CHARACTER_SET_ID

Created: 08/Jun/08 03:15 PM   Updated: 19/Jan/16 04:57 AM
Component/s: Charsets/Collation
Affects Version/s: 2.1.0
Fix Version/s: 2.5 Beta 1

QA Status: No test

 Description  « Hide
[from sp_register_character_set]

id = 255;

for select rdb$character_set_id
from rdb$character_sets
order by rdb$character_set_id desc
into :temp_id do
if (temp_id = id) then
id = id - 1;

RDB$CHARACTER_SETS::RDB$CHARACTER_SET_ID has no a verification of value

Also. I looked the data at RDB$TYPES. This table has the rows with equal data. It's correct?

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Adriano dos Santos Fernandes added a comment - 09/Jul/08 11:22 AM
Character sets don't load if there is no correspondent row in RDB$TYPES.

Kovalenko Dmitry added a comment - 21/Nov/08 01:50 PM

sp_register_character_set should jump over ID=127 (CS_dynamic) or no?