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
368d6b27
Commit
368d6b27
authored
Jan 18, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge fix.
parent
7c5a417a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
mysql-test/r/range.result
mysql-test/r/range.result
+2
-2
mysql-test/r/type_bit.result
mysql-test/r/type_bit.result
+1
-1
mysql-test/r/type_bit_innodb.result
mysql-test/r/type_bit_innodb.result
+1
-1
sql/field.cc
sql/field.cc
+2
-0
No files found.
mysql-test/r/range.result
View file @
368d6b27
...
...
@@ -521,8 +521,8 @@ select count(*) from t1 where x = 18446744073709551601;
count(*)
1
create table t2 (x bigint not null);
insert into t2(x) values (
cast(0xfffffffffffffff0+0 as signed)
);
insert into t2(x) values (
cast(0xfffffffffffffff1+0 as signed)
);
insert into t2(x) values (
-16
);
insert into t2(x) values (
-15
);
select * from t2;
x
-16
...
...
mysql-test/r/type_bit.result
View file @
368d6b27
...
...
@@ -568,7 +568,7 @@ create table t1 (a bit(7));
insert into t1 values (0x60);
select * from t1;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def test t1 t1 a a 16 7 1 Y
0
0 63
def test t1 t1 a a 16 7 1 Y
32
0 63
a
`
drop table t1;
...
...
mysql-test/r/type_bit_innodb.result
View file @
368d6b27
...
...
@@ -406,7 +406,7 @@ create table t1 (a bit(7)) engine=innodb;
insert into t1 values (0x60);
select * from t1;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def test t1 t1 a a 16 7 1 Y
0
0 63
def test t1 t1 a a 16 7 1 Y
32
0 63
a
`
drop table t1;
...
...
sql/field.cc
View file @
368d6b27
...
...
@@ -7865,6 +7865,7 @@ Field_bit::Field_bit(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
bit_ptr
(
bit_ptr_arg
),
bit_ofs
(
bit_ofs_arg
),
bit_len
(
len_arg
&
7
),
bytes_in_rec
(
len_arg
/
8
)
{
flags
|=
UNSIGNED_FLAG
;
/*
Ensure that Field::eq() can distinguish between two different bit fields.
(two bit fields that are not null, may have same ptr and null_ptr)
...
...
@@ -8104,6 +8105,7 @@ Field_bit_as_char::Field_bit_as_char(char *ptr_arg, uint32 len_arg,
:
Field_bit
(
ptr_arg
,
len_arg
,
null_ptr_arg
,
null_bit_arg
,
0
,
0
,
unireg_check_arg
,
field_name_arg
,
table_arg
)
{
flags
|=
UNSIGNED_FLAG
;
bit_len
=
0
;
bytes_in_rec
=
(
len_arg
+
7
)
/
8
;
}
...
...
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