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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e0f14c27
Commit
e0f14c27
authored
Nov 05, 2002
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move similar code to inline function
parent
45f098bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
18 deletions
+11
-18
sql/sql_lex.h
sql/sql_lex.h
+6
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+5
-17
No files found.
sql/sql_lex.h
View file @
e0f14c27
...
@@ -364,7 +364,12 @@ public:
...
@@ -364,7 +364,12 @@ public:
thr_lock_type
flags
=
TL_UNLOCK
,
thr_lock_type
flags
=
TL_UNLOCK
,
List
<
String
>
*
use_index
=
0
,
List
<
String
>
*
use_index
=
0
,
List
<
String
>
*
ignore_index
=
0
);
List
<
String
>
*
ignore_index
=
0
);
inline
void
init_order
()
{
order_list
.
elements
=
0
;
order_list
.
first
=
0
;
order_list
.
next
=
(
byte
**
)
&
order_list
.
first
;
}
friend
void
mysql_init_query
(
THD
*
thd
);
friend
void
mysql_init_query
(
THD
*
thd
);
};
};
...
...
sql/sql_yacc.yy
View file @
e0f14c27
...
@@ -1315,10 +1315,7 @@ alter:
...
@@ -1315,10 +1315,7 @@ alter:
lex->col_list.empty();
lex->col_list.empty();
lex->drop_list.empty();
lex->drop_list.empty();
lex->alter_list.empty();
lex->alter_list.empty();
lex->select_lex.order_list.elements=0;
lex->select_lex.init_order();
lex->select_lex.order_list.first=0;
lex->select_lex.order_list.next=
(byte**) &lex->select_lex.order_list.first;
lex->select_lex.db=lex->name=0;
lex->select_lex.db=lex->name=0;
bzero((char*) &lex->create_info,sizeof(lex->create_info));
bzero((char*) &lex->create_info,sizeof(lex->create_info));
lex->create_info.db_type= DB_TYPE_DEFAULT;
lex->create_info.db_type= DB_TYPE_DEFAULT;
...
@@ -2902,10 +2899,7 @@ update:
...
@@ -2902,10 +2899,7 @@ update:
{
{
LEX *lex= Lex;
LEX *lex= Lex;
lex->sql_command= SQLCOM_UPDATE;
lex->sql_command= SQLCOM_UPDATE;
lex->select_lex.order_list.elements= 0;
lex->select_lex.init_order();
lex->select_lex.order_list.first= 0;
lex->select_lex.order_list.next= (byte**)
&lex->select_lex.order_list.first;
}
}
opt_low_priority opt_ignore join_table_list SET update_list where_clause opt_order_clause delete_limit_clause;
opt_low_priority opt_ignore join_table_list SET update_list where_clause opt_order_clause delete_limit_clause;
...
@@ -2934,10 +2928,7 @@ delete:
...
@@ -2934,10 +2928,7 @@ delete:
lex->sql_command= SQLCOM_DELETE;
lex->sql_command= SQLCOM_DELETE;
lex->select_lex.options= 0;
lex->select_lex.options= 0;
lex->lock_option= lex->thd->update_lock_default;
lex->lock_option= lex->thd->update_lock_default;
lex->select_lex.order_list.elements= 0;
lex->select_lex.init_order();
lex->select_lex.order_list.first= 0;
lex->select_lex.order_list.next= (byte**)
&lex->select_lex.order_list.first;
}
}
opt_delete_options single_multi {};
opt_delete_options single_multi {};
...
@@ -2987,11 +2978,8 @@ truncate:
...
@@ -2987,11 +2978,8 @@ truncate:
LEX* lex= Lex;
LEX* lex= Lex;
lex->sql_command= SQLCOM_TRUNCATE;
lex->sql_command= SQLCOM_TRUNCATE;
lex->select_lex.options= 0;
lex->select_lex.options= 0;
lex->select_lex.order_list.elements= 0;
lex->select_lex.init_order();
lex->select_lex.order_list.first= 0;
lex->lock_option= lex->thd->update_lock_default; };
lex->select_lex.order_list.next= (byte**)
&lex->select_lex.order_list.first;
lex->lock_option= current_thd->update_lock_default; };
opt_table_sym:
opt_table_sym:
/* empty */
/* empty */
...
...
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