Subject | RE: [firebird-support] Re: Zero prefix results in primary key constraint violation |
---|---|
Author | Alan McDonald |
Post date | 2009-02-10T06:12:39Z |
> > >Why is that? The octet strings 01hex and 0100hex are clearly twoI think your cast to varchar will mean that the string will be truncated to
> > >different keys.
> > INSERT INTO test VALUES (
> > cast (ASCII_CHAR(1) || ASCII_CHAR(0) as varchar(16) character set
> octets))
2 char
try casting to CHAR(16)
Alan