Jinzhu
c44405a25b
Implement Generics API ( #7424 )
...
* Implement Generics API
* Add more generics tests
* Add more tests and Take method
* use delayed‑ops pipeline for generics API
* fix generics tests for mysql
* Support SubQuery for Generics
* Add clause.JoinTable helper method
* Fix golangci-lint error
* Complete the design and implementation of generic version Join
* improve generics version Joins support
* allow configuring select/omit columns for joins via subqueries
* finish generic version Preload
* handle error of generics Joins/Preload
* fix tests
* Add LimitPerRecord for generic version Preload
* fix tests for mysql 5.7
* test for nested generic version Join/Preload
* Add WithResult support for generics API
* test reuse generics db conditions
* fix data race
* remove ExampleLRU test
* Add default transaction timeout support
* fix test
2025-05-25 15:40:40 +08:00
Leo Sjöberg
7f75b12bb2
Generate unique savepoint names for nested transactions ( #7174 )
...
* Generate unique savepoint names
* Add a test for deeply nested wrapped transactions
2024-09-14 20:58:29 +08:00
hakusai22
5e599a07ec
fix: typo ( #7003 )
...
* fix: typo
* fix: covered
2024-05-08 12:07:58 +08:00
Saeid
c2d571cbc8
test: coverage for duplicated key err ( #6389 )
...
* test: ErrDuplicatedKey coverage added
* test: updated sqlserver version
* test: removed sqlserver
* test: support added for sqlserver
---------
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com >
2023-06-10 21:05:19 +08:00
wangliuyang
812bb20c34
fix(nested transaction): SavePoint SQL Statement not support in Prepared Statements ( #6220 )
...
* test: add nested transaction and prepareStmt coexist test case
note: please test in the MySQL environment
Change-Id: I0db32adc5f74b0d443e98943d3b182236583b959
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com >
* fix(nested transaction): SavePoint SQL Statement not support in Prepared Statements
1. SavetPoint SQL Statement not support in Prepared Statements
e.g. see mysql8.0 doc: https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-statements.html
Change-Id: I082012db9b140e8ec69764c633724665cc802692
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com >
* revert(transaction_api): remove savepoint name pool,meaningless
Change-Id: I84aa9924fc54612005a81c83d66fdf8968ee56ad
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com >
---------
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com >
Co-authored-by: 王柳洋 <wangliuyang.520@bytedance.com >
2023-05-26 10:24:28 +08:00
jesse.tang
be440e7512
fix possible nil panic in tests ( #5720 )
...
* fix maybe nil panic
* reset code
2022-09-30 11:14:34 +08:00
Cr
7496c3a56e
fix: trx in hooks clone stmt ( #5338 )
...
* fix: trx in hooks
* chore: format by gofumpt
2022-05-17 14:13:41 +08:00
Jinzhu
189547f615
Fix new session with Begin, close #4120
2021-02-26 16:43:43 +08:00
Jinzhu
468152d45b
Add DisableNestedTransaction support
2020-12-16 19:33:35 +08:00
Jinzhu
dd0d74fad0
Fix transaction on closed conn when using prepared statement, close #3380
2020-09-03 19:16:55 +08:00
Jinzhu
2a716e04e6
Avoid panic for invalid transaction, close #3271
2020-08-17 12:16:42 +08:00
Jinzhu
7dc255acfe
Add SavePoint/RollbackTo/NestedTransaction
2020-06-19 18:30:04 +08:00
Jinzhu
2c1b04a2cf
Fix failed to create second record in same transaction, close #3060
2020-06-19 12:38:03 +08:00
Jinzhu
f0b6bd9ee0
Fix typo
2020-06-08 23:25:16 +08:00
Jinzhu
c8e7878b3e
Add PrepareStmt support
2020-06-05 11:40:24 +08:00
Jinzhu
8bb05a5a69
Refactor tests files
2020-06-02 10:50:38 +08:00
Jinzhu
e986371a42
Rename package name
2020-06-02 09:18:01 +08:00
Jinzhu
befef0c9a9
Improve Hooks
2020-06-01 00:12:20 +08:00
Jinzhu
5457fe88e6
Test Transactions
2020-05-31 18:51:43 +08:00