Tags: picodata/tarantool
Tags
chore!: add and export functions for working with VDBE statements This commit exports the following functions, allowing direct work with prepared VDBE statements: - sql_stmt_compile_wrapper - sql_stmt_finalize - sql_stmt_schema_version_is_valid - sql_stmt_execute_into_port_ext - sql_stmt_busy - sql_stmt_est_size - sql_stmt_execute_into_port (ranamed stmt_execute_into_port) These functions provide low-level control over statement compilation, validation, and execution allowing to manage statements in sbroad implementing the statement cache there. BREAKING CHANGE: stmt_execute_into_port's been renamed. Part of https://git.picodata.io/core/picodata/-/issues/1765 NO_DOC=internal NO_TEST=internal NO_CHANGELOG=internal
fix: fix strange order of uuid values in sql
We used to have the following cmp implementation in vdbe:
```
static int
mem_cmp_uuid(const struct Mem *a, const struct Mem *b)
{
assert((a->type & b->type & MEM_TYPE_UUID) != 0);
return memcmp(&a->u.uuid, &b->u.uuid, UUID_LEN);
}
```
In conjunction with tt_uuid's definition, this produces
rather obscure results when we try to ORDER BY uuid:
```
with q(x) as (
values
(cast ('424e1a4f-cd67-427c-91d9-275db9043963' as uuid)),
(cast ('70d20d76-75ef-496b-a4a4-ac9fa9b74eb1' as uuid)),
(cast ('44cbbc8e-9f7f-45b5-b075-111c04091840' as uuid))
)
select * from q order by x desc;
---
- metadata:
- name: X
type: uuid
rows:
- [44cbbc8e-9f7f-45b5-b075-111c04091840]
- [70d20d76-75ef-496b-a4a4-ac9fa9b74eb1]
- [424e1a4f-cd67-427c-91d9-275db9043963]
...
```
This patch fixes the problem by using tt_uuid_compare.
NO_DOC=internal
NO_CHANGELOG=internal
luajit: bump new version * ci: disable integration-tarantool-ecosystem.yml * codehealth: fix warnings for the codespell 2.3.0 * test: unify helpers for a custom allocator setting * Restore state when recording __concat metamethod throws OOM. * Fix state restore when recording __concat metamethod. * Avoid unpatching bytecode twice after a trace flush. * Fix bit op coercion for shifts in DUALNUM builds. * Fix IR_ABC hoisting. * ffi/gc: restore back rehashing of finalizers table Closes tarantool#11055 NO_DOC=LuaJIT submodule bump NO_TEST=LuaJIT submodule bump
feat: add obuf_new NO_DOC=picodata NO_CHANGELOG=picodata NO_TEST=picodata
feat: Add system stats, info and check for slab. NO_DOC=picodata NO_CHANGELOG=picodata NO_TEST=picodata
fix(httpc): re-enable basic auth for credentials in URL Fixes a regression introduced in commit 55020d3 ("cmake: reflect changes with CURL_DISABLE_CRYPTO_AUTH") where CURL_DISABLE_BASIC_AUTH=ON prevented the HTTP client from generating Authorization headers for URLs like http://user:pass@example.org. NO_DOC=bug fix NO_TEST=internal NO_CHANGELOG=internal
fix: correctly apply compat.binary_data_decoding on startup Option `compat.binary_data_decoding = 'old'` won't take effect on startup unless we mark it with `run_action_now = true`. NO_DOC=internal NO_TEST=internal NO_CHANGELOG=internal
lua: disable varbinary by default This change has proven to be too disruptive, so we have to revert to `compat.binary_data_decoding = 'old'. NO_DOC=internal NO_TEST=internal NO_CHANGELOG=internal
ci: fix downstream pipeline for module NO_DOC=ci NO_TEST=ci NO_CHANGELOG=ci
fix: right rules added for coverage NO_DOC=internal NO_TEST=internal NO_CHANGELOG=internal
PreviousNext