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
e99c123a
Commit
e99c123a
authored
Oct 20, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into siva.hindu.god:/usr/home/tim/m/bk/51
parents
e933e647
73d71a6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
sql/sql_trigger.cc
sql/sql_trigger.cc
+1
-1
sql/sql_view.cc
sql/sql_view.cc
+14
-3
No files found.
sql/sql_trigger.cc
View file @
e99c123a
...
@@ -284,7 +284,7 @@ bool mysql_create_or_drop_trigger(THD *thd, TABLE_LIST *tables, bool create)
...
@@ -284,7 +284,7 @@ bool mysql_create_or_drop_trigger(THD *thd, TABLE_LIST *tables, bool create)
thd
->
clear_error
();
thd
->
clear_error
();
/* Such a statement can always go directly to binlog, no trans cache. */
/* Such a statement can always go directly to binlog, no trans cache. */
thd
->
binlog_query
(
THD
::
MYSQL_
QUERY
_TYPE
,
thd
->
binlog_query
(
THD
::
MYSQL_
STMT
_TYPE
,
stmt_query
.
ptr
(),
stmt_query
.
length
(),
FALSE
,
FALSE
);
stmt_query
.
ptr
(),
stmt_query
.
length
(),
FALSE
,
FALSE
);
}
}
}
}
...
...
sql/sql_view.cc
View file @
e99c123a
...
@@ -577,7 +577,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
...
@@ -577,7 +577,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
List_iterator_fast
<
LEX_STRING
>
names
(
lex
->
view_list
);
List_iterator_fast
<
LEX_STRING
>
names
(
lex
->
view_list
);
LEX_STRING
*
name
;
LEX_STRING
*
name
;
int
i
;
int
i
;
for
(
i
=
0
;
name
=
names
++
;
i
++
)
for
(
i
=
0
;
name
=
names
++
;
i
++
)
{
{
buff
.
append
(
i
?
", "
:
"("
);
buff
.
append
(
i
?
", "
:
"("
);
...
@@ -1417,6 +1417,7 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
...
@@ -1417,6 +1417,7 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
query_cache_invalidate3
(
thd
,
view
,
0
);
query_cache_invalidate3
(
thd
,
view
,
0
);
sp_cache_invalidate
();
sp_cache_invalidate
();
}
}
if
(
mysql_bin_log
.
is_open
())
if
(
mysql_bin_log
.
is_open
())
{
{
thd
->
clear_error
();
thd
->
clear_error
();
...
@@ -1424,24 +1425,34 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
...
@@ -1424,24 +1425,34 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
thd
->
query
,
thd
->
query_length
,
FALSE
,
FALSE
);
thd
->
query
,
thd
->
query_length
,
FALSE
,
FALSE
);
}
}
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
if
(
error
)
if
(
error
)
{
{
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
if
(
wrong_object_name
)
if
(
wrong_object_name
)
{
{
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
my_error
(
ER_WRONG_OBJECT
,
MYF
(
0
),
wrong_object_db
,
wrong_object_name
,
my_error
(
ER_WRONG_OBJECT
,
MYF
(
0
),
wrong_object_db
,
wrong_object_name
,
"VIEW"
);
"VIEW"
);
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
if
(
non_existant_views
.
length
())
if
(
non_existant_views
.
length
())
{
{
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
my_error
(
ER_BAD_TABLE_ERROR
,
MYF
(
0
),
non_existant_views
.
c_ptr
());
my_error
(
ER_BAD_TABLE_ERROR
,
MYF
(
0
),
non_existant_views
.
c_ptr
());
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
if
(
mysql_bin_log
.
is_open
())
{
thd
->
clear_error
();
thd
->
binlog_query
(
THD
::
STMT_QUERY_TYPE
,
thd
->
query
,
thd
->
query_length
,
FALSE
,
FALSE
);
}
send_ok
(
thd
);
send_ok
(
thd
);
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
DBUG_RETURN
(
FALSE
);
DBUG_RETURN
(
FALSE
);
}
}
...
...
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