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
7205d371
Commit
7205d371
authored
Sep 12, 2005
by
timour@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/timka/mysql/src/5.0-virgin
into mysql.com:/home/timka/mysql/src/5.0-dbg
parents
afb613bd
6a528590
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
mysql-test/r/select.result
mysql-test/r/select.result
+10
-0
mysql-test/t/select.test
mysql-test/t/select.test
+12
-0
sql/sql_base.cc
sql/sql_base.cc
+1
-1
No files found.
mysql-test/r/select.result
View file @
7205d371
...
...
@@ -2912,3 +2912,13 @@ ERROR 23000: Column 'id' in from clause is ambiguous
SELECT id,t3.id FROM (t1 JOIN t2 ON (t2.id=t1.id)) LEFT JOIN t3 USING (id);
ERROR 23000: Column 'id' in from clause is ambiguous
drop table t1, t2, t3;
create table t1 (a int(10),b int(10));
create table t2 (a int(10),b int(10));
insert into t1 values (1,10),(2,20),(3,30);
insert into t2 values (1,10);
select * from t1 inner join t2 using (A);
a b b
1 10 10
select * from t1 inner join t2 using (a);
a b b
1 10 10
mysql-test/t/select.test
View file @
7205d371
...
...
@@ -2487,3 +2487,15 @@ SELECT id,t3.id FROM t1 JOIN t2 ON (t2.id=t1.id) LEFT JOIN t3 USING (id);
SELECT
id
,
t3
.
id
FROM
(
t1
JOIN
t2
ON
(
t2
.
id
=
t1
.
id
))
LEFT
JOIN
t3
USING
(
id
);
drop
table
t1
,
t2
,
t3
;
#
# Bug #13067 JOIN xxx USING is case sensitive
#
create
table
t1
(
a
int
(
10
),
b
int
(
10
));
create
table
t2
(
a
int
(
10
),
b
int
(
10
));
insert
into
t1
values
(
1
,
10
),(
2
,
20
),(
3
,
30
);
insert
into
t2
values
(
1
,
10
);
# both queries should produce the same result
select
*
from
t1
inner
join
t2
using
(
A
);
select
*
from
t1
inner
join
t2
using
(
a
);
sql/sql_base.cc
View file @
7205d371
...
...
@@ -3414,7 +3414,7 @@ test_if_string_in_list(const char *find, List<String> *str_list)
{
if
(
find_length
!=
curr_str
->
length
())
continue
;
if
(
!
strncmp
(
find
,
curr_str
->
ptr
(),
find_length
))
if
(
!
my_strcasecmp
(
system_charset_info
,
find
,
curr_str
->
ptr
()
))
return
TRUE
;
}
return
FALSE
;
...
...
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