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
5633f83c
Commit
5633f83c
authored
Apr 02, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix integer type mismatch
parent
8650848e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+2
-1
storage/innobase/include/pars0sym.h
storage/innobase/include/pars0sym.h
+2
-2
storage/innobase/pars/pars0pars.cc
storage/innobase/pars/pars0pars.cc
+4
-5
No files found.
storage/innobase/handler/handler0alter.cc
View file @
5633f83c
...
@@ -3024,7 +3024,8 @@ innobase_build_col_map(
...
@@ -3024,7 +3024,8 @@ innobase_build_col_map(
==
dict_table_get_n_cols
(
new_table
));
==
dict_table_get_n_cols
(
new_table
));
DBUG_ASSERT
(
table
->
s
->
stored_fields
>
0
);
DBUG_ASSERT
(
table
->
s
->
stored_fields
>
0
);
const
size_t
old_n_v_cols
=
table
->
s
->
fields
-
table
->
s
->
stored_fields
;
const
uint
old_n_v_cols
=
uint
(
table
->
s
->
fields
-
table
->
s
->
stored_fields
);
DBUG_ASSERT
(
old_n_v_cols
==
old_table
->
n_v_cols
DBUG_ASSERT
(
old_n_v_cols
==
old_table
->
n_v_cols
||
table
->
s
->
frm_version
<
FRM_VER_EXPRESSSIONS
);
||
table
->
s
->
frm_version
<
FRM_VER_EXPRESSSIONS
);
DBUG_ASSERT
(
!
old_n_v_cols
||
table
->
s
->
virtual_fields
);
DBUG_ASSERT
(
!
old_n_v_cols
||
table
->
s
->
virtual_fields
);
...
...
storage/innobase/include/pars0sym.h
View file @
5633f83c
/*****************************************************************************
/*****************************************************************************
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 201
8
, MariaDB Corporation.
Copyright (c) 2017, 201
9
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
the terms of the GNU General Public License as published by the Free Software
...
@@ -224,7 +224,7 @@ struct sym_tab_t{
...
@@ -224,7 +224,7 @@ struct sym_tab_t{
/*!< SQL string to parse */
/*!< SQL string to parse */
size_t
string_len
;
size_t
string_len
;
/*!< SQL string length */
/*!< SQL string length */
in
t
next_char_pos
;
size_
t
next_char_pos
;
/*!< position of the next character in
/*!< position of the next character in
sql_string to give to the lexical
sql_string to give to the lexical
analyzer */
analyzer */
...
...
storage/innobase/pars/pars0pars.cc
View file @
5633f83c
...
@@ -2065,9 +2065,8 @@ pars_get_lex_chars(
...
@@ -2065,9 +2065,8 @@ pars_get_lex_chars(
size_t
max_size
)
/*!< in: maximum number of characters which fit
size_t
max_size
)
/*!< in: maximum number of characters which fit
in the buffer */
in the buffer */
{
{
size_t
len
=
size_t
(
size_t
len
=
pars_sym_tab_global
->
string_len
pars_sym_tab_global
->
string_len
-
pars_sym_tab_global
->
next_char_pos
;
-
pars_sym_tab_global
->
next_char_pos
);
if
(
len
==
0
)
{
if
(
len
==
0
)
{
return
(
0
);
return
(
0
);
}
}
...
@@ -2076,8 +2075,8 @@ pars_get_lex_chars(
...
@@ -2076,8 +2075,8 @@ pars_get_lex_chars(
len
=
max_size
;
len
=
max_size
;
}
}
ut_
memcpy
(
buf
,
pars_sym_tab_global
->
sql_string
memcpy
(
buf
,
pars_sym_tab_global
->
sql_string
+
pars_sym_tab_global
->
next_char_pos
,
len
);
+
pars_sym_tab_global
->
next_char_pos
,
len
);
pars_sym_tab_global
->
next_char_pos
+=
len
;
pars_sym_tab_global
->
next_char_pos
+=
len
;
...
...
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