Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43047: client,kv: new savepoint API r=andreimatei a=knz This patch introduces the KV savepoint API as discussed in the savepoints RFC: ```go // CreateSavepoint establishes a savepoint. // This method is only valid when called on RootTxns. CreateSavepoint(context.Context) (SavepointToken, error) // RollbackToSavepoint rolls back to the given savepoint. The // savepoint must not have been rolled back or released already. // All savepoints "under" the savepoint being rolled back // are also rolled back and their token must not be used any more. // This method is only valid when called on RootTxns. RollbackToSavepoint(context.Context, SavepointToken) error // ReleaseSavepoint releases the given savepoint. The savepoint // must not have been rolled back or released already. // All savepoints "under" the savepoint being released // are also released and their token must not be used any more. // This method is only valid when called on RootTxns. ReleaseSavepoint(context.Context, SavepointToken) error ``` Ths initial implementation does not (yet) enable clients to roll back over errors. Release note: None 44626: workload/tpch: unskip query 12 r=yuzefovich a=yuzefovich Previously, query 12 was skipped because the results returned by lib/pq didn't match the expected output. The issue is that the driver returned []byte for decimals whereas we expected a string value and `fmt.Sprint` was giving us the ASCII codes of the digits instead of printing out the number. This is fixed by checking whether the returned value is []byte, and if so, converting it to string directly. Release note: None 44633: sem/tree: fix LIKE ESCAPE when the pattern contains Unicode symbols r=yuzefovich a=yuzefovich Previously, we were incorrectly updating the pattern when the current character was Unicode symbol that had the width of more than a single byte. Fixes: #44621. Release note (bug fix): Previously, running a query with LIKE operator using custom ESCAPE symbol when the pattern contained Unicode characters could result in an internal error in CockroachDB, and now this has been fixed. Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net> Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
- Loading branch information