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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bc040b55
Commit
bc040b55
authored
21 years ago
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/mysql-3.23
into sanja.is.com.ua:/home/bell/mysql/work-rand-3.23
parents
5585d1b6
b283e08c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
mysql-test/r/select.result
mysql-test/r/select.result
+1
-0
mysql-test/t/select.test
mysql-test/t/select.test
+16
-1
sql/sql_select.cc
sql/sql_select.cc
+2
-0
No files found.
mysql-test/r/select.result
View file @
bc040b55
...
...
@@ -1793,3 +1793,4 @@ Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_par
t2 0 PRIMARY 1 auto A 1199 NULL NULL
t2 0 fld1 1 fld1 A 1199 NULL NULL
t2 1 fld3 1 fld3 A NULL NULL NULL
1
This diff is collapsed.
Click to expand it.
mysql-test/t/select.test
View file @
bc040b55
...
...
@@ -1712,8 +1712,23 @@ show full columns from t2 from test like 'f%';
show
full
columns
from
t2
from
test
like
's%'
;
show
keys
from
t2
;
#
# random in WHERE clause
#
drop
table
t1
;
CREATE
TABLE
t1
(
id
mediumint
(
8
)
unsigned
NOT
NULL
auto_increment
,
pseudo
varchar
(
35
)
NOT
NULL
default
''
,
PRIMARY
KEY
(
id
),
UNIQUE
KEY
pseudo
(
pseudo
)
);
INSERT
INTO
t1
(
pseudo
)
VALUES
(
'test'
);
INSERT
INTO
t1
(
pseudo
)
VALUES
(
'test1'
);
SELECT
1
from
t1
where
rand
()
>
2
;
#
# Drop the test tables
#
drop
table
t4
,
t3
,
t2
,
t1
;
drop
table
t4
,
t3
,
t2
,
t1
;
This diff is collapsed.
Click to expand it.
sql/sql_select.cc
View file @
bc040b55
...
...
@@ -2257,6 +2257,8 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
{
JOIN_TAB
*
tab
=
join
->
join_tab
+
i
;
table_map
current_map
=
tab
->
table
->
map
;
if
(
i
==
join
->
tables
-
1
)
current_map
|=
RAND_TABLE_BIT
;
bool
use_quick_range
=
0
;
used_tables
|=
current_map
;
...
...
This diff is collapsed.
Click to expand it.
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