Bug #26799 Char and binary types without padding/stripping

Submitted: 2 Mar 2007 16:02 Modified: 10 Oct 2008 12:01
Reporter: Olaf van der Spek (Basic Quality Contributor) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Data Types Severity:S4 (Feature request)
Version:* OS:Any (*)
Assigned to: CPU Architecture:Any
Tags: qc

[2 Mar 2007 16:02] Olaf van der Spek
Description:
Could you add char and binary types that are not padded/stripped?

> When BINARY values are stored, they are right-padded with the pad value to the specified length.

> For VARBINARY, there is no padding on insert and no bytes are stripped on select.

How to repeat:
-
[3 Mar 2007 19:39] Valeriy Kravchuk
Thank you for a reasonable feature request.
[10 Oct 2008 11:35] Alexander Barkov
Why don't you use VARCHAR and VARBINARY data types?

They are neither padding nor stripping.
[10 Oct 2008 12:01] Olaf van der Spek
Because they're variable width instead of fixed width.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.