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
8efd7ef1
Commit
8efd7ef1
authored
Nov 08, 2007
by
kaa@polly.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge polly.(none):/home/kaa/src/opt/bug32103/my41-bug26215
into polly.(none):/home/kaa/src/opt/bug32103/my50-bug26215
parents
910003b5
f1a3c364
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
mysql-test/r/select.result
mysql-test/r/select.result
+8
-0
mysql-test/t/select.test
mysql-test/t/select.test
+21
-0
sql/item.h
sql/item.h
+1
-1
No files found.
mysql-test/r/select.result
View file @
8efd7ef1
...
@@ -2827,6 +2827,14 @@ FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
...
@@ -2827,6 +2827,14 @@ FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
8FFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
8FFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
drop table t1;
drop table t1;
CREATE TABLE t1 (c0 int);
CREATE TABLE t2 (c0 int);
INSERT INTO t1 VALUES(@@connect_timeout);
INSERT INTO t2 VALUES(@@connect_timeout);
SELECT * FROM t1 JOIN t2 ON t1.c0 = t2.c0 WHERE (t1.c0 <=> @@connect_timeout);
c0 c0
X X
DROP TABLE t1, t2;
End of 4.1 tests
End of 4.1 tests
CREATE TABLE t1 (
CREATE TABLE t1 (
K2C4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '',
K2C4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '',
...
...
mysql-test/t/select.test
View file @
8efd7ef1
...
@@ -2360,6 +2360,27 @@ insert into t1 values (0xfffffffffffffffff, 0xfffffffffffffffff),
...
@@ -2360,6 +2360,27 @@ insert into t1 values (0xfffffffffffffffff, 0xfffffffffffffffff),
select
hex
(
a
),
hex
(
b
)
from
t1
;
select
hex
(
a
),
hex
(
b
)
from
t1
;
drop
table
t1
;
drop
table
t1
;
#
# Bug #32103: optimizer crash when join on int and mediumint with variable in
# where clause
#
CREATE
TABLE
t1
(
c0
int
);
CREATE
TABLE
t2
(
c0
int
);
# We need any variable that:
# 1. has integer type,
# 2. can be used with the "@@name" syntax
# 3. available in every server build
INSERT
INTO
t1
VALUES
(
@@
connect_timeout
);
INSERT
INTO
t2
VALUES
(
@@
connect_timeout
);
# We only need to ensure 1 row is returned to validate the results
--
replace_column
1
X
2
X
SELECT
*
FROM
t1
JOIN
t2
ON
t1
.
c0
=
t2
.
c0
WHERE
(
t1
.
c0
<=>
@@
connect_timeout
);
DROP
TABLE
t1
,
t2
;
--
echo
End
of
4.1
tests
--
echo
End
of
4.1
tests
#
#
...
...
sql/item.h
View file @
8efd7ef1
...
@@ -1584,7 +1584,7 @@ class Item_uint :public Item_int
...
@@ -1584,7 +1584,7 @@ class Item_uint :public Item_int
double
val_real
()
double
val_real
()
{
DBUG_ASSERT
(
fixed
==
1
);
return
ulonglong2double
((
ulonglong
)
value
);
}
{
DBUG_ASSERT
(
fixed
==
1
);
return
ulonglong2double
((
ulonglong
)
value
);
}
String
*
val_str
(
String
*
);
String
*
val_str
(
String
*
);
Item
*
clone_item
()
{
return
new
Item_uint
(
name
,
max_length
);
}
Item
*
clone_item
()
{
return
new
Item_uint
(
name
,
value
,
max_length
);
}
int
save_in_field
(
Field
*
field
,
bool
no_conversions
);
int
save_in_field
(
Field
*
field
,
bool
no_conversions
);
void
print
(
String
*
str
);
void
print
(
String
*
str
);
Item_num
*
neg
();
Item_num
*
neg
();
...
...
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