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
73207038
Commit
73207038
authored
Jan 05, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added correct res initialisation
and check of handler compatibility
parent
7e5d7b84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
sql/sql_prepare.cc
sql/sql_prepare.cc
+12
-1
No files found.
sql/sql_prepare.cc
View file @
73207038
...
...
@@ -906,6 +906,7 @@ static bool mysql_test_insert(Prepared_statement *stmt,
DBUG_RETURN
(
TRUE
);
}
if
((
values
=
its
++
))
{
uint
value_count
;
...
...
@@ -927,6 +928,16 @@ static bool mysql_test_insert(Prepared_statement *stmt,
value_count
=
values
->
elements
;
its
.
rewind
();
res
=
TRUE
;
if
(
table_list
->
lock_type
==
TL_WRITE_DELAYED
&&
!
(
table_list
->
table
->
file
->
table_flags
()
&
HA_CAN_INSERT_DELAYED
))
{
my_error
(
ER_ILLEGAL_HA
,
MYF
(
0
),
(
table_list
->
view
?
table_list
->
view_name
.
str
:
table_list
->
real_name
));
goto
error
;
}
while
((
values
=
its
++
))
{
counter
++
;
...
...
@@ -940,7 +951,7 @@ static bool mysql_test_insert(Prepared_statement *stmt,
}
}
res
=
0
;
res
=
FALSE
;
error:
lex
->
unit
.
cleanup
();
/* insert_values is cleared in open_table */
...
...
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