[MDEV-11190] VARIABLE_NAME and VARIABLE_VALUE in INFORMATION_SCHEMA.USER_VARIABLES are too short Created: 2016-10-31  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Plugins
Affects Version/s: 10.2
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-7331 information_schema.user_variables Closed

 Description   

Create Table: CREATE TEMPORARY TABLE `user_variables` (
  `VARIABLE_NAME` varchar(64) NOT NULL DEFAULT '',
  `VARIABLE_VALUE` varchar(2048) DEFAULT NULL,
  `VARIABLE_TYPE` varchar(64) NOT NULL DEFAULT '',
  `CHARACTER_SET_NAME` varchar(32) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=utf8

VARIABLE_NAME and VARIABLE_VALUE lengths are the same as in the tables for system variables. But unlike system variables, where we control the actual length for both, user variables don't seem to have any limit on the length of their names and values (as long as those are within max_allowed_packet). So, it's theoretically possible to have a variable with a longer name or, probably more likely, with a longer value, which will be truncated in the I_S table.


Generated at Thu Feb 08 07:48:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.