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
26a5650d
Commit
26a5650d
authored
Jun 08, 2004
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL Syntax for Prepared Statements: post-merge fixes
parent
7e0455f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/sql_prepare.cc
sql/sql_prepare.cc
+4
-4
No files found.
sql/sql_prepare.cc
View file @
26a5650d
...
@@ -105,8 +105,8 @@ public:
...
@@ -105,8 +105,8 @@ public:
virtual
Statement
::
Type
type
()
const
;
virtual
Statement
::
Type
type
()
const
;
};
};
static
void
execute_stmt
(
THD
*
thd
,
Prepared_statement
*
stmt
,
static
void
execute_stmt
(
THD
*
thd
,
Prepared_statement
*
stmt
,
String
*
expanded_query
,
bool
set_context
=
false
);
String
*
expanded_query
,
bool
set_context
);
/******************************************************************************
/******************************************************************************
Implementation
Implementation
...
@@ -1810,7 +1810,7 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
...
@@ -1810,7 +1810,7 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
goto
set_params_data_err
;
goto
set_params_data_err
;
#endif
#endif
thd
->
protocol
=
&
thd
->
protocol_prep
;
// Switch to binary protocol
thd
->
protocol
=
&
thd
->
protocol_prep
;
// Switch to binary protocol
execute_stmt
(
thd
,
stmt
,
&
expanded_query
);
execute_stmt
(
thd
,
stmt
,
&
expanded_query
,
true
);
thd
->
protocol
=
&
thd
->
protocol_simple
;
// Use normal protocol
thd
->
protocol
=
&
thd
->
protocol_simple
;
// Use normal protocol
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
@@ -1862,7 +1862,7 @@ void mysql_sql_stmt_execute(THD *thd, LEX_STRING *stmt_name)
...
@@ -1862,7 +1862,7 @@ void mysql_sql_stmt_execute(THD *thd, LEX_STRING *stmt_name)
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
"EXECUTE"
);
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
"EXECUTE"
);
send_error
(
thd
);
send_error
(
thd
);
}
}
execute_stmt
(
thd
,
stmt
,
&
expanded_query
);
execute_stmt
(
thd
,
stmt
,
&
expanded_query
,
false
);
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
...
...
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