Subject | Re: [firebird-support] Issues in string indexing |
---|---|
Author | Christian Danner |
Post date | 2006-02-15T21:51:45Z |
Hi,
AFAIK VARCHAR() as well as CHAR() values are stored and returned
correctly without truncating or adding spaces. The 'oddity' with
UNIQUE KEY constraints relates to the SQL standard, which dictates the
removal of trailing spaces before comparison, so that 'abc' and 'abc '
are evaluated as equal and provoke a UNIQUE KEY violation.
Regards,
Christian
AFAIK VARCHAR() as well as CHAR() values are stored and returned
correctly without truncating or adding spaces. The 'oddity' with
UNIQUE KEY constraints relates to the SQL standard, which dictates the
removal of trailing spaces before comparison, so that 'abc' and 'abc '
are evaluated as equal and provoke a UNIQUE KEY violation.
Regards,
Christian