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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5c66abf0
Commit
5c66abf0
authored
Feb 25, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/10.0' into 10.0
parents
cbf8cdc2
4a3e94e0
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
96 additions
and
3 deletions
+96
-3
mysql-test/r/ctype_binary.result
mysql-test/r/ctype_binary.result
+6
-0
mysql-test/r/ctype_latin1.result
mysql-test/r/ctype_latin1.result
+6
-0
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+6
-0
mysql-test/r/selectivity_innodb.result
mysql-test/r/selectivity_innodb.result
+24
-0
mysql-test/t/ctype_binary.test
mysql-test/t/ctype_binary.test
+5
-0
mysql-test/t/ctype_latin1.test
mysql-test/t/ctype_latin1.test
+5
-0
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+5
-0
mysql-test/t/selectivity_innodb.test
mysql-test/t/selectivity_innodb.test
+30
-0
sql/item.h
sql/item.h
+3
-2
sql/sql_yacc.yy
sql/sql_yacc.yy
+6
-1
No files found.
mysql-test/r/ctype_binary.result
View file @
5c66abf0
...
...
@@ -3008,5 +3008,11 @@ Warnings:
Note 1003 select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where ('%' = concat(`test`.`t1`.`c1`))
DROP TABLE t1;
#
# MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
#
SELECT _binary 0x7E, _binary X'7E', _binary B'01111110';
_binary 0x7E _binary X'7E' _binary B'01111110'
~ ~ ~
#
# End of 10.0 tests
#
mysql-test/r/ctype_latin1.result
View file @
5c66abf0
...
...
@@ -7907,5 +7907,11 @@ HEX(a) a
3F23 ?#
DROP TABLE t1;
#
# MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
#
SELECT _latin1 0x7E, _latin1 X'7E', _latin1 B'01111110';
_latin1 0x7E _latin1 X'7E' _latin1 B'01111110'
~ ~ ~
#
# End of 10.0 tests
#
mysql-test/r/ctype_utf8.result
View file @
5c66abf0
...
...
@@ -6259,6 +6259,12 @@ EXECUTE stmt USING @b,@b;
ERROR HY000: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'concat'
DEALLOCATE PREPARE stmt;
DROP TABLE t1;
#
# MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
#
SELECT _utf8 0x7E, _utf8 X'7E', _utf8 B'01111110';
_utf8 0x7E _utf8 X'7E' _utf8 B'01111110'
~ ~ ~
# Start of ctype_unescape.inc
SET @query=_binary'SELECT CHARSET(\'test\'),@@character_set_client,@@character_set_connection';
PREPARE stmt FROM @query;
...
...
mysql-test/r/selectivity_innodb.result
View file @
5c66abf0
...
...
@@ -1512,6 +1512,30 @@ select * from t1 where col2 != true;
col1 col2
drop table t1;
#
# MDEV-7413: optimizer_use_condition_selectivity > 2 crashes 10.0.15+maria-1~wheezy
#
CREATE TABLE t1 (
parent_id int,
child_group_id int,
child_user_id int,
KEY (parent_id,child_group_id,child_user_id)
) ENGINE=InnoDB;
CREATE TABLE t2 (
id int,
lower_group_name varchar(255),
directory_id int(20),
UNIQUE KEY (directory_id)
) ENGINE=InnoDB;
CREATE TABLE t3 (id int) ENGINE=InnoDB;
insert into t1 values (1,1,1),(2,2,2);
insert into t2 values (10,'foo',10),(20,'bar',20);
insert into t3 values (101),(102);
set use_stat_tables = PREFERABLY, optimizer_use_condition_selectivity = 3;
select * from t1, t2, t3
where t1.child_user_id=t3.id and t1.child_group_id is null and t2.lower_group_name='foo' and t1.parent_id=t2.id and t2.directory_id=10;
parent_id child_group_id child_user_id id lower_group_name directory_id id
drop table t1,t2,t3;
#
# End of 10.0 tests
#
set use_stat_tables= @tmp_ust;
...
...
mysql-test/t/ctype_binary.test
View file @
5c66abf0
...
...
@@ -19,6 +19,11 @@ set names binary;
SET
NAMES
binary
;
--
source
include
/
ctype_like_cond_propagation
.
inc
--
echo
#
--
echo
# MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
--
echo
#
SELECT
_binary
0x7E
,
_binary
X
'7E'
,
_binary
B
'01111110'
;
--
echo
#
--
echo
# End of 10.0 tests
--
echo
#
mysql-test/t/ctype_latin1.test
View file @
5c66abf0
...
...
@@ -240,6 +240,11 @@ SHOW WARNINGS;
SELECT
HEX
(
a
),
a
FROM
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
--
echo
#
SELECT
_latin1
0x7E
,
_latin1
X
'7E'
,
_latin1
B
'01111110'
;
--
echo
#
--
echo
# End of 10.0 tests
--
echo
#
mysql-test/t/ctype_utf8.test
View file @
5c66abf0
...
...
@@ -1744,6 +1744,11 @@ EXECUTE stmt USING @b,@b;
DEALLOCATE
PREPARE
stmt
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
--
echo
#
SELECT
_utf8
0x7E
,
_utf8
X
'7E'
,
_utf8
B
'01111110'
;
let
$ctype_unescape_combinations
=
selected
;
--
source
include
/
ctype_unescape
.
inc
...
...
mysql-test/t/selectivity_innodb.test
View file @
5c66abf0
...
...
@@ -79,6 +79,36 @@ select * from t1 where col2 != true;
drop
table
t1
;
--
echo
#
--
echo
# MDEV-7413: optimizer_use_condition_selectivity > 2 crashes 10.0.15+maria-1~wheezy
--
echo
#
CREATE
TABLE
t1
(
parent_id
int
,
child_group_id
int
,
child_user_id
int
,
KEY
(
parent_id
,
child_group_id
,
child_user_id
)
)
ENGINE
=
InnoDB
;
CREATE
TABLE
t2
(
id
int
,
lower_group_name
varchar
(
255
),
directory_id
int
(
20
),
UNIQUE
KEY
(
directory_id
)
)
ENGINE
=
InnoDB
;
CREATE
TABLE
t3
(
id
int
)
ENGINE
=
InnoDB
;
insert
into
t1
values
(
1
,
1
,
1
),(
2
,
2
,
2
);
insert
into
t2
values
(
10
,
'foo'
,
10
),(
20
,
'bar'
,
20
);
insert
into
t3
values
(
101
),(
102
);
set
use_stat_tables
=
PREFERABLY
,
optimizer_use_condition_selectivity
=
3
;
select
*
from
t1
,
t2
,
t3
where
t1
.
child_user_id
=
t3
.
id
and
t1
.
child_group_id
is
null
and
t2
.
lower_group_name
=
'foo'
and
t1
.
parent_id
=
t2
.
id
and
t2
.
directory_id
=
10
;
drop
table
t1
,
t2
,
t3
;
--
echo
#
--
echo
# End of 10.0 tests
--
echo
#
...
...
sql/item.h
View file @
5c66abf0
...
...
@@ -2931,8 +2931,9 @@ public:
{
set_cs_specified
(
true
);
}
Item_string_with_introducer
(
const
String
*
str
,
CHARSET_INFO
*
tocs
)
:
Item_string
(
str
->
ptr
(),
str
->
length
(),
tocs
)
Item_string_with_introducer
(
const
char
*
name
,
const
char
*
str
,
uint
length
,
CHARSET_INFO
*
tocs
)
:
Item_string
(
name
,
str
,
length
,
tocs
)
{
set_cs_specified
(
true
);
}
...
...
sql/sql_yacc.yy
View file @
5c66abf0
...
...
@@ -13398,7 +13398,12 @@ literal:
| UNDERSCORE_CHARSET hex_or_bin_String
{
Item_string_with_introducer *item_str;
item_str= new (thd->mem_root) Item_string_with_introducer($2, $1);
/*
Pass NULL as name. Name will be set in the "select_item" rule and
will include the introducer and the original hex/bin notation.
*/
item_str= new (thd->mem_root)
Item_string_with_introducer(NULL, $2->ptr(), $2->length(), $1);
if (!item_str || !item_str->check_well_formed_result(true))
MYSQL_YYABORT;
...
...
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