You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
139799: roachtest: fix unsortedMatricesDiffWithFloatComp helper r=yuzefovich a=yuzefovich
`unsortedMatricesDiffWithFloatComp` has a special logic for handling float and decimal arrays, and it figures out whether that logic is applicable based on the stringified type name. Previously, we would only match strings like `[]FLOAT4` for that, but lib/pq library returns `_FLOAT4` as the name for that array, so we would previously not apply the special logic in some cases, which would lead to spurious failures. This is now fixed.
Fixes: #139727.
Release note: None
140045: crosscluster: extra priv tests r=msbutler a=msbutler
This patch adds further e2e privilege tests for LDR and PCR
Epic: none
Release note: none
140073: deps: upgrade github.com/jackc/pgx to v4.18.3 r=spilchen a=emnet-crl
This PR upgrades the `jackc/pgx` library to v4.18.2. The previous version of the library was susceptible to an SQL injection vulnerability per [GO-2024-2606](1).
Fixes: CRDB-46987
Release note: None
[1]: https://pkg.go.dev/vuln/GO-2024-2606
140083: sql/opt: build CTEs for SQL expressions embedded in PL/pgSQL r=yuzefovich,mgartner a=DrewKimball
This commit fixes an oversight from when we introduced support for CTEs within routies. Namely, SQL expressions can contain subqueries, which in turn can contain CTEs. The logic for building a SQL *statement* within a PL/pgSQL routine correctly handles CTEs by building them into the constructed `RelExpr`. The logic for SQL *expressions` was previously missing the same.
To fix this issue, `plpgsqlBuilder.buildSQLExpr` now checks if the built scalar expression contained any CTEs. If it did, the scalar is wrapped in the built CTEs, which are in turn wrapped in a subquery, which is returned as the final scalar result. This prevents issues where the CTEs are built at an outer scope, which can produce invalid plans.
Fixes#138273
Release note (bug fix): Fixed a bug existing only in pre-release versions of v25.1. The bug could cause creation of a PL/pgSQL routine with a CTE to fail with an error like the following: `unexpected root expression: with`.
140100: authors: add Abhinav Gupta to authors r=Abhinav1299 a=Abhinav1299
Epic: None
Release note: None
Co-authored-by: Yahor Yuzefovich <[email protected]>
Co-authored-by: Michael Butler <[email protected]>
Co-authored-by: Emnet Gossaye <[email protected]>
Co-authored-by: Drew Kimball <[email protected]>
Co-authored-by: Abhinav1299 <[email protected]>
0 commit comments