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
712f4fb0
Commit
712f4fb0
authored
Jul 29, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lot's of small changes
parent
421a8a49
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
59 deletions
+62
-59
mysql-test/r/olap.result
mysql-test/r/olap.result
+55
-55
sql/sql_delete.cc
sql/sql_delete.cc
+1
-1
sql/sql_olap.cc
sql/sql_olap.cc
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+5
-2
No files found.
mysql-test/r/olap.result
View file @
712f4fb0
...
...
@@ -27,30 +27,30 @@ TV India 1999 100
TV India 2000 200
TV United States 1999 150
TV United States 2000 150
Calculator India
0
75
Calculator United States
0
200
Computer India
0
2400
Computer United States
0
4500
TV India
0
300
TV United States
0
300
Calculator
A
LL 1999 50
Calculator
A
LL 2000 225
Computer
A
LL 1999 2700
Computer
A
LL 2000 4200
TV
A
LL 1999 250
TV
A
LL 2000 350
A
LL India 1999 1300
A
LL India 2000 1475
A
LL United States 1999 1700
A
LL United States 2000 3300
Calculator
ALL 0
275
Computer
ALL 0
6900
TV
ALL 0
600
ALL India 0
2775
ALL United States 0
5000
ALL A
LL 1999 3000
ALL A
LL 2000 4775
ALL ALL 0
7775
Calculator India
NULL
75
Calculator United States
NULL
200
Computer India
NULL
2400
Computer United States
NULL
4500
TV India
NULL
300
TV United States
NULL
300
Calculator
NU
LL 1999 50
Calculator
NU
LL 2000 225
Computer
NU
LL 1999 2700
Computer
NU
LL 2000 4200
TV
NU
LL 1999 250
TV
NU
LL 2000 350
NU
LL India 1999 1300
NU
LL India 2000 1475
NU
LL United States 1999 1700
NU
LL United States 2000 3300
Calculator
NULL NULL
275
Computer
NULL NULL
6900
TV
NULL NULL
600
NULL India NULL
2775
NULL United States NULL
5000
NULL NU
LL 1999 3000
NULL NU
LL 2000 4775
NULL NULL NULL
7775
explain select product, country , year, sum(profit) from sales group by product, country, year with cube;
table type possible_keys key key_len ref rows Extra
sales ALL NULL NULL NULL NULL 14 Using temporary; Using filesort
...
...
@@ -74,13 +74,13 @@ TV India 1999 100
TV India 2000 200
TV United States 1999 150
TV United States 2000 150
A
LL India 1999 1300
A
LL India 2000 1475
A
LL United States 1999 1700
A
LL United States 2000 3300
ALL A
LL 1999 3000
ALL A
LL 2000 4775
ALL ALL 0
7775
NU
LL India 1999 1300
NU
LL India 2000 1475
NU
LL United States 1999 1700
NU
LL United States 2000 3300
NULL NU
LL 1999 3000
NULL NU
LL 2000 4775
NULL NULL NULL
7775
explain select product, country , year, sum(profit) from sales group by product, country, year with rollup;
table type possible_keys key key_len ref rows Extra
sales ALL NULL NULL NULL NULL 14 Using temporary; Using filesort
...
...
@@ -100,30 +100,30 @@ TV India 1999 100
TV India 2000 200
TV United States 1999 150
TV United States 2000 150
Calculator India
0
75
Calculator United States
0
200
Computer India
0
2400
Computer United States
0
4500
TV India
0
300
TV United States
0
300
Calculator
A
LL 1999 50
Calculator
A
LL 2000 225
Computer
A
LL 1999 2700
Computer
A
LL 2000 4200
TV
A
LL 1999 250
TV
A
LL 2000 350
A
LL India 1999 1300
A
LL India 2000 1475
A
LL United States 1999 1700
A
LL United States 2000 3300
Calculator
ALL 0
275
Computer
ALL 0
6900
TV
ALL 0
600
ALL India 0
2775
ALL United States 0
5000
ALL A
LL 1999 3000
ALL A
LL 2000 4775
ALL ALL 0
7775
Calculator India
NULL
75
Calculator United States
NULL
200
Computer India
NULL
2400
Computer United States
NULL
4500
TV India
NULL
300
TV United States
NULL
300
Calculator
NU
LL 1999 50
Calculator
NU
LL 2000 225
Computer
NU
LL 1999 2700
Computer
NU
LL 2000 4200
TV
NU
LL 1999 250
TV
NU
LL 2000 350
NU
LL India 1999 1300
NU
LL India 2000 1475
NU
LL United States 1999 1700
NU
LL United States 2000 3300
Calculator
NULL NULL
275
Computer
NULL NULL
6900
TV
NULL NULL
600
NULL India NULL
2775
NULL United States NULL
5000
NULL NU
LL 1999 3000
NULL NU
LL 2000 4775
NULL NULL NULL
7775
Calculator India 2000 75
Calculator United States 1999 50
Calculator United States 2000 150
...
...
sql/sql_delete.cc
View file @
712f4fb0
...
...
@@ -227,7 +227,7 @@ multi_delete::multi_delete(THD *thd_arg, TABLE_LIST *dt,
table
->
used_keys
=
0
;
tempfiles
[
counter
]
=
new
Unique
(
refposcmp2
,
(
void
*
)
&
table
->
file
->
ref_length
,
table
->
file
->
ref_length
,
table
->
file
->
ref_length
+
1
,
MEM_STRIP_BUF_SIZE
);
}
}
...
...
sql/sql_olap.cc
View file @
712f4fb0
...
...
@@ -35,7 +35,7 @@ static int make_new_olap_select(LEX *lex, SELECT_LEX *select_lex, List<Item> new
{
THD
*
thd
=
current_thd
;
Item
*
item
,
*
new_item
;
Item_
string
*
constant
=
new
Item_string
(
"ALL"
,
3
);
Item_
null
*
constant
=
new
Item_null
(
"ALL"
);
SELECT_LEX
*
new_select
=
(
SELECT_LEX
*
)
thd
->
memdup
((
char
*
)
select_lex
,
sizeof
(
*
select_lex
));
if
(
!
new_select
)
...
...
sql/sql_select.cc
View file @
712f4fb0
...
...
@@ -4037,9 +4037,12 @@ static bool create_myisam_tmp_table(TABLE *table,TMP_TABLE_PARAM *param,
}
MI_CREATE_INFO
create_info
;
bzero
((
char
*
)
&
create_info
,
sizeof
(
create_info
));
if
((
options
&
(
OPTION_BIG_TABLES
|
SELECT_SMALL_RESULT
))
==
OPTION_BIG_TABLES
)
if
((
options
&
(
OPTION_BIG_TABLES
|
SELECT_SMALL_RESULT
))
!=
SELECT_SMALL_RESULT
)
{
create_info
.
data_file_length
=
~
(
ulonglong
)
0
;
create_info
.
max_rows
=
~
(
ulonglong
)
0
;
}
if
((
error
=
mi_create
(
table
->
real_name
,
table
->
keys
,
&
keydef
,
(
uint
)
(
param
->
recinfo
-
param
->
start_recinfo
),
...
...
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