Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
49be919a
Commit
49be919a
authored
Sep 11, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged from 4.1
parent
8de4865a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
mysql-test/r/analyse.result
mysql-test/r/analyse.result
+6
-0
mysql-test/t/analyse.test
mysql-test/t/analyse.test
+8
-7
No files found.
mysql-test/r/analyse.result
View file @
49be919a
...
...
@@ -109,3 +109,9 @@ select * from t1 procedure analyse();
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
test.t1.df 1.1 2.2 8 8 0 0 1.650000000 0.302500000 ENUM('1.1','2.2') NOT NULL
drop table t1;
create table t1 (d double);
insert into t1 values (100000);
select * from t1 procedure analyse (1,1);
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
test.t1.d 100000 100000 6 6 0 0 100000 0 MEDIUMINT(6) UNSIGNED NOT NULL
drop table t1;
mysql-test/t/analyse.test
View file @
49be919a
...
...
@@ -48,6 +48,14 @@ insert into t1 values ('abc'),('abc\'def\\hij\"klm\0opq'),('\''),('\"'),('\\'),(
select
*
from
t1
procedure
analyse
();
drop
table
t1
;
#decimal-related test
create
table
t1
(
df
decimal
(
5
,
1
));
insert
into
t1
values
(
1.1
);
insert
into
t1
values
(
2.2
);
select
*
from
t1
procedure
analyse
();
drop
table
t1
;
#
# Bug#10716 - Procedure Analyse results in wrong values for optimal field type
#
...
...
@@ -59,10 +67,3 @@ drop table t1;
# End of 4.1 tests
#decimal-related test
create
table
t1
(
df
decimal
(
5
,
1
));
insert
into
t1
values
(
1.1
);
insert
into
t1
values
(
2.2
);
select
*
from
t1
procedure
analyse
();
drop
table
t1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment