-
Notifications
You must be signed in to change notification settings - Fork 6.2k
please support savepoint #6840
Copy link
Copy link
Closed
Labels
feature/acceptedThis feature request is accepted by product managersThis feature request is accepted by product managerstype/compatibilitytype/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Milestone
Description
Please answer these questions before submitting your issue. Thanks!
- What did you do?
If possible, provide a recipe for reproducing the error.
START TRANSACTION;
SELECT 1 FROM dual;
SAVEPOINT save1;
SELECT 1 FROM dual;
ROLLBACK TO SAVEPOINT save1;
COMMIT;- What did you expect to see?
All statements succeed.
- What did you see instead?
mysql> START TRANSACTION;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT 1 FROM dual;
+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.00 sec)
mysql> SAVEPOINT save1;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 9 near "SAVEPOINT save1"
mysql> SELECT 1 FROM dual;
+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.00 sec)
mysql> ROLLBACK TO SAVEPOINT save1;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 11 near "TO SAVEPOINT save1"
mysql> COMMIT;
Query OK, 0 rows affected (0.00 sec)- What version of TiDB are you using (
tidb-server -Vor runselect tidb_version();on TiDB)?
Release Version: v2.1.0-alpha-48-ge2c8c4e
Git Commit Hash: e2c8c4e
Git Branch: master
UTC Build Time: 2018-06-13 12:05:19
GoVersion: go version go1.10.2 linux/amd64
Race Enabled: false
TiKV Min Version: 2.1.0-alpha.1-c4133d3ef0f099f8716a916c198390b26293ec00
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature/acceptedThis feature request is accepted by product managersThis feature request is accepted by product managerstype/compatibilitytype/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.