Varchar fields are not binary, blobs are.
ryan
> Hi & Help!
>
> I would like to store some short binary data (encrypted). I used a
> varchar(24) binary field for this.
> But it seems that MySQL cuts white-spaces from the end when storing the
> data in the table. When the encrypted string now has a white-space at
> end, MySQL will cut it and this will result in a wrong decryption (next
> time when the string is read and decrypted).
>
> When using TinyBlob instead of varchar binary, all works fine. Is this a
> "feature" of varchar binary? In my opinion, binary data shouldn't be
> trimmed!
>
> Please answer me via mail as I don't receive the mailing list.
> Thanks for your support!
>
> ... tobias wiersch
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php