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
b0a3c1c9
Commit
b0a3c1c9
authored
Mar 11, 2003
by
unknown
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
8218d49d
8162aec6
Changes
3
Show 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 @
b0a3c1c9
...
@@ -1793,3 +1793,4 @@ Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_par
...
@@ -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 PRIMARY 1 auto A 1199 NULL NULL
t2 0 fld1 1 fld1 A 1199 NULL NULL
t2 0 fld1 1 fld1 A 1199 NULL NULL
t2 1 fld3 1 fld3 A NULL NULL NULL
t2 1 fld3 1 fld3 A NULL NULL NULL
1
mysql-test/t/select.test
View file @
b0a3c1c9
...
@@ -1712,8 +1712,23 @@ show full columns from t2 from test like 'f%';
...
@@ -1712,8 +1712,23 @@ show full columns from t2 from test like 'f%';
show
full
columns
from
t2
from
test
like
's%'
;
show
full
columns
from
t2
from
test
like
's%'
;
show
keys
from
t2
;
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 the test tables
#
#
drop
table
t4
,
t3
,
t2
,
t1
;
drop
table
t4
,
t3
,
t2
,
t1
;
sql/sql_select.cc
View file @
b0a3c1c9
...
@@ -2257,6 +2257,8 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
...
@@ -2257,6 +2257,8 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
{
{
JOIN_TAB
*
tab
=
join
->
join_tab
+
i
;
JOIN_TAB
*
tab
=
join
->
join_tab
+
i
;
table_map
current_map
=
tab
->
table
->
map
;
table_map
current_map
=
tab
->
table
->
map
;
if
(
i
==
join
->
tables
-
1
)
current_map
|=
RAND_TABLE_BIT
;
bool
use_quick_range
=
0
;
bool
use_quick_range
=
0
;
used_tables
|=
current_map
;
used_tables
|=
current_map
;
...
...
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