mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Affected rows for a SP now includes affected rows for all statements
The old behavior of returning the affected rows for the last statement in a stored procedure was more an accident than design. Having the number of affected rows for all sub statements is more useful and will not change just because on changes the order of statements in the stored procedure.
This commit is contained in:
committed by
Sergei Golubchik
parent
4be15fe065
commit
94bbe8ad58
@ -264,7 +264,7 @@ agaaaaaaa agaaaaaaa 1000-01-08 -4993 agaaaaaaa -4993
|
||||
CALL sp_ins_3();
|
||||
SELECT row_count();
|
||||
row_count()
|
||||
1
|
||||
3
|
||||
SELECT * FROM temp;
|
||||
f1 f2 f3 f4 f5 f6
|
||||
a^aaaaaaaa a^aaaaaaaa 1000-01-09 -4992 a^aaaaaaaa -4992
|
||||
@ -317,7 +317,7 @@ COUNT( f1 ) f1
|
||||
4 updated
|
||||
SELECT row_count();
|
||||
row_count()
|
||||
3
|
||||
7
|
||||
SELECT * FROM temp;
|
||||
f1 f2 f3 f4 f5 f6
|
||||
a^aaaaaaaa a^aaaaaaaa 1000-01-09 -4992 a^aaaaaaaa -4992
|
||||
@ -380,7 +380,7 @@ row_count() after delete
|
||||
2
|
||||
SELECT row_count();
|
||||
row_count()
|
||||
0
|
||||
8
|
||||
SELECT * FROM temp;
|
||||
f1 f2 f3 f4 f5 f6
|
||||
qwe xyz 1998-03-26 100 uvw 1000
|
||||
|
Reference in New Issue
Block a user