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
27dacdc5
Commit
27dacdc5
authored
Aug 08, 2005
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/home/bar/mysql-4.1.b10892
into mysql.com:/usr/home/bar/mysql-5.0
parents
8e09db01
8545cf92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
mysql-test/t/grant.test
mysql-test/t/grant.test
+7
-0
sql/item.cc
sql/item.cc
+8
-4
No files found.
mysql-test/t/grant.test
View file @
27dacdc5
...
@@ -480,4 +480,11 @@ flush privileges;
...
@@ -480,4 +480,11 @@ flush privileges;
delete
from
tables_priv
where
host
=
''
and
user
=
'mysqltest_1'
;
delete
from
tables_priv
where
host
=
''
and
user
=
'mysqltest_1'
;
flush
privileges
;
flush
privileges
;
#
# Bug #10892 user variables not auto cast for comparisons
# Check that we don't get illegal mix of collations
#
set
@
user123
=
"non-existent"
;
select
*
from
mysql
.
db
where
user
=@
user123
;
# End of 4.1 tests
# End of 4.1 tests
sql/item.cc
View file @
27dacdc5
...
@@ -1016,14 +1016,18 @@ bool DTCollation::aggregate(DTCollation &dt, uint flags)
...
@@ -1016,14 +1016,18 @@ bool DTCollation::aggregate(DTCollation &dt, uint flags)
;
// Do nothing
;
// Do nothing
}
}
else
if
((
flags
&
MY_COLL_ALLOW_SUPERSET_CONV
)
&&
else
if
((
flags
&
MY_COLL_ALLOW_SUPERSET_CONV
)
&&
derivation
<
dt
.
derivation
&&
collation
->
state
&
MY_CS_UNICODE
&&
collation
->
state
&
MY_CS_UNICODE
)
(
derivation
<
dt
.
derivation
||
(
derivation
==
dt
.
derivation
&&
!
(
dt
.
collation
->
state
&
MY_CS_UNICODE
))))
{
{
// Do nothing
// Do nothing
}
}
else
if
((
flags
&
MY_COLL_ALLOW_SUPERSET_CONV
)
&&
else
if
((
flags
&
MY_COLL_ALLOW_SUPERSET_CONV
)
&&
dt
.
derivation
<
derivation
&&
dt
.
collation
->
state
&
MY_CS_UNICODE
&&
dt
.
collation
->
state
&
MY_CS_UNICODE
)
(
dt
.
derivation
<
derivation
||
(
dt
.
derivation
==
derivation
&&
!
(
collation
->
state
&
MY_CS_UNICODE
))))
{
{
set
(
dt
);
set
(
dt
);
}
}
...
...
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