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
d07945c2
Commit
d07945c2
authored
Apr 11, 2005
by
reggie@mdk10.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge rburnett@bk-internal.mysql.com:/home/bk/mysql-4.1
into mdk10.(none):/home/reggie/bk/mysql-4.1
parents
9506fb97
831a6124
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
47 additions
and
5 deletions
+47
-5
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
mysql-test/r/ctype_collate.result
mysql-test/r/ctype_collate.result
+13
-0
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+2
-0
mysql-test/r/union.result
mysql-test/r/union.result
+1
-1
mysql-test/t/ctype_collate.test
mysql-test/t/ctype_collate.test
+12
-0
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+1
-0
mysql-test/t/union.test
mysql-test/t/union.test
+1
-1
sql/item.cc
sql/item.cc
+10
-1
sql/item_create.cc
sql/item_create.cc
+1
-0
sql/sql_udf.cc
sql/sql_udf.cc
+5
-2
No files found.
BitKeeper/etc/logging_ok
View file @
d07945c2
...
...
@@ -8,6 +8,7 @@ Miguel@light.local
Sinisa@sinisa.nasamreza.org
WAX@sergbook.mysql.com
acurtis@pcgem.rdg.cyberkinetica.com
acurtis@xiphis.org
administrador@light.hegel.local
ahlentz@co3064164-a.rochd1.qld.optusnet.com.au
akishkin@work.mysql.com
...
...
mysql-test/r/ctype_collate.result
View file @
d07945c2
...
...
@@ -535,6 +535,19 @@ s2 CHAR(5) COLLATE latin1_swedish_ci);
SELECT * FROM t1 WHERE s1 = s2;
ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
DROP TABLE t1;
CREATE TABLE t1
(s1 CHAR(5) COLLATE latin1_german1_ci,
s2 CHAR(5) COLLATE latin1_swedish_ci,
s3 CHAR(5) COLLATE latin1_bin);
INSERT INTO t1 VALUES ('a','A','A');
SELECT * FROM t1 WHERE s1 = s2;
ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
SELECT * FROM t1 WHERE s1 = s3;
s1 s2 s3
SELECT * FROM t1 WHERE s2 = s3;
s1 s2 s3
a A A
DROP TABLE t1;
SET NAMES latin1;
CREATE TABLE t1
(s1 char(10) COLLATE latin1_german1_ci,
...
...
mysql-test/r/query_cache.result
View file @
d07945c2
...
...
@@ -299,6 +299,8 @@ select UNIX_TIMESTAMP() from t1;
UNIX_TIMESTAMP()
select USER() from t1;
USER()
select CURRENT_USER() from t1;
CURRENT_USER()
select benchmark(1,1) from t1;
benchmark(1,1)
explain extended select benchmark(1,1) from t1;
...
...
mysql-test/r/union.result
View file @
d07945c2
...
...
@@ -1103,7 +1103,7 @@ count(*)
drop table t1;
create table t2 (
a char character set latin1 collate latin1_swedish_ci,
b char character set latin1 collate latin1_
bin
);
b char character set latin1 collate latin1_
german1_ci
);
create table t1 as
(select a from t2) union
(select b from t2);
...
...
mysql-test/t/ctype_collate.test
View file @
d07945c2
...
...
@@ -158,6 +158,18 @@ SELECT * FROM t1 WHERE s1 = s2;
DROP
TABLE
t1
;
CREATE
TABLE
t1
(
s1
CHAR
(
5
)
COLLATE
latin1_german1_ci
,
s2
CHAR
(
5
)
COLLATE
latin1_swedish_ci
,
s3
CHAR
(
5
)
COLLATE
latin1_bin
);
INSERT
INTO
t1
VALUES
(
'a'
,
'A'
,
'A'
);
--
error
1267
SELECT
*
FROM
t1
WHERE
s1
=
s2
;
SELECT
*
FROM
t1
WHERE
s1
=
s3
;
SELECT
*
FROM
t1
WHERE
s2
=
s3
;
DROP
TABLE
t1
;
#
# Test that optimizer doesn't use indexes with wrong collation
#
...
...
mysql-test/t/query_cache.test
View file @
d07945c2
...
...
@@ -184,6 +184,7 @@ select LAST_INSERT_ID() from t1;
select
RAND
()
from
t1
;
select
UNIX_TIMESTAMP
()
from
t1
;
select
USER
()
from
t1
;
select
CURRENT_USER
()
from
t1
;
select
benchmark
(
1
,
1
)
from
t1
;
explain
extended
select
benchmark
(
1
,
1
)
from
t1
;
show
status
like
"Qcache_queries_in_cache"
;
...
...
mysql-test/t/union.test
View file @
d07945c2
...
...
@@ -641,7 +641,7 @@ drop table t1;
create
table
t2
(
a
char
character
set
latin1
collate
latin1_swedish_ci
,
b
char
character
set
latin1
collate
latin1_
bin
);
b
char
character
set
latin1
collate
latin1_
german1_ci
);
--
error
1271
create
table
t1
as
(
select
a
from
t2
)
union
...
...
sql/item.cc
View file @
d07945c2
...
...
@@ -474,8 +474,17 @@ bool DTCollation::aggregate(DTCollation &dt, uint flags)
set
(
0
,
DERIVATION_NONE
);
return
1
;
}
if
(
collation
->
state
&
MY_CS_BINSORT
)
{
return
0
;
}
else
if
(
dt
.
collation
->
state
&
MY_CS_BINSORT
)
{
set
(
dt
);
return
0
;
}
CHARSET_INFO
*
bin
=
get_charset_by_csname
(
collation
->
csname
,
MY_CS_BINSORT
,
MYF
(
0
));
MY_CS_BINSORT
,
MYF
(
0
));
set
(
bin
,
DERIVATION_NONE
);
}
}
...
...
sql/item_create.cc
View file @
d07945c2
...
...
@@ -306,6 +306,7 @@ Item *create_func_current_user()
char
buff
[
HOSTNAME_LENGTH
+
USERNAME_LENGTH
+
2
];
uint
length
;
thd
->
lex
->
safe_to_cache_query
=
0
;
length
=
(
uint
)
(
strxmov
(
buff
,
thd
->
priv_user
,
"@"
,
thd
->
priv_host
,
NullS
)
-
buff
);
return
new
Item_string
(
NullS
,
thd
->
memdup
(
buff
,
length
),
length
,
...
...
sql/sql_udf.cc
View file @
d07945c2
...
...
@@ -526,8 +526,11 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
tables
.
real_name
=
tables
.
alias
=
(
char
*
)
"func"
;
if
(
!
(
table
=
open_ltable
(
thd
,
&
tables
,
TL_WRITE
)))
goto
err
;
if
(
!
table
->
file
->
index_read_idx
(
table
->
record
[
0
],
0
,(
byte
*
)
udf_name
->
str
,
(
uint
)
udf_name
->
length
,
table
->
field
[
0
]
->
store
(
udf_name
->
str
,
udf_name
->
length
,
system_charset_info
);
table
->
file
->
extra
(
HA_EXTRA_RETRIEVE_ALL_COLS
);
if
(
!
table
->
file
->
index_read_idx
(
table
->
record
[
0
],
0
,
(
byte
*
)
table
->
field
[
0
]
->
ptr
,
table
->
key_info
[
0
].
key_length
,
HA_READ_KEY_EXACT
))
{
int
error
;
...
...
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