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
21fd8948
Commit
21fd8948
authored
Oct 22, 2004
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/bk/mysql-4.1
into mysql.com:/users/kboortz/daily/work/mysql-4.1-purify2
parents
baeecbd6
bd3d0f6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
sql/sql_parse.cc
sql/sql_parse.cc
+7
-1
No files found.
sql/sql_parse.cc
View file @
21fd8948
...
@@ -501,12 +501,17 @@ void free_max_user_conn(void)
...
@@ -501,12 +501,17 @@ void free_max_user_conn(void)
/*
/*
Mark all commands that somehow changes a table
Mark all commands that somehow changes a table
This is used to check number of updates / hour
This is used to check number of updates / hour
sql_command is actually set to SQLCOM_END sometimes
so we need the +1 to include it in the array.
*/
*/
char
uc_update_queries
[
SQLCOM_END
];
char
uc_update_queries
[
SQLCOM_END
+
1
];
void
init_update_queries
(
void
)
void
init_update_queries
(
void
)
{
{
bzero
((
gptr
)
&
uc_update_queries
,
sizeof
(
uc_update_queries
));
uc_update_queries
[
SQLCOM_CREATE_TABLE
]
=
1
;
uc_update_queries
[
SQLCOM_CREATE_TABLE
]
=
1
;
uc_update_queries
[
SQLCOM_CREATE_INDEX
]
=
1
;
uc_update_queries
[
SQLCOM_CREATE_INDEX
]
=
1
;
uc_update_queries
[
SQLCOM_ALTER_TABLE
]
=
1
;
uc_update_queries
[
SQLCOM_ALTER_TABLE
]
=
1
;
...
@@ -531,6 +536,7 @@ void init_update_queries(void)
...
@@ -531,6 +536,7 @@ void init_update_queries(void)
bool
is_update_query
(
enum
enum_sql_command
command
)
bool
is_update_query
(
enum
enum_sql_command
command
)
{
{
DBUG_ASSERT
(
command
>=
0
&&
command
<=
SQLCOM_END
);
return
uc_update_queries
[
command
];
return
uc_update_queries
[
command
];
}
}
...
...
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