Subject | Re: [firebird-support] Bug with character sets |
---|---|
Author | Dmitry Yemanov |
Post date | 2009-05-20T10:48:46Z |
Kjell Rilbe wrote:
padded when transmitted. They're stored padded and the padding character
is a proper part of the string (accordingly to the SQL standard, BTW).
The engine doesn't care how many non-spaces are there, so it cannot help
you with knowing N. The same goes for "characters actually used", as the
only fact it knows is that CHAR_LENGTH(CHAR(X)) == X, again regardless
of how many non-spaces are there.
Dmitry
>If your N means "bytes actually used", then you're wrong. CHARs are not
> The server *knows* N.
padded when transmitted. They're stored padded and the padding character
is a proper part of the string (accordingly to the SQL standard, BTW).
The engine doesn't care how many non-spaces are there, so it cannot help
you with knowing N. The same goes for "characters actually used", as the
only fact it knows is that CHAR_LENGTH(CHAR(X)) == X, again regardless
of how many non-spaces are there.
Dmitry