Details
-
New Feature
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
Description
For the quick mode we need the option to limit width of the column for printing the data
current behavior makes interactive console unusable
Attachments
Issue Links
- blocks
-
MCOL-5587 Columnstore crashes/unstable on too large selects
-
- Closed
-
- causes
-
MDEV-34831 MDEV-34704 introduces a typo, --qick
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
After config option added
{code} [mariadb-client] quick {code} simple query {code} create table t(a text) engine; insert into t values('xyz'); select * from t; {code} produces stream of dashes that make console unusable {code} MariaDB [test]> select * from t; +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- {code} in the print table code {code} static void print_table_data(MYSQL_RES *result) { String separator(256); MYSQL_ROW cur; bool *num_flag; num_flag=(bool*) my_alloca(sizeof(bool)*mysql_num_fields(result)); if (column_types_flag) { print_field_types(result); if (!mysql_num_rows(result)) { my_afree((uchar*) num_flag); return; } mysql_field_seek(result,0); } separator.copy("+",1,charset_info); while (MYSQL_FIELD *field= mysql_fetch_field(result)) { uint length= column_names ? field->name_length : 0; if (quick) length= MY_MAX(length,field->length); else length= MY_MAX(length,field->max_length); if (length < 4 && !IS_NOT_NULL(field->flags)) length=4; // Room for "NULL" {code} I could see the length calculated as MY_MAX(length,field->length); accepts the value of several thousands |
Priority | Major [ 3 ] | Critical [ 2 ] |
Affects Version/s | 10.6.18-14 [ 29820 ] |
Component/s | Server [ 14979 ] |
Component/s | Scripts & Clients [ 14977 ] |
Component/s | ColumnStore [ 15602 ] |
Labels | client |
Assignee | Oleksandr Byelkin [ sanja ] |
Component/s | ColumnStore [ 15602 ] | |
Component/s | Server [ 14979 ] | |
Fix Version/s | N/A [ 23617 ] | |
Assignee | Oleksandr Byelkin [ sanja ] | Sergei Golubchik [ serg ] |
Resolution | Not a Bug [ 6 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Issue Type | Bug [ 1 ] | New Feature [ 2 ] |
Description |
After config option added
{code} [mariadb-client] quick {code} simple query {code} create table t(a text) engine; insert into t values('xyz'); select * from t; {code} produces stream of dashes that make console unusable {code} MariaDB [test]> select * from t; +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- {code} in the print table code {code} static void print_table_data(MYSQL_RES *result) { String separator(256); MYSQL_ROW cur; bool *num_flag; num_flag=(bool*) my_alloca(sizeof(bool)*mysql_num_fields(result)); if (column_types_flag) { print_field_types(result); if (!mysql_num_rows(result)) { my_afree((uchar*) num_flag); return; } mysql_field_seek(result,0); } separator.copy("+",1,charset_info); while (MYSQL_FIELD *field= mysql_fetch_field(result)) { uint length= column_names ? field->name_length : 0; if (quick) length= MY_MAX(length,field->length); else length= MY_MAX(length,field->max_length); if (length < 4 && !IS_NOT_NULL(field->flags)) length=4; // Room for "NULL" {code} I could see the length calculated as MY_MAX(length,field->length); accepts the value of several thousands |
For the quick mode we need the option to limit width of the column for printing the data
current behavior makes interactive console unusable |
Resolution | Not a Bug [ 6 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Fix Version/s | 10.6 [ 24027 ] | |
Fix Version/s | N/A [ 23617 ] |
Assignee | Sergei Golubchik [ serg ] | Oleksandr Byelkin [ sanja ] |
Summary | Quick mode produces the bug for mariadb cliend | Quick mode produces the bug for mariadb client |
Component/s | Scripts & Clients [ 11002 ] | |
Component/s | Scripts & Clients [ 14977 ] | |
Fix Version/s | 11.7 [ 29815 ] | |
Fix Version/s | 10.6 [ 24027 ] | |
Key |
|
|
Affects Version/s | 10.6.18-14 [ 29820 ] | |
Project | MariaDB Enterprise [ 11500 ] | MariaDB Server [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Sergei Golubchik [ serg ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Oleksandr Byelkin [ sanja ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Ramesh Sivaraman [ JIRAUSER48189 ] |
Assignee | Ramesh Sivaraman [ JIRAUSER48189 ] | Oleksandr Byelkin [ sanja ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
issue.field.resolutiondate | 2024-08-27 14:36:25.0 | 2024-08-27 14:36:24.597 |
Fix Version/s | 11.7.0 [ 29912 ] | |
Fix Version/s | 11.7 [ 29815 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Fix Version/s | 10.5.27 [ 29902 ] | |
Fix Version/s | 11.7.0 [ 29912 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Fix Version/s | 10.6.20 [ 29903 ] | |
Fix Version/s | 10.11.10 [ 29904 ] | |
Fix Version/s | 11.4.4 [ 29907 ] | |
Fix Version/s | 11.6.2 [ 29908 ] | |
Fix Version/s | 11.7.1 [ 29913 ] |
Link |
This issue causes |
Fix Version/s | 11.7.1 [ 29913 ] |
commit 186aa192d1ffcd3bbcdc187d764434c0440cc39e (HEAD -> bb-11.6-MDEV-34704)
Author: Oleksandr Byelkin <sanja@mariadb.com>
Date: Mon Aug 5 16:16:09 2024 +0200
MDEV-34704 Quick mode produces the bug for mariadb client
--quick-max-column-width parameter added to limit field
width in --quick mode.