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
159dc969
Commit
159dc969
authored
Jul 22, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: redundant variable
parent
39537435
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
sql/sql_class.cc
sql/sql_class.cc
+2
-2
sql/sql_class.h
sql/sql_class.h
+1
-1
sql/table.cc
sql/table.cc
+0
-5
No files found.
sql/sql_class.cc
View file @
159dc969
...
...
@@ -870,7 +870,7 @@ THD::THD(my_thread_id id, bool is_wsrep_applier)
is_fatal_sub_stmt_error
(
false
),
rand_used
(
0
),
time_zone_used
(
0
),
in_lock_tables
(
0
),
in_stored_expression
(
0
),
in_lock_tables
(
0
),
bootstrap
(
0
),
derived_tables_processing
(
FALSE
),
waiting_on_group_commit
(
FALSE
),
has_waiter
(
FALSE
),
...
...
@@ -2338,7 +2338,7 @@ bool THD::convert_string(LEX_STRING *to, CHARSET_INFO *to_cs,
to
->
length
=
copy_and_convert
((
char
*
)
to
->
str
,
new_length
,
to_cs
,
from
,
from_length
,
from_cs
,
&
errors
);
to
->
str
[
to
->
length
]
=
0
;
// Safety
if
(
errors
&&
in_stored_expression
)
if
(
errors
&&
lex
->
parse_vcol_expr
)
{
my_error
(
ER_BAD_DATA
,
MYF
(
0
),
ErrConvString
(
from
,
from_length
,
from_cs
).
ptr
(),
...
...
sql/sql_class.h
View file @
159dc969
...
...
@@ -2858,7 +2858,7 @@ class THD :public Statement,
bool
query_start_sec_part_used
;
/* for IS NULL => = last_insert_id() fix in remove_eq_conds() */
bool
substitute_null_with_insert_id
;
bool
in_lock_tables
,
in_stored_expression
;
bool
in_lock_tables
;
bool
bootstrap
,
cleanup_done
,
free_connection_done
;
/** is set if some thread specific value(s) used in a statement. */
...
...
sql/table.cc
View file @
159dc969
...
...
@@ -2512,11 +2512,8 @@ static bool fix_vcol_expr(THD *thd, Virtual_column_info *vcol)
const
char
*
save_where
=
thd
->
where
;
thd
->
where
=
"virtual column function"
;
thd
->
in_stored_expression
=
1
;
int
error
=
vcol
->
expr_item
->
fix_fields
(
thd
,
&
vcol
->
expr_item
);
thd
->
in_stored_expression
=
0
;
thd
->
mark_used_columns
=
save_mark_used_columns
;
thd
->
where
=
save_where
;
...
...
@@ -2753,9 +2750,7 @@ Virtual_column_info *unpack_vcol_info_from_frm(THD *thd,
thd
->
update_charset
(
&
my_charset_utf8mb4_general_ci
,
table
->
s
->
table_charset
);
}
thd
->
in_stored_expression
=
1
;
error
=
parse_sql
(
thd
,
&
parser_state
,
NULL
);
thd
->
in_stored_expression
=
0
;
if
(
error
)
goto
err
;
...
...
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