Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-31540

Cursor protocol returns incorrect metadata for group_concat()

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4(EOL), 10.5, 10.6, 10.9(EOL), 10.10(EOL), 11.0(EOL), 11.1(EOL), 11.2(EOL)
    • 10.5, 10.6
    • None
    • None

    Description

      Testcase:

      create table t1 (f1 int unsigned, f2 varchar(255));
      insert into t1 values (1,repeat('a',255)),(2,repeat('b',255));
      --enable_metadata
      select f2,group_concat(f1) from t1 group by f2;
      --disable_metadata
      drop table t1;
      

      Expected result:

      Catalog	Database	Table	Table_alias	Column	Column_alias	Type	Length	Max length	Is_null	Flags	Decimals	Charsetnr
      def	test	t1	t1	f2	f2	253	255	255	Y	0	0	8
      def					group_concat(f1)	252	1048576	1	Y	0	0	8
      

      Actual result:

      Catalog	Database	Table	Table_alias	Column	Column_alias	Type	Length	Max length	Is_null	Flags	Decimals	Charsetnr
      def	test	t1	t1	f2	f2	253	255	255	Y	0	0	8
      def					group_concat(f1)	252	16777215	1	Y	16	0	8
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              lstartseva Lena Startseva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.