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
541c94fc
Commit
541c94fc
authored
Jun 12, 2003
by
pem@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #643, which caused intermittent crashes in net_printf() with repeated
syntax errors in stored procedures.
parent
7c6522a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+6
-0
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+10
-0
sql/sp_head.cc
sql/sp_head.cc
+1
-0
No files found.
mysql-test/r/sp-error.result
View file @
541c94fc
delete from mysql.proc;
create procedure syntaxerror(t int);
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
create procedure syntaxerror(t int);
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
create procedure syntaxerror(t int);
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
create procedure proc1()
set @x = 42;
create function func1() returns int
...
...
mysql-test/t/sp-error.test
View file @
541c94fc
...
...
@@ -7,6 +7,16 @@ delete from mysql.proc;
delimiter
|
;
# This should give three syntax errors (sometimes crashed; bug #643)
# (Unfortunately, this is not a 100% test, on some platforms this
# passed despite the bug.)
--
error
1064
create
procedure
syntaxerror
(
t
int
)
|
--
error
1064
create
procedure
syntaxerror
(
t
int
)
|
--
error
1064
create
procedure
syntaxerror
(
t
int
)
|
# Check that we get the right error, i.e. UDF declaration parses correctly,
# but foo.so doesn't exist.
# QQ This generates an error message containing a misleading errno which
...
...
sql/sp_head.cc
View file @
541c94fc
...
...
@@ -376,6 +376,7 @@ sp_head::reset_lex(THD *thd)
/* We must reset ptr and end_of_query again */
sublex
->
ptr
=
m_lex
->
ptr
;
sublex
->
end_of_query
=
m_lex
->
end_of_query
;
sublex
->
tok_start
=
m_lex
->
tok_start
;
/* And keep the SP stuff too */
sublex
->
sphead
=
m_lex
->
sphead
;
sublex
->
spcont
=
m_lex
->
spcont
;
...
...
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