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
2eeac537
Commit
2eeac537
authored
Sep 13, 2019
by
Sachin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile error in macOS caused by MDEV-20477
parent
386f9d14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
sql/field.cc
sql/field.cc
+3
-3
sql/field.h
sql/field.h
+15
-15
sql/log_event_server.cc
sql/log_event_server.cc
+2
-2
No files found.
sql/field.cc
View file @
2eeac537
...
...
@@ -3500,7 +3500,7 @@ Binlog_type_info Field_new_decimal::binlog_type_info() const
{
DBUG_ASSERT
(
Field_new_decimal
::
type
()
==
binlog_type
());
return
Binlog_type_info
(
Field_new_decimal
::
type
(),
precision
+
(
decimals
()
<<
8
),
2
,
binlog_signess
());
(
decimals
()
<<
8
),
2
,
binlog_signe
dne
ss
());
}
...
...
@@ -4672,7 +4672,7 @@ Binlog_type_info Field_float::binlog_type_info() const
{
DBUG_ASSERT
(
Field_float
::
type
()
==
binlog_type
());
return
Binlog_type_info
(
Field_float
::
type
(),
pack_length
(),
1
,
binlog_signess
());
binlog_signe
dne
ss
());
}
...
...
@@ -4984,7 +4984,7 @@ Binlog_type_info Field_double::binlog_type_info() const
{
DBUG_ASSERT
(
Field_double
::
type
()
==
binlog_type
());
return
Binlog_type_info
(
Field_double
::
type
(),
pack_length
(),
1
,
binlog_signess
());
binlog_signe
dne
ss
());
}
...
...
sql/field.h
View file @
2eeac537
...
...
@@ -637,11 +637,11 @@ class Virtual_column_info: public Sql_alloc,
class
Binlog_type_info
{
public:
enum
binlog_sign
ess
_t
enum
binlog_sign_t
{
SIGNED
,
UNSIGNED
,
SIGN
ESS_NOT_RELEVANT
// for non-numeric types
SIGN
_SIGN
ED
,
SIGN_
UNSIGNED
,
SIGN
_NOT_APPLICABLE
// for non-numeric types
};
uchar
m_type_code
;
// according to Field::binlog_type()
/**
...
...
@@ -649,7 +649,7 @@ class Binlog_type_info
*/
uint16
m_metadata
;
uint8
m_metadata_size
;
binlog_sign
ess_t
m_sig
ness
;
binlog_sign
_t
m_signed
ness
;
CHARSET_INFO
*
m_cs
;
// NULL if not relevant
TYPELIB
*
m_enum_typelib
;
// NULL if not relevant
TYPELIB
*
m_set_typelib
;
// NULL if not relevant
...
...
@@ -660,7 +660,7 @@ class Binlog_type_info
:
m_type_code
(
type_code
),
m_metadata
(
metadata
),
m_metadata_size
(
metadata_size
),
m_signe
ss
(
SIGNESS_NOT_RELEVANT
),
m_signe
dness
(
SIGN_NOT_APPLICABLE
),
m_cs
(
NULL
),
m_enum_typelib
(
NULL
),
m_set_typelib
(
NULL
),
...
...
@@ -668,11 +668,11 @@ class Binlog_type_info
{};
Binlog_type_info
(
uchar
type_code
,
uint16
metadata
,
uint8
metadata_size
,
binlog_sign
ess_t
sig
ness
)
binlog_sign
_t
signed
ness
)
:
m_type_code
(
type_code
),
m_metadata
(
metadata
),
m_metadata_size
(
metadata_size
),
m_signe
ss
(
sig
ness
),
m_signe
dness
(
signed
ness
),
m_cs
(
NULL
),
m_enum_typelib
(
NULL
),
m_set_typelib
(
NULL
),
...
...
@@ -684,7 +684,7 @@ class Binlog_type_info
:
m_type_code
(
type_code
),
m_metadata
(
metadata
),
m_metadata_size
(
metadata_size
),
m_signe
ss
(
SIGNESS_NOT_RELEVANT
),
m_signe
dness
(
SIGN_NOT_APPLICABLE
),
m_cs
(
cs
),
m_enum_typelib
(
NULL
),
m_set_typelib
(
NULL
),
...
...
@@ -697,7 +697,7 @@ class Binlog_type_info
:
m_type_code
(
type_code
),
m_metadata
(
metadata
),
m_metadata_size
(
metadata_size
),
m_signe
ss
(
SIGNESS_NOT_RELEVANT
),
m_signe
dness
(
SIGN_NOT_APPLICABLE
),
m_cs
(
cs
),
m_enum_typelib
(
t_enum
),
m_set_typelib
(
t_set
),
...
...
@@ -709,7 +709,7 @@ class Binlog_type_info
:
m_type_code
(
type_code
),
m_metadata
(
metadata
),
m_metadata_size
(
metadata_size
),
m_signe
ss
(
SIGNESS_NOT_RELEVANT
),
m_signe
dness
(
SIGN_NOT_APPLICABLE
),
m_cs
(
cs
),
m_enum_typelib
(
NULL
),
m_set_typelib
(
NULL
),
...
...
@@ -1900,10 +1900,10 @@ class Field_num :public Field {
void
prepend_zeros
(
String
*
value
)
const
;
Item
*
get_equal_zerofill_const_item
(
THD
*
thd
,
const
Context
&
ctx
,
Item
*
const_item
);
Binlog_type_info
::
binlog_sign
ess_t
binlog_sig
ness
()
const
Binlog_type_info
::
binlog_sign
_t
binlog_signed
ness
()
const
{
return
(
flags
&
UNSIGNED_FLAG
)
?
Binlog_type_info
::
UNSIGNED
:
Binlog_type_info
::
SIGNED
;
return
(
flags
&
UNSIGNED_FLAG
)
?
Binlog_type_info
::
SIGN_
UNSIGNED
:
Binlog_type_info
::
SIGN
_SIGN
ED
;
}
public:
const
uint8
dec
;
...
...
@@ -1963,7 +1963,7 @@ class Field_num :public Field {
Binlog_type_info
binlog_type_info
()
const
override
{
DBUG_ASSERT
(
Field_num
::
type
()
==
binlog_type
());
return
Binlog_type_info
(
Field_num
::
type
(),
0
,
0
,
binlog_signess
());
return
Binlog_type_info
(
Field_num
::
type
(),
0
,
0
,
binlog_signe
dne
ss
());
}
};
...
...
sql/log_event_server.cc
View file @
2eeac537
...
...
@@ -6447,9 +6447,9 @@ bool Table_map_log_event::init_signedness_field()
for
(
unsigned
int
i
=
0
;
i
<
m_table
->
s
->
fields
;
++
i
)
{
info
=
binlog_type_info_array
+
i
;
if
(
info
->
m_signe
ss
!=
Binlog_type_info
::
SIGNESS_NOT_RELEVANT
)
if
(
info
->
m_signe
dness
!=
Binlog_type_info
::
SIGN_NOT_APPLICABLE
)
{
if
(
info
->
m_signe
ss
==
Binlog_type_info
::
UNSIGNED
)
if
(
info
->
m_signe
dness
==
Binlog_type_info
::
SIGN_
UNSIGNED
)
flag
|=
mask
;
mask
>>=
1
;
...
...
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