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
801c2c27
Commit
801c2c27
authored
May 24, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test case for Bug#8009.
sql/item.cc: Fixed Bug#8009.
parent
b36f9f2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
mysql-test/r/select.result
mysql-test/r/select.result
+6
-0
mysql-test/t/select.test
mysql-test/t/select.test
+9
-0
sql/item.cc
sql/item.cc
+1
-0
No files found.
mysql-test/r/select.result
View file @
801c2c27
...
...
@@ -2509,3 +2509,9 @@ AND FK_firma_id = 2;
COUNT(*)
0
drop table t1;
CREATE TABLE t1 (b BIGINT(20) UNSIGNED NOT NULL, PRIMARY KEY (b));
INSERT INTO t1 VALUES (0x8000000000000000);
SELECT b FROM t1 WHERE b=0x8000000000000000;
b
9223372036854775808
DROP TABLE t1;
mysql-test/t/select.test
View file @
801c2c27
...
...
@@ -2051,3 +2051,12 @@ SELECT COUNT(*) FROM t1 WHERE
AND
FK_firma_id
=
2
;
drop
table
t1
;
#
# Test for Bug#8009, SELECT failed on bigint unsigned when using HEX
#
CREATE
TABLE
t1
(
b
BIGINT
(
20
)
UNSIGNED
NOT
NULL
,
PRIMARY
KEY
(
b
));
INSERT
INTO
t1
VALUES
(
0x8000000000000000
);
SELECT
b
FROM
t1
WHERE
b
=
0x8000000000000000
;
DROP
TABLE
t1
;
sql/item.cc
View file @
801c2c27
...
...
@@ -2107,6 +2107,7 @@ Item_varbinary::Item_varbinary(const char *str, uint str_length)
*
ptr
=
0
;
// Keep purify happy
collation
.
set
(
&
my_charset_bin
,
DERIVATION_COERCIBLE
);
fixed
=
1
;
unsigned_flag
=
1
;
}
longlong
Item_varbinary
::
val_int
()
...
...
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