8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 04:03:03 +01:00

Fixed an UCHAR overflow causing wrong entries in RDB$TYPES.

This commit is contained in:
dimitr 2007-09-28 12:54:51 +00:00
parent 88f16e0f15
commit 2567451f5e

View File

@ -160,14 +160,14 @@ static const int relfields[] =
struct rtyp { struct rtyp {
const TEXT* rtyp_name; const TEXT* rtyp_name;
SSHORT rtyp_value; SSHORT rtyp_value;
UCHAR rtyp_field; int rtyp_field;
}; };
#define TYPE(text, type, field) { text, type, (UCHAR) field }, #define TYPE(text, type, field) { text, type, field },
#define CHARSET(name, cs_id, coll_id, bytes, num, s1, s2, attr) \ #define CHARSET(name, cs_id, coll_id, bytes, num, s1, s2, attr) \
{(name), (cs_id), (UCHAR) nam_charset_name}, {name, cs_id, nam_charset_name},
#define CSALIAS(name, cs_id) {(name), (cs_id), (UCHAR) nam_charset_name}, #define CSALIAS(name, cs_id) {name, cs_id, nam_charset_name},
#define COLLATION(name, base_name, cc_id, cs_id, coll_id, sym, attr, specific_attr) #define COLLATION(name, base_name, cc_id, cs_id, coll_id, sym, attr, specific_attr)
#define END_CHARSET #define END_CHARSET