[to #52107651]mysql proc only return ok in c driver
This commit is contained in:
@ -619,18 +619,8 @@ insert into b values(x);
|
||||
end//
|
||||
set @px = 1;
|
||||
call p(@px);
|
||||
+------+
|
||||
| x |
|
||||
+------+
|
||||
| 1 |
|
||||
+------+
|
||||
set @py = 1;
|
||||
call pp(@py);
|
||||
+------+
|
||||
| x |
|
||||
+------+
|
||||
| 1 |
|
||||
+------+
|
||||
select * from a;
|
||||
+------+
|
||||
| a1 |
|
||||
@ -1873,11 +1863,6 @@ begin
|
||||
set x=1;
|
||||
end//
|
||||
call p(@a);
|
||||
+------+
|
||||
| x |
|
||||
+------+
|
||||
| 1 |
|
||||
+------+
|
||||
select @a;
|
||||
+------+
|
||||
| @a |
|
||||
|
||||
@ -1369,11 +1369,6 @@ insert into warehouse values(1, "4W+?M?/aG", "?VJ;t+P??m5v2?.=?T", "%N#RO?|??;[_
|
||||
## RUN TEST
|
||||
call order_status(0, 1, 5, 'ESEBARABLE');
|
||||
call stock_level(1, 5, 11, @low_stock);
|
||||
+-----------+
|
||||
| low_stock |
|
||||
+-----------+
|
||||
| 0 |
|
||||
+-----------+
|
||||
call payment(1, 1, 0, 1, 1, 'BAROUGHTEING', 1495.970000);
|
||||
call payment(1, 4, 0, 1, 1, 'CALLYBARPRI', 3258.880000);
|
||||
call payment(1, 8, 1892, 1, 8, '', 3254.660000);
|
||||
@ -1383,61 +1378,21 @@ call payment(1, 9, 0, 1, 6, 'PRIOUGHTOUGHT', 1772.030000);
|
||||
call payment(1, 8, 0, 1, 8, 'ABLEESEPRES', 1394.860000);
|
||||
##all items can be found
|
||||
call new_order(1, 4, 1, 1, 6, 36158, 1, 10, 4071, 1, 6, 49919, 1, 9, 56284, 1, 3, 73312, 1, 5, 81280, 1, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @rc);
|
||||
+------+
|
||||
| rc |
|
||||
+------+
|
||||
| 0 |
|
||||
+------+
|
||||
##all items can be found
|
||||
call new_order(1, 2, 1, 1, 14, 8063, 1, 5, 65014, 1, 3, 32766, 1, 6, 76767, 1, 7, 16347, 1, 9, 63436, 1, 7, 48061, 1, 1, 98170, 1, 4, 78779, 1, 1, 42720, 1, 2, 77791, 1, 3, 61436, 1, 3, 39336, 1, 9, 39807, 1, 5, 0, 0, 0, @rc);
|
||||
+------+
|
||||
| rc |
|
||||
+------+
|
||||
| 0 |
|
||||
+------+
|
||||
##all items can be found
|
||||
call new_order(1, 9, 1, 1, 15, 8115, 1, 2, 24448, 1, 10, 98302, 1, 8, 73728, 1, 4, 23965, 1, 5, 81852, 1, 5, 67928, 1, 3, 63995, 1, 5, 3936, 1, 10, 94624, 1, 6, 45056, 1, 7, 24309, 1, 4, 40936, 1, 9, 69055, 1, 10, 96504, 1, 5, @rc);
|
||||
+------+
|
||||
| rc |
|
||||
+------+
|
||||
| 0 |
|
||||
+------+
|
||||
##some items can not be found
|
||||
call new_order(1, 1, 1, 1, 6, 55288, 1, 3, 7998, 1, 6, 2048, 1, 2, 90108, 1, 6, 68540, 1, 9, 32767, 1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @rc);
|
||||
+------+
|
||||
| rc |
|
||||
+------+
|
||||
| 1 |
|
||||
+------+
|
||||
##some items can not be found
|
||||
call new_order(1, 3, 1, 1, 6, 88308, 1, 6, 88975, 1, 1, 12032, 1, 3, 23391, 1, 3, 49136, 1, 4, 7101, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @rc);
|
||||
+------+
|
||||
| rc |
|
||||
+------+
|
||||
| 1 |
|
||||
+------+
|
||||
call payment(1, 3, 8, 1, 3, '', 1120.650000);
|
||||
##some items can not be found
|
||||
call new_order(1, 4, 1, 1, 6, 12158, 1, 9, 16246, 1, 8, 24574, 1, 5, 86016, 1, 2, 44479, 1, 8, 73727, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @rc);
|
||||
+------+
|
||||
| rc |
|
||||
+------+
|
||||
| 1 |
|
||||
+------+
|
||||
call payment(1, 1, 1856, 1, 1, '', 2768.240000);
|
||||
##some items can not be found
|
||||
call new_order(1, 7, 1, 1, 6, 96926, 1, 3, 49151, 1, 4, 15357, 1, 7, 32512, 1, 7, 16128, 1, 3, 38144, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @rc);
|
||||
+------+
|
||||
| rc |
|
||||
+------+
|
||||
| 1 |
|
||||
+------+
|
||||
call stock_level(1, 2, 16, @low_stock);
|
||||
+-----------+
|
||||
| low_stock |
|
||||
+-----------+
|
||||
| 0 |
|
||||
+-----------+
|
||||
call payment(1, 5, 337, 1, 5, '', 2597.460000);
|
||||
call delivery(1, 1);
|
||||
|
||||
|
||||
@ -993,11 +993,6 @@ call proc_12976_a();
|
||||
| 2 | 2 |
|
||||
+-------------------------+--------------------+
|
||||
call proc_12976_b('A', @ep, @msg);
|
||||
+------+------+
|
||||
| ep | msg |
|
||||
+------+------+
|
||||
| | True |
|
||||
+------+------+
|
||||
select HEX(@ep), @msg;
|
||||
+----------+------+
|
||||
| HEX(@ep) | @msg |
|
||||
@ -1006,11 +1001,6 @@ select HEX(@ep), @msg;
|
||||
+----------+------+
|
||||
|
||||
call proc_12976_b('B', @ep, @msg);
|
||||
+------+-------+
|
||||
| ep | msg |
|
||||
+------+-------+
|
||||
| | False |
|
||||
+------+-------+
|
||||
select HEX(@ep), @msg;
|
||||
+----------+-------+
|
||||
| HEX(@ep) | @msg |
|
||||
|
||||
Reference in New Issue
Block a user