Skip to content

field lengths differ across many tables #10869

Closed
@steros

Description

@steros

Preconditions

  1. any Magento 2 version
  2. have no telephone validation except than it's required

Steps to reproduce

  1. place an order
  2. enter a very wide telephone number (+20 characters)
  3. order

Expected result

  1. the very long telephone number should appear in the database as the field is 255 characters long in sales_order_address

Actual result

  1. the telephone number gets cut off after 20 characters as the quote_order_address field is just set to 20 characters VARCHAR

Fix

See #10868
Raise the characters in quote_order_address to 255 VARCHAR as in sales_order_address

Further comment

I found numerous field lengths to be different across many tables. Thus strings get cut off.
In my case the "telephone" was cut off as someone set it to be just 20 characters in the quote_address table despite it being 255 characters wide in the sales_order_address table.
There are many other fields differing.

Someone seriously needs to check this! Unfortunately I do not have enough knowledge about all the fields.

In my case our customers want to enter not one phone number but sometimes their landline and mobile phone number into the telephone field. The field is not validated against any format.

It seems this is across any version.

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions