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
fd7ad7f1
Commit
fd7ad7f1
authored
Aug 12, 2005
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/usr/home/bar/mysql-4.1.b12351
parents
15ba37d4
e6f96b49
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
mysql-test/r/func_system.result
mysql-test/r/func_system.result
+15
-0
mysql-test/t/func_system.test
mysql-test/t/func_system.test
+12
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-0
No files found.
mysql-test/r/func_system.result
View file @
fd7ad7f1
...
@@ -68,6 +68,21 @@ drop table t1;
...
@@ -68,6 +68,21 @@ drop table t1;
select TRUE,FALSE,NULL;
select TRUE,FALSE,NULL;
TRUE FALSE NULL
TRUE FALSE NULL
1 0 NULL
1 0 NULL
create table t1 (c1 char(5)) character set=latin1;
insert into t1 values('row 1');
insert into t1 values('row 2');
insert into t1 values('row 3');
select concat(user(), '--', c1) from t1;
concat(user(), '--', c1)
root@localhost--row 1
root@localhost--row 2
root@localhost--row 3
select concat(database(), '--', c1) from t1;
concat(database(), '--', c1)
test--row 1
test--row 2
test--row 3
drop table t1;
create table t1 (a char(10)) character set latin1;
create table t1 (a char(10)) character set latin1;
select * from t1 where a=version();
select * from t1 where a=version();
a
a
...
...
mysql-test/t/func_system.test
View file @
fd7ad7f1
...
@@ -31,6 +31,18 @@ drop table t1;
...
@@ -31,6 +31,18 @@ drop table t1;
select
TRUE
,
FALSE
,
NULL
;
select
TRUE
,
FALSE
,
NULL
;
#
# Bug#12351: CONCAT with USER()/DATEBASE() and
# a constant and a column gets strange results
#
create
table
t1
(
c1
char
(
5
))
character
set
=
latin1
;
insert
into
t1
values
(
'row 1'
);
insert
into
t1
values
(
'row 2'
);
insert
into
t1
values
(
'row 3'
);
select
concat
(
user
(),
'--'
,
c1
)
from
t1
;
select
concat
(
database
(),
'--'
,
c1
)
from
t1
;
drop
table
t1
;
#
#
# Bug#8291 Illegal collation mix with USER() function
# Bug#8291 Illegal collation mix with USER() function
#
#
...
...
sql/item_strfunc.cc
View file @
fd7ad7f1
...
@@ -1562,6 +1562,7 @@ Item *Item_func_sysconst::safe_charset_converter(CHARSET_INFO *tocs)
...
@@ -1562,6 +1562,7 @@ Item *Item_func_sysconst::safe_charset_converter(CHARSET_INFO *tocs)
return
NULL
;
return
NULL
;
}
}
conv
->
str_value
.
copy
();
conv
->
str_value
.
copy
();
conv
->
str_value
.
shrink_to_length
();
return
conv
;
return
conv
;
}
}
...
...
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