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
8cf7979e
Commit
8cf7979e
authored
Apr 12, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
parents
a1c4918a
eae4d9c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
sql/field.cc
sql/field.cc
+2
-2
sql/sql_table.cc
sql/sql_table.cc
+3
-1
No files found.
sql/field.cc
View file @
8cf7979e
...
@@ -7879,7 +7879,7 @@ int Field_bit::key_cmp(const byte *str, uint length)
...
@@ -7879,7 +7879,7 @@ int Field_bit::key_cmp(const byte *str, uint length)
str
++
;
str
++
;
length
--
;
length
--
;
}
}
return
b
cmp
(
ptr
,
str
,
length
);
return
mem
cmp
(
ptr
,
str
,
length
);
}
}
...
@@ -7893,7 +7893,7 @@ int Field_bit::cmp_offset(uint row_offset)
...
@@ -7893,7 +7893,7 @@ int Field_bit::cmp_offset(uint row_offset)
if
((
flag
=
(
int
)
(
bits_a
-
bits_b
)))
if
((
flag
=
(
int
)
(
bits_a
-
bits_b
)))
return
flag
;
return
flag
;
}
}
return
b
cmp
(
ptr
,
ptr
+
row_offset
,
field_length
);
return
mem
cmp
(
ptr
,
ptr
+
row_offset
,
field_length
);
}
}
...
...
sql/sql_table.cc
View file @
8cf7979e
...
@@ -563,7 +563,9 @@ int prepare_create_field(create_field *sql_field,
...
@@ -563,7 +563,9 @@ int prepare_create_field(create_field *sql_field,
sql_field
->
pack_flag
=
f_settype
((
uint
)
sql_field
->
sql_type
);
sql_field
->
pack_flag
=
f_settype
((
uint
)
sql_field
->
sql_type
);
break
;
break
;
case
FIELD_TYPE_BIT
:
case
FIELD_TYPE_BIT
:
sql_field
->
pack_flag
|=
FIELDFLAG_NUMBER
;
sql_field
->
pack_flag
=
f_bit_as_char
(
sql_field
->
pack_flag
)
?
FIELDFLAG_NUMBER
|
FIELDFLAG_TREAT_BIT_AS_CHAR
:
FIELDFLAG_NUMBER
;
break
;
break
;
case
FIELD_TYPE_NEWDECIMAL
:
case
FIELD_TYPE_NEWDECIMAL
:
sql_field
->
pack_flag
=
(
FIELDFLAG_NUMBER
|
sql_field
->
pack_flag
=
(
FIELDFLAG_NUMBER
|
...
...
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