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
f4df5cd2
Commit
f4df5cd2
authored
Nov 22, 2000
by
monty@donna.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change storage of execution flags from thd->options to thd->lex.options
parent
1ce0e50f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
sql/sql_delete.cc
sql/sql_delete.cc
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+3
-2
sql/sql_select.cc
sql/sql_select.cc
+3
-3
sql/sql_update.cc
sql/sql_update.cc
+1
-1
No files found.
sql/sql_delete.cc
View file @
f4df5cd2
...
...
@@ -175,7 +175,7 @@ int mysql_delete(THD *thd,TABLE_LIST *table_list,COND *conds,ha_rows limit,
/* If running in safe sql mode, don't allow updates without keys */
if
(
!
table
->
quick_keys
)
{
thd
->
options
|=
OPTION_NO_INDEX_USED
;
thd
->
lex
.
options
|=
OPTION_NO_INDEX_USED
;
if
((
thd
->
options
&
OPTION_SAFE_UPDATES
)
&&
limit
==
HA_POS_ERROR
)
{
delete
select
;
...
...
sql/sql_parse.cc
View file @
f4df5cd2
...
...
@@ -826,7 +826,8 @@ bool do_command(THD *thd)
if
(
!
thd
->
user_time
)
{
if
((
ulong
)
(
thd
->
start_time
-
thd
->
time_after_lock
)
>
long_query_time
||
((
thd
->
options
&
(
OPTION_NO_INDEX_USED
|
OPTION_NO_GOOD_INDEX_USED
))
&&
((
thd
->
lex
.
options
&
(
OPTION_NO_INDEX_USED
|
OPTION_NO_GOOD_INDEX_USED
))
&&
(
specialflag
&
SPECIAL_LONG_LOG_FORMAT
)))
{
long_query_count
++
;
...
...
@@ -855,7 +856,7 @@ mysql_execute_command(void)
{
int
res
=
0
;
THD
*
thd
=
current_thd
;
LEX
*
lex
=
current_
lex
;
LEX
*
lex
=
&
thd
->
lex
;
TABLE_LIST
*
tables
=
(
TABLE_LIST
*
)
lex
->
table_list
.
first
;
DBUG_ENTER
(
"mysql_execute_command"
);
...
...
sql/sql_select.cc
View file @
f4df5cd2
...
...
@@ -2420,7 +2420,7 @@ make_join_readinfo(JOIN *join,uint options)
/* These init changes read_record */
if
(
tab
->
use_quick
==
2
)
{
join
->
thd
->
options
|=
OPTION_NO_GOOD_INDEX_USED
;
join
->
thd
->
lex
.
options
|=
OPTION_NO_GOOD_INDEX_USED
;
tab
->
read_first_record
=
join_init_quick_read_record
;
statistic_increment
(
select_range_check_count
,
&
LOCK_status
);
}
...
...
@@ -2435,7 +2435,7 @@ make_join_readinfo(JOIN *join,uint options)
}
else
{
join
->
thd
->
options
|=
OPTION_NO_INDEX_USED
;
join
->
thd
->
lex
.
options
|=
OPTION_NO_INDEX_USED
;
statistic_increment
(
select_scan_count
,
&
LOCK_status
);
}
}
...
...
@@ -2447,7 +2447,7 @@ make_join_readinfo(JOIN *join,uint options)
}
else
{
join
->
thd
->
options
|=
OPTION_NO_INDEX_USED
;
join
->
thd
->
lex
.
options
|=
OPTION_NO_INDEX_USED
;
statistic_increment
(
select_full_join_count
,
&
LOCK_status
);
}
}
...
...
sql/sql_update.cc
View file @
f4df5cd2
...
...
@@ -102,7 +102,7 @@ int mysql_update(THD *thd,TABLE_LIST *table_list,List<Item> &fields,
/* If running in safe sql mode, don't allow updates without keys */
if
(
!
table
->
quick_keys
)
{
thd
->
options
|=
OPTION_NO_INDEX_USED
;
thd
->
lex
.
options
|=
OPTION_NO_INDEX_USED
;
if
((
thd
->
options
&
OPTION_SAFE_UPDATES
)
&&
limit
==
HA_POS_ERROR
)
{
delete
select
;
...
...
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