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
ab04ceaf
Commit
ab04ceaf
authored
Dec 01, 2005
by
ramil@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/usr/home/ram/work/mysql-5.0
parents
d80feb9e
37cfade0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
2 deletions
+59
-2
mysql-test/r/sp.result
mysql-test/r/sp.result
+24
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+31
-0
sql/sp_head.cc
sql/sp_head.cc
+1
-1
sql/sql_class.cc
sql/sql_class.cc
+2
-0
sql/sql_class.h
sql/sql_class.h
+1
-1
No files found.
mysql-test/r/sp.result
View file @
ab04ceaf
...
@@ -4046,4 +4046,28 @@ boo
...
@@ -4046,4 +4046,28 @@ boo
2
2
drop procedure bug14643_1|
drop procedure bug14643_1|
drop procedure bug14643_2|
drop procedure bug14643_2|
drop procedure if exists bug14304|
drop table if exists t3, t4|
create table t3(a int primary key auto_increment)|
create table t4(a int primary key auto_increment)|
create procedure bug14304()
begin
insert into t3 set a=null;
insert into t4 set a=null;
insert into t4 set a=null;
insert into t4 set a=null;
insert into t4 set a=null;
insert into t4 set a=null;
insert into t4 select null as a;
insert into t3 set a=null;
insert into t3 set a=null;
select * from t3;
end|
call bug14304()|
a
1
2
3
drop procedure bug14304|
drop table t3, t4|
drop table t1,t2;
drop table t1,t2;
mysql-test/t/sp.test
View file @
ab04ceaf
...
@@ -4823,6 +4823,37 @@ call bug14643_2()|
...
@@ -4823,6 +4823,37 @@ call bug14643_2()|
drop
procedure
bug14643_1
|
drop
procedure
bug14643_1
|
drop
procedure
bug14643_2
|
drop
procedure
bug14643_2
|
#
# BUG#14304: auto_increment field incorrect set in SP
#
--
disable_warnings
drop
procedure
if
exists
bug14304
|
drop
table
if
exists
t3
,
t4
|
--
enable_warnings
create
table
t3
(
a
int
primary
key
auto_increment
)
|
create
table
t4
(
a
int
primary
key
auto_increment
)
|
create
procedure
bug14304
()
begin
insert
into
t3
set
a
=
null
;
insert
into
t4
set
a
=
null
;
insert
into
t4
set
a
=
null
;
insert
into
t4
set
a
=
null
;
insert
into
t4
set
a
=
null
;
insert
into
t4
set
a
=
null
;
insert
into
t4
select
null
as
a
;
insert
into
t3
set
a
=
null
;
insert
into
t3
set
a
=
null
;
select
*
from
t3
;
end
|
call
bug14304
()
|
drop
procedure
bug14304
|
drop
table
t3
,
t4
|
#
#
# BUG#NNNN: New bug synopsis
# BUG#NNNN: New bug synopsis
...
...
sql/sp_head.cc
View file @
ab04ceaf
...
@@ -1069,7 +1069,7 @@ int sp_head::execute(THD *thd)
...
@@ -1069,7 +1069,7 @@ int sp_head::execute(THD *thd)
}
}
/* we should cleanup free_list and memroot, used by instruction */
/* we should cleanup free_list and memroot, used by instruction */
thd
->
free_items
();
thd
->
cleanup_after_query
();
free_root
(
&
execute_mem_root
,
MYF
(
0
));
free_root
(
&
execute_mem_root
,
MYF
(
0
));
/*
/*
...
...
sql/sql_class.cc
View file @
ab04ceaf
...
@@ -1949,6 +1949,7 @@ void THD::reset_sub_statement_state(Sub_statement_state *backup,
...
@@ -1949,6 +1949,7 @@ void THD::reset_sub_statement_state(Sub_statement_state *backup,
backup
->
last_insert_id
=
last_insert_id
;
backup
->
last_insert_id
=
last_insert_id
;
backup
->
next_insert_id
=
next_insert_id
;
backup
->
next_insert_id
=
next_insert_id
;
backup
->
insert_id_used
=
insert_id_used
;
backup
->
insert_id_used
=
insert_id_used
;
backup
->
clear_next_insert_id
=
clear_next_insert_id
;
backup
->
limit_found_rows
=
limit_found_rows
;
backup
->
limit_found_rows
=
limit_found_rows
;
backup
->
examined_row_count
=
examined_row_count
;
backup
->
examined_row_count
=
examined_row_count
;
backup
->
sent_row_count
=
sent_row_count
;
backup
->
sent_row_count
=
sent_row_count
;
...
@@ -2000,6 +2001,7 @@ void THD::restore_sub_statement_state(Sub_statement_state *backup)
...
@@ -2000,6 +2001,7 @@ void THD::restore_sub_statement_state(Sub_statement_state *backup)
last_insert_id
=
backup
->
last_insert_id
;
last_insert_id
=
backup
->
last_insert_id
;
next_insert_id
=
backup
->
next_insert_id
;
next_insert_id
=
backup
->
next_insert_id
;
insert_id_used
=
backup
->
insert_id_used
;
insert_id_used
=
backup
->
insert_id_used
;
clear_next_insert_id
=
backup
->
clear_next_insert_id
;
limit_found_rows
=
backup
->
limit_found_rows
;
limit_found_rows
=
backup
->
limit_found_rows
;
sent_row_count
=
backup
->
sent_row_count
;
sent_row_count
=
backup
->
sent_row_count
;
client_capabilities
=
backup
->
client_capabilities
;
client_capabilities
=
backup
->
client_capabilities
;
...
...
sql/sql_class.h
View file @
ab04ceaf
...
@@ -1090,7 +1090,7 @@ class Sub_statement_state
...
@@ -1090,7 +1090,7 @@ class Sub_statement_state
ha_rows
cuted_fields
,
sent_row_count
,
examined_row_count
;
ha_rows
cuted_fields
,
sent_row_count
,
examined_row_count
;
ulong
client_capabilities
;
ulong
client_capabilities
;
uint
in_sub_stmt
;
uint
in_sub_stmt
;
bool
enable_slow_log
,
insert_id_used
;
bool
enable_slow_log
,
insert_id_used
,
clear_next_insert_id
;
my_bool
no_send_ok
;
my_bool
no_send_ok
;
SAVEPOINT
*
savepoints
;
SAVEPOINT
*
savepoints
;
};
};
...
...
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