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
d03446c9
Commit
d03446c9
authored
Oct 10, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid losing precision on 64-bit Windows
parent
f9807c7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
storage/innobase/dict/dict0mem.cc
storage/innobase/dict/dict0mem.cc
+5
-5
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+1
-1
No files found.
storage/innobase/dict/dict0mem.cc
View file @
d03446c9
...
...
@@ -1384,12 +1384,12 @@ void dict_table_t::instant_column(const dict_table_t& table, const ulint* map)
}
else
if
(
base
>=
table
.
cols
&&
base
<
table
.
cols
+
table
.
n_cols
)
{
/* The base column was instantly added. */
unsigned
c
=
base
-
table
.
cols
;
size_t
c
=
base
-
table
.
cols
;
DBUG_ASSERT
(
base
==
&
table
.
cols
[
c
]);
base
=
&
cols
[
c
];
}
else
{
DBUG_ASSERT
(
base
>=
old_cols
);
unsigned
c
=
base
-
old_cols
;
size_t
c
=
base
-
old_cols
;
DBUG_ASSERT
(
c
+
DATA_N_SYS_COLS
<
n_cols
);
DBUG_ASSERT
(
base
==
&
old_cols
[
c
]);
DBUG_ASSERT
(
map
[
c
]
+
DATA_N_SYS_COLS
<
n_cols
);
...
...
@@ -1449,7 +1449,7 @@ void dict_table_t::instant_column(const dict_table_t& table, const ulint* map)
ut_ad
(
field
->
col
<
table
.
instant
->
dropped
+
table
.
instant
->
n_dropped
);
ut_d
(
n_drop
++
);
unsigned
d
=
field
->
col
-
table
.
instant
->
dropped
;
size_t
d
=
field
->
col
-
table
.
instant
->
dropped
;
ut_ad
(
field
->
col
==
&
table
.
instant
->
dropped
[
d
]);
ut_ad
(
d
<=
instant
->
n_dropped
);
field
->
col
=
&
instant
->
dropped
[
d
];
...
...
@@ -1470,7 +1470,7 @@ void dict_table_t::instant_column(const dict_table_t& table, const ulint* map)
/* This is an instantly added column
in a newly added index. */
DBUG_ASSERT
(
!
f
.
col
->
is_virtual
());
unsigned
c
=
f
.
col
-
table
.
cols
;
size_t
c
=
f
.
col
-
table
.
cols
;
DBUG_ASSERT
(
f
.
col
==
&
table
.
cols
[
c
]);
f
.
col
=
&
cols
[
c
];
}
else
if
(
f
.
col
>=
&
table
.
v_cols
->
m_col
...
...
@@ -1478,7 +1478,7 @@ void dict_table_t::instant_column(const dict_table_t& table, const ulint* map)
/* This is an instantly added virtual column
in a newly added index. */
DBUG_ASSERT
(
f
.
col
->
is_virtual
());
unsigned
c
=
reinterpret_cast
<
dict_v_col_t
*>
(
size_t
c
=
reinterpret_cast
<
dict_v_col_t
*>
(
f
.
col
)
-
table
.
v_cols
;
DBUG_ASSERT
(
f
.
col
==
&
table
.
v_cols
[
c
].
m_col
);
f
.
col
=
&
v_cols
[
c
].
m_col
;
...
...
storage/innobase/handler/handler0alter.cc
View file @
d03446c9
...
...
@@ -460,7 +460,7 @@ struct ha_innobase_inplace_ctx : public inplace_alter_handler_ctx
dropped earlier. */
DBUG_ASSERT
(
f
.
col
>=
old_table
->
instant
->
dropped
);
unsigned
d
=
f
.
col
-
old_table
->
instant
size_t
d
=
f
.
col
-
old_table
->
instant
->
dropped
;
DBUG_ASSERT
(
d
<
n_old_drop
);
DBUG_ASSERT
(
&
old_table
->
instant
...
...
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