You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/09/29 02:25:20 UTC
[GitHub] [shardingsphere] FlyingZC commented on issue #21250: In XA transaction,the cursor syntax is abnormal.
FlyingZC commented on issue #21250:
URL: https://github.com/apache/shardingsphere/issues/21250#issuecomment-1261662112
Fixed
```
sharding_db=> select * from t_broadcast;
id | c_id | a | b
----+------+----+-------
1 | 1 | 10 | test1
2 | 2 | 20 | test2
3 | 3 | 10 | test3
4 | 4 | 40 | test4
5 | 5 | 50 | test5
(5 rows)
sharding_db=> show transaction rule;
default_type | provider_type | props
--------------+---------------+-------
XA | Narayana |
(1 row)
sharding_db=> start transaction;
START TRANSACTION
sharding_db=> cursor cur_test_01 for select * from t_broadcast order by 1;
DECLARE CURSOR
sharding_db=> fetch from cur_test_01;
id | c_id | a | b
----+------+----+-------
1 | 1 | 10 | test1
(1 row)
sharding_db=> end;
COMMIT
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org