- new::native_upsert::native_upsert::should_not_if_has_nested_select
- new::native_upsert::native_upsert::should_not_use_if_where_and_create_different
- new::native_upsert::native_upsert::should_not_use_native_upsert_on_two_uniques
- new::ref_actions::on_update::restrict::one2many_opt::upsert_parent_failure
- new::ref_actions::on_update::restrict::one2many_req::upsert_parent_failure
- new::ref_actions::on_update::restrict::one2one_opt::upsert_parent_failure
- new::ref_actions::on_update::restrict::one2one_req::upsert_parent_failure
- new::ref_actions::on_update::set_null::one2many_opt::upsert_parent
- new::ref_actions::on_update::set_null::one2one_opt::upsert_parent
- new::relation_load_strategy::relation_load_strategy::test_upsert_lateral_join
- new::relation_load_strategy::relation_load_strategy::test_upsert_lateral_query
- queries::filters::one_relation::one_relation::one2one_join_relation_1level
- queries::filters::self_relation::self_relation_filters::l2_one2one
- queries::filters::self_relation::self_relation_filters::l2_query
- queries::filters::self_relation::self_relation_filters::many2many_empty_every
- queries::filters::self_relation::self_relation_filters::many2many_empty_none
- queries::filters::self_relation::self_relation_filters::many2many_empty_some
- queries::filters::self_relation::self_relation_filters::many2many_none
- queries::filters::self_relation::self_relation_filters::many2many_null_error
- queries::filters::self_relation::self_relation_filters::many2many_some
- queries::filters::self_relation::self_relation_filters::many2one
- queries::filters::self_relation::self_relation_filters::many2one_null_filter
- queries::filters::self_relation::self_relation_filters::one2one_null
- queries::filters::self_relation::self_relation_filters::one2one_null_fail
- queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_cursor
- queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_cursor_skip_take
- writes::ids::byoid::byoid::nested_upsert_should_work_1
- writes::ids::byoid::byoid::upsert_should_work_1
- writes::ids::byoid::byoid::upsert_should_work_2
- writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_1_single_field_rel
- writes::ids::relation_pks::single_pk_rel_field::single_pk_rel_field::id_also_1_1_single_field_rel
- writes::ids::relation_pks::single_pk_rel_field::single_pk_rel_field::id_also_1_m_single_field_rel
- writes::ids::upsert_uuid::upsert_uuid::upsert_id_uuid_should_work
- writes::regressions::graph_reorder_regression::graph_reorder::test
- writes::regressions::if_node_siblig_dep_regression::if_node_sibling::test
- writes::regressions::prisma_11731::connect_or_create::one2one_inlined_child
- writes::regressions::prisma_11731::connect_or_create::one2one_inlined_parent
- writes::relations::rel_graphql::rel_graphql::one2one_rel_allow_one_item_per_side
- writes::unchecked_writes::unchecked_update_spec::unchecked_update::allow_write_non_inline_rels
- writes::uniques_and_node_selectors::multi_field_uniq_mutation::multi_field_uniq_mut::nested_connect_one2one_rel
- writes::uniques_and_node_selectors::multi_field_uniq_mutation::multi_field_uniq_mut::nested_set_multi_field_uniq
- writes::uniques_and_node_selectors::relation_uniques::compound_uniq_rel_field::compound_uniq_rel_field::compound_uniq_with_1_1_multi_rel
- writes::uniques_and_node_selectors::relation_uniques::compound_uniq_rel_field::compound_uniq_rel_field::compound_uniq_with_1_1_single_rel
- writes::uniques_and_node_selectors::relation_uniques::compound_uniq_rel_field::compound_uniq_rel_field::compound_uniq_with_1_m_multi_rel
- writes::uniques_and_node_selectors::relation_uniques::compound_uniq_rel_field::compound_uniq_rel_field::compound_uniq_with_1_m_single_rel
1: new::relation_load_strategy::relation_load_strategy::test_upsert_lateral_join (45)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
not implemented: Discriminant(<DEC>)
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=relation_load_strategy_test_upsert_lateral_join"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
login String @unique
posts Post[]
comments Comment[]
}
model Post {
id Int @id
author User @relation(fields: [authorId], references: [id], onDelete: Cascade)
authorId Int
title String
content String
comments Comment[]
}
model Comment {
id Int @id
body String
post Post @relation(fields: [postId], references: [id], onDelete: Cascade)
postId Int
author User @relation(fields: [authorId], references: [id], onDelete: NoAction, onUpdate: NoAction)
authorId Int
}
[2025-04-30T18:18:07Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:07Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:07Z INFO tokio_postgres::connection] NOTICE: schema "relation_load_strategy_test_upsert_lateral_join" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/translate.rs:88:18:
not implemented: Discriminant(1)
at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====
thread 'new::relation_load_strategy::relation_load_strategy::test_upsert_lateral_join' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_upsert_lateral_join
at ./tests/new/relation_load_strategy.rs:102:17
28: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_upsert_lateral_join::{{closure}}
at ./tests/new/relation_load_strategy.rs:102:97
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::cursor::bigint_cursor::bigint_id_must_work
- new::regressions::prisma_14696::prisma_14696::create_does_not_panic
- queries::aggregation::min::aggregation_min::min_some_records
- queries::aggregation::min::aggregation_min::min_with_all_sorts_of_query_args
- queries::aggregation::sum::aggregation_sum::sum_some_records
- queries::aggregation::sum::aggregation_sum::sum_with_all_sorts_of_query_args
- queries::batching::select_one_singular::singular_batch::batch_bigint_id
- queries::data_types::bigint::bigint::read_many
- queries::data_types::bigint::bigint::read_one
- queries::simple::m2m::m2m::m2m_sharing_same_row
- raw::sql::input_coercion::input_coercion::scalar_input_correctly_coerced
- writes::data_types::bigint::bigint::using_bigint_field
- writes::data_types::native_types::postgres::postgres::native_int_types
1: raw::sql::input_coercion::input_coercion::scalar_input_correctly_coerced (13)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=input_coercion_scalar_input_correctly_coerced"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
string String?
int Int?
bInt BigInt?
float Float?
bytes Bytes?
bool Boolean?
dt DateTime?
}
[2025-04-30T18:19:24Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:24Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:24Z INFO tokio_postgres::connection] NOTICE: schema "input_coercion_scalar_input_correctly_coerced" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:432:21)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====
thread 'raw::sql::input_coercion::input_coercion::scalar_input_correctly_coerced' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::raw::sql::input_coercion::input_coercion::scalar_input_correctly_coerced
at ./tests/raw/sql/input_coercion.rs:8:5
28: query_engine_tests::raw::sql::input_coercion::input_coercion::scalar_input_correctly_coerced::{{closure}}
at ./tests/raw/sql/input_coercion.rs:8:38
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::aggregation::group_by::aggregation_group_by::group_by_ordering_max_aggregation
- queries::aggregation::group_by::aggregation_group_by::group_by_ordering_min_aggregation
- queries::aggregation::group_by::aggregation_group_by::group_by_ordering_sum_aggregation
- queries::aggregation::group_by::aggregation_group_by::group_by_relation_filters
- queries::aggregation::group_by::aggregation_group_by::group_by_rev_ordering
- queries::aggregation::group_by::aggregation_group_by::group_by_scalar_filters
- queries::aggregation::group_by::aggregation_group_by::group_by_some_records
- queries::aggregation::group_by_having::aggr_group_by_having::basic_having_scalar_filter
- queries::aggregation::group_by_having::aggr_group_by_having::having_max_scalar_filter
- queries::aggregation::group_by_having::aggr_group_by_having::having_min_scalar_filter
- queries::aggregation::group_by_having::decimal_aggregation_group_by_having::having_max_scalar_filter
- queries::filters::field_reference::having_filter::having_filter::basic_having_filter
1: queries::aggregation::group_by::aggregation_group_by::group_by_rev_ordering (12)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: Error: Expected zero or one element, got <DEC>
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=aggregation_group_by_group_by_rev_ordering"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model A {
id Int @id
float Float
int Int
string String
b_id Int?
b B? @relation(fields: [b_id], references: [id])
}
model B {
id Int @id
field String
many_a A[]
}
[2025-04-30T18:18:17Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:17Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:17Z INFO tokio_postgres::connection] NOTICE: schema "aggregation_group_by_group_by_rev_ordering" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: Error: Expected zero or one element, got 3
at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:631:17)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Promise.all (index 0)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:577:25)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:679:22)
at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====
thread 'queries::aggregation::group_by::aggregation_group_by::group_by_rev_ordering' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::aggregation::group_by::aggregation_group_by::group_by_rev_ordering
at ./tests/queries/aggregation/group_by.rs:44:5
28: query_engine_tests::queries::aggregation::group_by::aggregation_group_by::group_by_rev_ordering::{{closure}}
at ./tests/queries/aggregation/group_by.rs:44:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent
- new::ref_actions::on_update::cascade::one2many_req::update_parent
- new::ref_actions::on_update::cascade::one2one_opt::update_parent_cascade
- new::ref_actions::on_update::cascade::one2one_opt::update_parent_compound_cascade
- new::ref_actions::on_update::cascade::one2one_req::update_parent_cascade
- new::ref_actions::on_update::set_null::one2many_opt::update_compound_parent
- new::ref_actions::on_update::set_null::one2many_opt::update_parent
- new::ref_actions::on_update::set_null::one2one_opt::update_parent
- new::ref_actions::on_update::set_null::one2one_opt::update_parent_recurse_restrict_failure
- new::ref_actions::on_update::set_null::one2one_opt::update_parent_recurse_set_null
1: new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent (10)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: DriverAdapterError: invalid input syntax for type integer: "{"<DEC>"}"
at PrismaPgAdapter.onError (file:<PATH>:<DEC>:<DEC>)
at PrismaPgAdapter.performIO (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async PrismaPgAdapter.queryRaw (file:<PATH>:<DEC>:<DEC>)
at async file:<PATH>:<DEC>:<DEC>
at async file:<PATH>:<DEC>:<DEC>
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async file:<PATH>:<DEC>:<DEC>
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=cascade_onU_1toM_opt_update_compound_parent"
relationMode = "prisma"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Parent {
id Int @id
name String?
uniq_1 String?
uniq_2 String?
children Child[]
@@unique([uniq_1, uniq_2])
}
model Child {
id Int @id
name String?
parent_uniq_1 String?
parent_uniq_2 String?
parent Parent? @relation(fields: [parent_uniq_1, parent_uniq_2], references: [uniq_1, uniq_2], onUpdate: Cascade)
}
[2025-04-30T18:17:51Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:17:51Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:17:51Z INFO tokio_postgres::connection] NOTICE: schema "cascade_onU_1toM_opt_update_compound_parent" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: DriverAdapterError: invalid input syntax for type integer: "{"1"}"
at PrismaPgAdapter.onError (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:511:11)
at PrismaPgAdapter.performIO (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:506:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async PrismaPgAdapter.queryRaw (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:438:30)
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:618:35
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:24
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:626:23)
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:587:41
at async Promise.all (index 0)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:585:9)
=====
thread 'new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent
at ./tests/new/ref_actions/on_update/cascade.rs:433:5
28: query_engine_tests::new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent::{{closure}}
at ./tests/new/ref_actions/on_update/cascade.rs:433:54
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc
- queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one_field_asc_m2one2m_count_desc
- queries::order_and_pagination::order_by_dependent::order_by_dependent::circular_diff_related_record_asc
- queries::order_and_pagination::order_by_dependent::order_by_dependent::circular_diff_related_record_desc
- queries::order_and_pagination::order_by_dependent::order_by_dependent::hop_1_related_record_asc_nulls
- queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_asc
- queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc
- queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::hop_1_related_record_asc_nulls
- queries::regressions::pagination_regression::pagination_regr::prisma_3505_case_1
- queries::regressions::pagination_regression::pagination_regr::prisma_3505_case_2
1: queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
assertion `left == right` failed: Query result: {"data":{"findManyModelA":[{"id":<DEC>,"b":null},{"id":<DEC>,"b":null},{"id":<DEC>,"b":null},{"id":<DEC>,"b":{"c":{"a":{"id":<DEC>}}}}]}} is not part of the expected results: ["{\"data\":{\"findManyModelA\":[{\"id\":<DEC>,\"b\":{\"c\":{\"a\":{\"id\":<DEC>}}}},{\"id\":<DEC>,\"b\":{\"c\":{\"a\":{\"id\":<DEC>}}}}]}}"] for connector PostgreSQL (pg.js.wasm)
left: false
right: true
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=order_by_dependent_pag_circular_diff_related_record_desc"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model ModelA {
id Int @id
b_id Int? @unique
b ModelB? @relation(fields: [b_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
c ModelC?
}
model ModelB {
id Int @id
a ModelA?
c_id Int? @unique
c ModelC? @relation(fields: [c_id], references: [id])
}
model ModelC {
id Int @id
b ModelB?
a_id Int? @unique
a ModelA? @relation(fields: [a_id], references: [id])
}
[2025-04-30T18:19:04Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:04Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:04Z INFO tokio_postgres::connection] NOTICE: schema "order_by_dependent_pag_circular_diff_related_record_desc" does not exist, skipping
thread 'queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/order_by_dependent_pagination.rs:278:9:
assertion `left == right` failed: Query result: {"data":{"findManyModelA":[{"id":3,"b":null},{"id":4,"b":null},{"id":2,"b":null},{"id":1,"b":{"c":{"a":{"id":3}}}}]}} is not part of the expected results: ["{\"data\":{\"findManyModelA\":[{\"id\":2,\"b\":{\"c\":{\"a\":{\"id\":4}}}},{\"id\":1,\"b\":{\"c\":{\"a\":{\"id\":3}}}}]}}"] for connector PostgreSQL (pg.js.wasm)
left: false
right: true
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
4: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::run_circular_diff_related_record_desc::{{closure}}
at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:278:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc
at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:272:5
39: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc::{{closure}}
at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:272:42
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
assertion `left == right` failed: Query result: {"data":{"findManyPost":[{"id":<DEC>,"user":null},{"id":<DEC>,"user":null},{"id":<DEC>,"user":{"categories":[{"name":"Startup"}]}}]}} is not part of the expected results: ["{\"data\":{\"findManyPost\":[{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Startup\"}]}}]}}", "{\"data\":{\"findManyPost\":[{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Startup\"}]}}]}}"] for connector PostgreSQL (pg.js.wasm)
left: false
right: true
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=order_by_aggr_m2one2m_count_desc"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
name String
posts Post[]
categories Category[]
}
model Post {
id Int @id
title String
user User @relation(fields: [userId], references: [id])
userId Int
categories Category[]
}
model Category {
id Int @id
name String
posts Post[]
users User[]
}
[2025-04-30T18:19:13Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:13Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:13Z INFO tokio_postgres::connection] NOTICE: schema "order_by_aggr_m2one2m_count_desc" does not exist, skipping
thread 'queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/order_by_aggregation.rs:218:9:
assertion `left == right` failed: Query result: {"data":{"findManyPost":[{"id":2,"user":null},{"id":3,"user":null},{"id":1,"user":{"categories":[{"name":"Startup"}]}}]}} is not part of the expected results: ["{\"data\":{\"findManyPost\":[{\"id\":2,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":3,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":1,\"user\":{\"categories\":[{\"name\":\"Startup\"}]}}]}}", "{\"data\":{\"findManyPost\":[{\"id\":3,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":2,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":1,\"user\":{\"categories\":[{\"name\":\"Startup\"}]}}]}}"] for connector PostgreSQL (pg.js.wasm)
left: false
right: true
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
4: query_engine_tests::queries::order_and_pagination::order_by_aggregation::order_by_aggr::run_m2one2m_count_desc::{{closure}}
at ./tests/queries/order_and_pagination/order_by_aggregation.rs:218:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc
at ./tests/queries/order_and_pagination/order_by_aggregation.rs:214:5
39: query_engine_tests::queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc::{{closure}}
at ./tests/queries/order_and_pagination/order_by_aggregation.rs:214:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one_field_asc_m2one2m_count_desc (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
assertion `left == right` failed: Query result: {"data":{"findManyPost":[{"id":<DEC>,"user":{"name":"Alice","categories":[{"name":"Startup"}]}},{"id":<DEC>,"user":null},{"id":<DEC>,"user":null}]}} is not part of the expected results: ["{\"data\":{\"findManyPost\":[{\"id\":<DEC>,\"user\":{\"name\":\"Alice\",\"categories\":[{\"name\":\"Startup\"}]}},{\"id\":<DEC>,\"user\":{\"name\":\"Bob\",\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"name\":\"Bob\",\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}}]}}", "{\"data\":{\"findManyPost\":[{\"id\":<DEC>,\"user\":{\"name\":\"Alice\",\"categories\":[{\"name\":\"Startup\"}]}},{\"id\":<DEC>,\"user\":{\"name\":\"Bob\",\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"name\":\"Bob\",\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}}]}}"] for connector PostgreSQL (pg.js.wasm)
left: false
right: true
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=order_by_aggr_m2one_field_asc_m2one2m_count_desc"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
name String
posts Post[]
categories Category[]
}
model Post {
id Int @id
title String
user User @relation(fields: [userId], references: [id])
userId Int
categories Category[]
}
model Category {
id Int @id
name String
posts Post[]
users User[]
}
[2025-04-30T18:18:47Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:47Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:47Z INFO tokio_postgres::connection] NOTICE: schema "order_by_aggr_m2one_field_asc_m2one2m_count_desc" does not exist, skipping
thread 'queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one_field_asc_m2one2m_count_desc' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/order_by_aggregation.rs:259:9:
assertion `left == right` failed: Query result: {"data":{"findManyPost":[{"id":1,"user":{"name":"Alice","categories":[{"name":"Startup"}]}},{"id":2,"user":null},{"id":3,"user":null}]}} is not part of the expected results: ["{\"data\":{\"findManyPost\":[{\"id\":1,\"user\":{\"name\":\"Alice\",\"categories\":[{\"name\":\"Startup\"}]}},{\"id\":2,\"user\":{\"name\":\"Bob\",\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":3,\"user\":{\"name\":\"Bob\",\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}}]}}", "{\"data\":{\"findManyPost\":[{\"id\":1,\"user\":{\"name\":\"Alice\",\"categories\":[{\"name\":\"Startup\"}]}},{\"id\":3,\"user\":{\"name\":\"Bob\",\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":2,\"user\":{\"name\":\"Bob\",\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}}]}}"] for connector PostgreSQL (pg.js.wasm)
left: false
right: true
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
4: query_engine_tests::queries::order_and_pagination::order_by_aggregation::order_by_aggr::run_m2one_field_asc_m2one2m_count_desc::{{closure}}
at ./tests/queries/order_and_pagination/order_by_aggregation.rs:259:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one_field_asc_m2one2m_count_desc
at ./tests/queries/order_and_pagination/order_by_aggregation.rs:255:5
39: query_engine_tests::queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one_field_asc_m2one2m_count_desc::{{closure}}
at ./tests/queries/order_and_pagination/order_by_aggregation.rs:255:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::aggregation::group_by::aggregation_group_by::group_by_multiple_ordering
- queries::aggregation::group_by::aggregation_group_by::group_by_ordering_aggr_and_having
- queries::aggregation::group_by::aggregation_group_by::group_by_ordering_aggr_multiple_fields
- queries::aggregation::group_by::aggregation_group_by::group_by_ordering_avg_aggregation
- queries::aggregation::group_by::aggregation_group_by::group_by_ordering_count_aggregation
- queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel
- queries::aggregation::group_by_having::decimal_aggregation_group_by_having::having_min_scalar_filter
1: queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel (7)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: Error: Expected zero or one element, got <DEC>
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=aggr_group_by_having_having_without_aggr_sel"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
int Int?
bInt BigInt?
float Float?
string String?
}
[2025-04-30T18:18:10Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:10Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:10Z INFO tokio_postgres::connection] NOTICE: schema "aggr_group_by_having_having_without_aggr_sel" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: Error: Expected zero or one element, got 2
at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:631:17)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Promise.all (index 0)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:577:25)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:679:22)
at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====
thread 'queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel
at ./tests/queries/aggregation/group_by_having.rs:353:5
28: query_engine_tests::queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel::{{closure}}
at ./tests/queries/aggregation/group_by_having.rs:353:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- writes::data_types::scalar_list::base::basic_types::behave_like_regular_val_for_create_and_update
- writes::data_types::scalar_list::base::basic_types::create_mut_return_items_with_empty_lists
- writes::data_types::scalar_list::base::basic_types::create_mut_work_with_list_vals
- writes::data_types::scalar_list::base::basic_types::set_base
- writes::data_types::scalar_list::base::basic_types::update_mut_push_empty_scalar_list
- writes::data_types::scalar_list::defaults::basic::basic_empty_write
- writes::data_types::scalar_list::defaults::basic::basic_write
1: writes::data_types::scalar_list::base::basic_types::set_base (7)
enum MyEnum {
A
B
}
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: Error: DataMapper: Bytes data is not a string, got: object
at mapValue (file:<PATH>:<DEC>:<DEC>)
at mapObject (file:<PATH>:<DEC>:<DEC>)
at mapArrayOrObject (file:<PATH>:<DEC>:<DEC>)
at applyDataMap (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=basic_types_set_base"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model ScalarModel {
id Int @id
strings String[]
ints Int[]
floats Float[]
booleans Boolean[]
enums MyEnum[]
dateTimes DateTime[]
bytes Bytes[]
}
enum MyEnum {
A
B
}
[2025-04-30T18:19:29Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:29Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:29Z INFO tokio_postgres::connection] NOTICE: schema "basic_types_set_base" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: Error: DataMapper: Bytes data is not a string, got: object
at mapValue (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:257:15)
at mapObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:214:28)
at mapArrayOrObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:190:12)
at applyDataMap (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:175:14)
at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:680:16)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====
thread 'writes::data_types::scalar_list::base::basic_types::set_base' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::writes::data_types::scalar_list::base::basic_types::set_base
at ./tests/writes/data_types/scalar_list/base.rs:31:5
28: query_engine_tests::writes::data_types::scalar_list::base::basic_types::set_base::{{closure}}
at ./tests/writes/data_types/scalar_list/base.rs:31:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::ref_actions::on_update::restrict::one2many_opt::update_parent
- new::ref_actions::on_update::restrict::one2many_opt::update_parent_failure
- new::ref_actions::on_update::restrict::one2many_req::update_parent
- new::ref_actions::on_update::restrict::one2many_req::update_parent_failure
- new::ref_actions::on_update::restrict::one2one_opt::update_parent_failure
- new::ref_actions::on_update::restrict::one2one_req::update_parent_failure
1: new::ref_actions::on_update::restrict::one2many_req::update_parent (6)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: Error: DataMapper: Expected an array or an object, got: undefined
at mapArrayOrObject (file:<PATH>:<DEC>:<DEC>)
at applyDataMap (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=restrict_onU_1toM_req_update_parent"
relationMode = "prisma"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Parent {
id Int @id
name String
uniq String @unique
children Child[]
}
model Child {
id Int @id
parent_uniq String
parent Parent @relation(fields: [parent_uniq], references: [uniq], onUpdate: Restrict)
}
[2025-04-30T18:17:54Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:17:54Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:17:54Z INFO tokio_postgres::connection] NOTICE: schema "restrict_onU_1toM_req_update_parent" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: Error: DataMapper: Expected an array or an object, got: undefined
at mapArrayOrObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:192:9)
at applyDataMap (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:175:14)
at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:680:16)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====
thread 'new::ref_actions::on_update::restrict::one2many_req::update_parent' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::new::ref_actions::on_update::restrict::one2many_req::update_parent
at ./tests/new/ref_actions/on_update/restrict.rs:258:5
28: query_engine_tests::new::ref_actions::on_update::restrict::one2many_req::update_parent::{{closure}}
at ./tests/new/ref_actions/on_update/restrict.rs:258:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::data_types::through_relation::scalar_relations::decimal_type
- queries::data_types::through_relation::scalar_relations::json_type
- queries::filters::many_relation::many_relation::simple_scalar_filter
- queries::filters::one_relation::one_relation::nested_to_one_filter
- queries::filters::self_relation_regression::sr_regression::all_categories
- writes::data_types::decimal::decimal::using_decimal_as_id
1: queries::data_types::through_relation::scalar_relations::decimal_type (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_decimal_type
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"{ findManyParent(orderBy: { id: asc }) { id children { childId dec } } }"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyParent":[{"id":<DEC>,"children":[{"childId":<DEC>,"dec":"<DEC>"},{"childId":<DEC>,"dec":"-<DEC>"},{"childId":<DEC>,"dec":"<DEC>.<DEC>"},{"childId":<DEC>,"dec":"<DEC>.<DEC>"}]}]}}
<DEC> │+{"data":{"findManyParent":[{"id":<DEC>,"children":[{"childId":<DEC>,"dec":<DEC>},{"childId":<DEC>,"dec":-<DEC>},{"childId":<DEC>,"dec":<DEC>.<DEC>},{"childId":<DEC>,"dec":<DEC>.<DEC>}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_decimal_type' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=scalar_relations_decimal_type"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Parent {
id Int @id
children Child[]
}
model Child {
childId Int @id
parentId Int?
parent Parent? @relation(fields: [parentId], references: [id])
dec Decimal
}
[2025-04-30T18:18:18Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:18Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:18Z INFO tokio_postgres::connection] NOTICE: schema "scalar_relations_decimal_type" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_decimal_type
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/through_relation.rs:198
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"{ findManyParent(orderBy: { id: asc }) { id children { childId dec } } }"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyParent":[{"id":1,"children":[{"childId":1,"dec":"1"},{"childId":2,"dec":"-1"},{"childId":3,"dec":"123.4567891"},{"childId":4,"dec":"95993.57"}]}]}}
0 │+{"data":{"findManyParent":[{"id":1,"children":[{"childId":1,"dec":1},{"childId":2,"dec":-1},{"childId":3,"dec":123.4567891},{"childId":4,"dec":95993.57}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::data_types::through_relation::scalar_relations::decimal_type' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_decimal_type' failed in line 198
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::data_types::through_relation::scalar_relations::run_decimal_type::{{closure}}
at ./tests/queries/data_types/through_relation.rs:198:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::data_types::through_relation::scalar_relations::decimal_type
at ./tests/queries/data_types/through_relation.rs:178:5
39: query_engine_tests::queries::data_types::through_relation::scalar_relations::decimal_type::{{closure}}
at ./tests/queries/data_types/through_relation.rs:178:98
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::filters::many_relation::many_relation::simple_scalar_filter (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_simple_scalar_filter
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"query { findManyBlog { posts(where: { popularity: { gte: <DEC> }}, orderBy: { id: asc }) { title }}}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyBlog":[{"posts":[{"title":"post <DEC>"}]},{"posts":[{"title":"post <DEC>"}]}]}}
<DEC> │+{"data":{"findManyBlog":[{"posts":[{"title":"post <DEC>"},{"title":"post <DEC>"}]},{"posts":[{"title":"post <DEC>"}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_simple_scalar_filter' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=many_relation_simple_scalar_filter"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Blog {
id String @id @default(cuid())
name String
posts Post[]
}
model Post {
id String @id @default(cuid())
title String
popularity Int
blog_id String
blog Blog @relation(fields: [blog_id], references: [id])
comments Comment[]
}
model Comment {
id String @id @default(cuid())
text String
likes Int
post_id String
post Post @relation(fields: [post_id], references: [id])
}
[2025-04-30T18:18:39Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:39Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:39Z INFO tokio_postgres::connection] NOTICE: schema "many_relation_simple_scalar_filter" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_simple_scalar_filter
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/filters/many_relation.rs:43
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"query { findManyBlog { posts(where: { popularity: { gte: 5 }}, orderBy: { id: asc }) { title }}}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyBlog":[{"posts":[{"title":"post 1"}]},{"posts":[{"title":"post 3"}]}]}}
0 │+{"data":{"findManyBlog":[{"posts":[{"title":"post 1"},{"title":"post 2"}]},{"posts":[{"title":"post 3"}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::filters::many_relation::many_relation::simple_scalar_filter' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_simple_scalar_filter' failed in line 43
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::filters::many_relation::many_relation::run_simple_scalar_filter::{{closure}}
at ./tests/queries/filters/many_relation.rs:43:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::filters::many_relation::many_relation::simple_scalar_filter
at ./tests/queries/filters/many_relation.rs:39:5
39: query_engine_tests::queries::filters::many_relation::many_relation::simple_scalar_filter::{{closure}}
at ./tests/queries/filters/many_relation.rs:39:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::filters::self_relation_regression::sr_regression::all_categories (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_all_categories
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"query { findManyCategory(orderBy: { id: asc }) { name parent { name }}}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyCategory":[{"name":"Sub","parent":{"name":"Root"}},{"name":"Root","parent":null}]}}
<DEC> │+{"data":{"findManyCategory":[{"name":"Root","parent":null},{"name":"Sub","parent":{"name":"Root"}}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_all_categories' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=sr_regression_all_categories"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Category {
id String @id @default(cuid())
name String
parent_id String? @unique
parent Category? @relation(name: "C", fields: [parent_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
opposite Category? @relation(name: "C")
}
[2025-04-30T18:19:02Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:02Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:02Z INFO tokio_postgres::connection] NOTICE: schema "sr_regression_all_categories" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_all_categories
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/filters/self_relation_regression.rs:29
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"query { findManyCategory(orderBy: { id: asc }) { name parent { name }}}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyCategory":[{"name":"Sub","parent":{"name":"Root"}},{"name":"Root","parent":null}]}}
0 │+{"data":{"findManyCategory":[{"name":"Root","parent":null},{"name":"Sub","parent":{"name":"Root"}}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::filters::self_relation_regression::sr_regression::all_categories' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_all_categories' failed in line 29
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::filters::self_relation_regression::sr_regression::run_all_categories::{{closure}}
at ./tests/queries/filters/self_relation_regression.rs:29:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::filters::self_relation_regression::sr_regression::all_categories
at ./tests/queries/filters/self_relation_regression.rs:25:5
39: query_engine_tests::queries::filters::self_relation_regression::sr_regression::all_categories::{{closure}}
at ./tests/queries/filters/self_relation_regression.rs:25:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::ref_actions::on_update::set_null::one2many_opt::upsert_parent_nested
- queries::filters::one2one_regression::one2one_regression::work_with_nulls
- queries::filters::self_relation::self_relation_filters::many2one_empty_filter
- queries::filters::self_relation::self_relation_filters::one2many_empty
- queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_skip_take
- writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_1_multi_field_rel
1: queries::filters::one2one_regression::one2one_regression::work_with_nulls (6)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
not implemented: Discriminant(<DEC>)
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=one2one_regression_work_with_nulls"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
name String?
friendOf User? @relation("Userfriend")
friend User? @relation("Userfriend", fields: [friendId], references: [id], onDelete: NoAction, onUpdate: NoAction)
friendId Int? @unique
}
[2025-04-30T18:18:43Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:43Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:43Z INFO tokio_postgres::connection] NOTICE: schema "one2one_regression_work_with_nulls" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/translate.rs:88:18:
not implemented: Discriminant(1)
at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====
thread 'queries::filters::one2one_regression::one2one_regression::work_with_nulls' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::filters::one2one_regression::one2one_regression::work_with_nulls
at ./tests/queries/filters/one2one_regression.rs:24:5
28: query_engine_tests::queries::filters::one2one_regression::one2one_regression::work_with_nulls::{{closure}}
at ./tests/queries/filters/one2one_regression.rs:24:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::aggregation::combination_spec::combinations::no_records
- queries::aggregation::combination_spec::combinations::some_records
- queries::aggregation::combination_spec::combinations::with_query_args
- queries::aggregation::combination_spec::decimal_combinations::no_records
- queries::aggregation::combination_spec::decimal_combinations::some_records
- queries::aggregation::combination_spec::decimal_combinations::with_query_args
1: queries::aggregation::combination_spec::combinations::with_query_args (3)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
Unknown type for aggregate field: float
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=combinations_with_query_args"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Item {
id String @id @default(cuid())
float Float @map("db_float")
int Int @map("db_int")
}
[2025-04-30T18:18:01Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:01Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:01Z INFO tokio_postgres::connection] NOTICE: schema "combinations_with_query_args" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/data_mapper.rs:141:21:
Unknown type for aggregate field: float
at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====
thread 'queries::aggregation::combination_spec::combinations::with_query_args' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::aggregation::combination_spec::combinations::with_query_args
at ./tests/queries/aggregation/combination_spec.rs:90:5
28: query_engine_tests::queries::aggregation::combination_spec::combinations::with_query_args::{{closure}}
at ./tests/queries/aggregation/combination_spec.rs:90:40
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::aggregation::combination_spec::decimal_combinations::no_records (3)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
Unknown type for aggregate field: dec
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=decimal_combinations_no_records"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Item {
id String @id @default(cuid())
dec Decimal @map("db_dec")
}
[2025-04-30T18:18:13Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:13Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:13Z INFO tokio_postgres::connection] NOTICE: schema "decimal_combinations_no_records" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/data_mapper.rs:141:21:
Unknown type for aggregate field: dec
at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====
thread 'queries::aggregation::combination_spec::decimal_combinations::no_records' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::aggregation::combination_spec::decimal_combinations::no_records
at ./tests/queries/aggregation/combination_spec.rs:312:5
28: query_engine_tests::queries::aggregation::combination_spec::decimal_combinations::no_records::{{closure}}
at ./tests/queries/aggregation/combination_spec.rs:312:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::relation_load_strategy::relation_load_strategy::test_create_lateral_join
- new::relation_load_strategy::relation_load_strategy::test_delete_lateral_join
- new::relation_load_strategy::relation_load_strategy::test_find_first_lateral_join
- new::relation_load_strategy::relation_load_strategy::test_find_many_lateral_join
- new::relation_load_strategy::relation_load_strategy::test_find_unique_lateral_join
- new::relation_load_strategy::relation_load_strategy::test_update_lateral_join
1: new::relation_load_strategy::relation_load_strategy::test_find_first_lateral_join (6)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
assertion `left == right` failed: expected lateral join to be used: true, instead it was: false
left: false
right: true
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=relation_load_strategy_test_find_first_lateral_join"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
login String @unique
posts Post[]
comments Comment[]
}
model Post {
id Int @id
author User @relation(fields: [authorId], references: [id], onDelete: Cascade)
authorId Int
title String
content String
comments Comment[]
}
model Comment {
id Int @id
body String
post Post @relation(fields: [postId], references: [id], onDelete: Cascade)
postId Int
author User @relation(fields: [authorId], references: [id], onDelete: NoAction, onUpdate: NoAction)
authorId Int
}
[2025-04-30T18:18:10Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:10Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:10Z INFO tokio_postgres::connection] NOTICE: schema "relation_load_strategy_test_find_first_lateral_join" does not exist, skipping
thread 'new::relation_load_strategy::relation_load_strategy::test_find_first_lateral_join' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/new/relation_load_strategy.rs:93:9:
assertion `left == right` failed: expected lateral join to be used: true, instead it was: false
left: false
right: true
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
4: query_engine_tests::new::relation_load_strategy::relation_load_strategy::assert_used_lateral_join::{{closure}}
at ./tests/new/relation_load_strategy.rs:93:9
5: query_engine_tests::new::relation_load_strategy::relation_load_strategy::run_test_find_first_lateral_join::{{closure}}
at ./tests/new/relation_load_strategy.rs:115:79
6: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
7: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
9: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
10: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
12: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
13: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
14: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
18: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
19: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
21: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
22: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
23: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
24: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
25: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
26: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
27: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
28: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
29: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
30: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
32: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
33: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
34: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
35: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
36: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
37: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
38: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
39: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_find_first_lateral_join
at ./tests/new/relation_load_strategy.rs:102:17
40: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_find_first_lateral_join::{{closure}}
at ./tests/new/relation_load_strategy.rs:102:97
41: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
42: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::ref_actions::on_update::cascade::multiple_cascading_paths::it_should_work
- new::ref_actions::on_update::set_null::one2many_opt::update_parent_compound_recurse
- new::ref_actions::on_update::set_null::one2many_opt::update_parent_no_recursion
- new::ref_actions::on_update::set_null::one2many_opt::update_parent_recurse_restrict_failure
- new::ref_actions::on_update::set_null::one2many_opt::update_parent_recurse_set_null
1: new::ref_actions::on_update::set_null::one2many_opt::update_parent_no_recursion (5)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: DriverAdapterError: invalid input syntax for type integer: "{"<DEC>"}"
at PrismaPgAdapter.onError (file:<PATH>:<DEC>:<DEC>)
at PrismaPgAdapter.performIO (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async PrismaPgAdapter.queryRaw (file:<PATH>:<DEC>:<DEC>)
at async file:<PATH>:<DEC>:<DEC>
at async file:<PATH>:<DEC>:<DEC>
at async file:<PATH>:<DEC>:<DEC>
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async file:<PATH>:<DEC>:<DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=setnull_onU_1toM_opt_update_parent_no_recursion"
relationMode = "prisma"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model A {
id Int @id
b_id Int? @unique
bs B[]
}
model B {
id Int @id
a_id Int? @unique
c_id Int? @unique
a A? @relation(fields: [a_id], references: [b_id], onUpdate: SetNull)
cs C[]
}
model C {
id Int @id
b_id Int? @unique
b B? @relation(fields: [b_id], references: [c_id], onUpdate: SetNull)
}
[2025-04-30T18:18:01Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:01Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:01Z INFO tokio_postgres::connection] NOTICE: schema "setnull_onU_1toM_opt_update_parent_no_recursion" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: DriverAdapterError: invalid input syntax for type integer: "{"1"}"
at PrismaPgAdapter.onError (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:511:11)
at PrismaPgAdapter.performIO (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:506:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async PrismaPgAdapter.queryRaw (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:438:30)
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:618:35
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:24
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:587:41
at async Promise.all (index 0)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:585:9)
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:587:41
=====
thread 'new::ref_actions::on_update::set_null::one2many_opt::update_parent_no_recursion' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::new::ref_actions::on_update::set_null::one2many_opt::update_parent_no_recursion
at ./tests/new/ref_actions/on_update/set_null.rs:697:5
28: query_engine_tests::new::ref_actions::on_update::set_null::one2many_opt::update_parent_no_recursion::{{closure}}
at ./tests/new/ref_actions/on_update/set_null.rs:697:52
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::regressions::prisma_13158::prisma_1358::insert_mixed_int_float_array_in_execute_raw
- queries::simple::find_first::find_first_query::find_first_matching
- queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_matching
- queries::simple::find_unique_or_throw::find_unique_or_throw::find_unique_or_throw_when_record_is_found
- queries::simple::json_result::json_as_result::test_when_distinct_result_is_json
1: queries::simple::find_first::find_first_query::find_first_matching (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
assertion `left == right` failed
left: "{\"data\":{\"findFirstTestModel\":[{\"id\":<DEC>}]}}"
right: "{\"data\":{\"findFirstTestModel\":{\"id\":<DEC>}}}"
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=find_first_query_find_first_matching"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
field String?
}
[2025-04-30T18:19:17Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:17Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:17Z INFO tokio_postgres::connection] NOTICE: schema "find_first_query_find_first_matching" does not exist, skipping
thread 'queries::simple::find_first::find_first_query::find_first_matching' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/simple/find_first.rs:29:9:
assertion `left == right` failed
left: "{\"data\":{\"findFirstTestModel\":[{\"id\":2}]}}"
right: "{\"data\":{\"findFirstTestModel\":{\"id\":2}}}"
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
4: query_engine_tests::queries::simple::find_first::find_first_query::run_find_first_matching::{{closure}}
at ./tests/queries/simple/find_first.rs:29:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::simple::find_first::find_first_query::find_first_matching
at ./tests/queries/simple/find_first.rs:7:5
39: query_engine_tests::queries::simple::find_first::find_first_query::find_first_matching::{{closure}}
at ./tests/queries/simple/find_first.rs:7:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::simple::json_result::json_as_result::test_when_distinct_result_is_json (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
assertion `left == right` failed
left: "{\"data\":{\"findFirstTestModel\":{\"json\":{\"value\":\"{<PATH>"foo<PATH>": <DEC>}\"}}}}"
right: "{\"data\":{\"findFirstTestModel\":{\"json\":\"{<PATH>"foo<PATH>":<DEC>}\"}}}"
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=json_as_result_test_when_distinct_result_is_json"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
json Json
}
[2025-04-30T18:18:57Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:57Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:57Z INFO tokio_postgres::connection] NOTICE: schema "json_as_result_test_when_distinct_result_is_json" does not exist, skipping
thread 'queries::simple::json_result::json_as_result::test_when_distinct_result_is_json' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/simple/json_result.rs:14:9:
assertion `left == right` failed
left: "{\"data\":{\"findFirstTestModel\":{\"json\":{\"value\":\"{\\\"foo\\\": 1}\"}}}}"
right: "{\"data\":{\"findFirstTestModel\":{\"json\":\"{\\\"foo\\\":1}\"}}}"
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
4: query_engine_tests::queries::simple::json_result::json_as_result::run_test_when_distinct_result_is_json::{{closure}}
at ./tests/queries/simple/json_result.rs:14:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::simple::json_result::json_as_result::test_when_distinct_result_is_json
at ./tests/queries/simple/json_result.rs:7:5
39: query_engine_tests::queries::simple::json_result::json_as_result::test_when_distinct_result_is_json::{{closure}}
at ./tests/queries/simple/json_result.rs:7:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: new::regressions::prisma_13158::prisma_1358::insert_mixed_int_float_array_in_execute_raw (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
assertion `left == right` failed
left: "{\"data\":{\"executeRaw\":{\"count\":<DEC>}}}"
right: "{\"data\":{\"executeRaw\":<DEC>}}"
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=prisma_1358_insert_mixed_int_float_array_in_execute_raw"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Test {
id String @id
temperatures Float[]
}
[2025-04-30T18:18:02Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:02Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:02Z INFO tokio_postgres::connection] NOTICE: schema "prisma_1358_insert_mixed_int_float_array_in_execute_raw" does not exist, skipping
thread 'new::regressions::prisma_13158::prisma_1358::insert_mixed_int_float_array_in_execute_raw' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/new/regressions/prisma_13158.rs:31:9:
assertion `left == right` failed
left: "{\"data\":{\"executeRaw\":{\"count\":1}}}"
right: "{\"data\":{\"executeRaw\":1}}"
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
4: query_engine_tests::new::regressions::prisma_13158::prisma_1358::run_insert_mixed_int_float_array_in_execute_raw::{{closure}}
at ./tests/new/regressions/prisma_13158.rs:31:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::new::regressions::prisma_13158::prisma_1358::insert_mixed_int_float_array_in_execute_raw
at ./tests/new/regressions/prisma_13158.rs:16:5
39: query_engine_tests::new::regressions::prisma_13158::prisma_1358::insert_mixed_int_float_array_in_execute_raw::{{closure}}
at ./tests/new/regressions/prisma_13158.rs:16:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::data_types::json::json::json_null
- queries::data_types::json::json::json_null_must_not_be_confused_with_literal_string
- queries::data_types::json::json::read_plain_bool
- queries::data_types::json::json::read_plain_float
- queries::data_types::json::json::read_plain_int
1: queries::data_types::json::json::read_plain_float (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_plain_float
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findUniqueTestModel":{"json":"<DEC>.<DEC>"}}}
<DEC> │+{"data":{"findUniqueTestModel":{"json":{"value":"<DEC>.<DEC>"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_plain_float' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=json_read_plain_float"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
json Json?
}
[2025-04-30T18:18:36Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:36Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:36Z INFO tokio_postgres::connection] NOTICE: schema "json_read_plain_float" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_plain_float
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/json.rs:94
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findUniqueTestModel":{"json":"1.5"}}}
0 │+{"data":{"findUniqueTestModel":{"json":{"value":"1.5"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::data_types::json::json::read_plain_float' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_plain_float' failed in line 94
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::data_types::json::json::run_read_plain_float::{{closure}}
at ./tests/queries/data_types/json.rs:94:17
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::data_types::json::json::read_plain_float
at ./tests/queries/data_types/json.rs:86:5
39: query_engine_tests::queries::data_types::json::json::read_plain_float::{{closure}}
at ./tests/queries/data_types/json.rs:86:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::data_types::json::json::read_plain_bool (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_plain_bool
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findUniqueTestModel":{"json":"true"}}}
<DEC> │+{"data":{"findUniqueTestModel":{"json":{"value":"true"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_plain_bool' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=json_read_plain_bool"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
json Json?
}
[2025-04-30T18:18:21Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:21Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:21Z INFO tokio_postgres::connection] NOTICE: schema "json_read_plain_bool" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_plain_bool
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/json.rs:176
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findUniqueTestModel":{"json":"true"}}}
0 │+{"data":{"findUniqueTestModel":{"json":{"value":"true"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::data_types::json::json::read_plain_bool' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_plain_bool' failed in line 176
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::data_types::json::json::run_read_plain_bool::{{closure}}
at ./tests/queries/data_types/json.rs:176:17
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::data_types::json::json::read_plain_bool
at ./tests/queries/data_types/json.rs:168:5
39: query_engine_tests::queries::data_types::json::json::read_plain_bool::{{closure}}
at ./tests/queries/data_types/json.rs:168:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::data_types::json::json::json_null (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_json_null
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyTestModel":[{"json":null},{"json":"null"}]}}
<DEC> │+{"data":{"findManyTestModel":[{"json":null},{"json":{"value":"null"}}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_json_null' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=json_json_null"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
json Json?
}
[2025-04-30T18:18:17Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:17Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:17Z INFO tokio_postgres::connection] NOTICE: schema "json_json_null" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_json_null
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/json.rs:218
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyTestModel":[{"json":null},{"json":"null"}]}}
0 │+{"data":{"findManyTestModel":[{"json":null},{"json":{"value":"null"}}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::data_types::json::json::json_null' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_json_null' failed in line 218
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::data_types::json::json::run_json_null::{{closure}}
at ./tests/queries/data_types/json.rs:218:17
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::data_types::json::json::json_null
at ./tests/queries/data_types/json.rs:209:5
39: query_engine_tests::queries::data_types::json::json::json_null::{{closure}}
at ./tests/queries/data_types/json.rs:209:61
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure
- new::ref_actions::on_delete::restrict::one2many_req::delete_parent_failure
- new::ref_actions::on_delete::restrict::one2one_opt::delete_parent_failure
- new::ref_actions::on_delete::restrict::one2one_req::delete_parent_failure
1: new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure (4)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
Expected result to return an error, but found success: {"data":{"deleteOneParent":{"id":<DEC>}}}
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=restrict_onD_1toM_opt_delete_parent_failure"
relationMode = "prisma"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Parent {
id Int @id
children Child[]
}
model Child {
id Int @id
parent_id Int?
parent Parent? @relation(fields: [parent_id], references: [id], onDelete: Restrict)
}
[2025-04-30T18:17:53Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:17:53Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:17:53Z INFO tokio_postgres::connection] NOTICE: schema "restrict_onD_1toM_opt_delete_parent_failure" does not exist, skipping
thread 'new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"deleteOneParent":{"id":1}}}
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::query_result::QueryResult::assert_failure
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
3: query_engine_tests::new::ref_actions::on_delete::restrict::one2many_opt::run_delete_parent_failure::{{closure}}
at ./tests/new/ref_actions/on_delete/restrict.rs:254:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
7: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
10: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
12: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
13: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
16: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
17: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
19: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
22: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
23: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
24: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
25: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
26: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
30: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
32: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
33: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
34: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
35: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
36: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
37: query_engine_tests::new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure
at ./tests/new/ref_actions/on_delete/restrict.rs:247:5
38: query_engine_tests::new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure::{{closure}}
at ./tests/new/ref_actions/on_delete/restrict.rs:247:22
39: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
40: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::data_types::bytes::bytes::read_one
- writes::data_types::bytes::bytes::byte_id_coercion
- writes::data_types::bytes::bytes::using_bytes_field
- writes::data_types::native_types::postgres::postgres::native_other_types
1: queries::data_types::bytes::bytes::read_one (4)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: Error: DataMapper: Bytes data is not a string, got: object
at mapValue (file:<PATH>:<DEC>:<DEC>)
at mapObject (file:<PATH>:<DEC>:<DEC>)
at mapArrayOrObject (file:<PATH>:<DEC>:<DEC>)
at applyDataMap (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=bytes_read_one"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
string String?
int Int?
bInt BigInt?
float Float?
bytes Bytes?
bool Boolean?
dt DateTime?
}
[2025-04-30T18:18:19Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:19Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:19Z INFO tokio_postgres::connection] NOTICE: schema "bytes_read_one" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: Error: DataMapper: Bytes data is not a string, got: object
at mapValue (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:257:15)
at mapObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:214:28)
at mapArrayOrObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:190:12)
at applyDataMap (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:175:14)
at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:680:16)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====
thread 'queries::data_types::bytes::bytes::read_one' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::data_types::bytes::bytes::read_one
at ./tests/queries/data_types/bytes.rs:88:5
28: query_engine_tests::queries::data_types::bytes::bytes::read_one::{{closure}}
at ./tests/queries/data_types/bytes.rs:88:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::data_types::decimal::decimal::read_many
- queries::data_types::decimal::decimal::read_one
- queries::data_types::json::json::read_many
- queries::data_types::json::json::read_one
1: queries::data_types::json::json::read_one (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_one
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findUniqueTestModel":{"json":"{}"}}}
<DEC> │+{"data":{"findUniqueTestModel":{"json":{"value":"{}"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_one' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=json_read_one"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
json Json?
}
[2025-04-30T18:18:20Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:20Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:20Z INFO tokio_postgres::connection] NOTICE: schema "json_read_one" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_one
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/json.rs:15
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findUniqueTestModel":{"json":"{}"}}}
0 │+{"data":{"findUniqueTestModel":{"json":{"value":"{}"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::data_types::json::json::read_one' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_one' failed in line 15
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::data_types::json::json::run_read_one::{{closure}}
at ./tests/queries/data_types/json.rs:15:17
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::data_types::json::json::read_one
at ./tests/queries/data_types/json.rs:7:5
39: query_engine_tests::queries::data_types::json::json::read_one::{{closure}}
at ./tests/queries/data_types/json.rs:7:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::data_types::decimal::decimal::read_one (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_one
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findUniqueTestModel":{"decimal":"<DEC>.<DEC>"}}}
<DEC> │+{"data":{"findUniqueTestModel":{"decimal":<DEC>.<DEC>}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_one' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=decimal_read_one"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
decimal Decimal?
}
[2025-04-30T18:18:19Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:19Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:19Z INFO tokio_postgres::connection] NOTICE: schema "decimal_read_one" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_one
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/decimal.rs:26
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findUniqueTestModel":{"decimal":"12.3456"}}}
0 │+{"data":{"findUniqueTestModel":{"decimal":12.3456}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::data_types::decimal::decimal::read_one' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_one' failed in line 26
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::data_types::decimal::decimal::run_read_one::{{closure}}
at ./tests/queries/data_types/decimal.rs:26:17
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::data_types::decimal::decimal::read_one
at ./tests/queries/data_types/decimal.rs:18:5
39: query_engine_tests::queries::data_types::decimal::decimal::read_one::{{closure}}
at ./tests/queries/data_types/decimal.rs:18:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::data_types::decimal::decimal::read_many (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_many
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyTestModel":[{"decimal":"<DEC>.<DEC>"},{"decimal":"-<DEC>.<DEC>"},{"decimal":null}]}}
<DEC> │+{"data":{"findManyTestModel":[{"decimal":<DEC>.<DEC>},{"decimal":-<DEC>.<DEC>},{"decimal":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_many' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=decimal_read_many"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
decimal Decimal?
}
[2025-04-30T18:18:24Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:24Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:24Z INFO tokio_postgres::connection] NOTICE: schema "decimal_read_many" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_many
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/decimal.rs:67
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyTestModel":[{"decimal":"12.3456"},{"decimal":"-1.2345678"},{"decimal":null}]}}
0 │+{"data":{"findManyTestModel":[{"decimal":12.3456},{"decimal":-1.2345678},{"decimal":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::data_types::decimal::decimal::read_many' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_many' failed in line 67
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::data_types::decimal::decimal::run_read_many::{{closure}}
at ./tests/queries/data_types/decimal.rs:67:17
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::data_types::decimal::decimal::read_many
at ./tests/queries/data_types/decimal.rs:59:5
39: query_engine_tests::queries::data_types::decimal::decimal::read_many::{{closure}}
at ./tests/queries/data_types/decimal.rs:59:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::ref_actions::on_delete::cascade::one2many_opt::delete_parent
- new::ref_actions::on_delete::cascade::one2many_req::delete_parent
- new::ref_actions::on_delete::cascade::one2one_opt::delete_parent
- new::ref_actions::on_delete::cascade::one2one_req::delete_parent
1: new::ref_actions::on_delete::cascade::one2one_opt::delete_parent (2)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-<DEC>
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, "query { findManyChild { id }}")
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyChild":[]}}
<DEC> │+{"data":{"findManyChild":[{"id":<DEC>}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_delete_parent-<DEC>' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=cascade_onD_1to1_opt_delete_parent"
relationMode = "prisma"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Parent {
id Int @id
child Child?
}
model Child {
id Int @id
parent_id Int? @unique
parent Parent? @relation(fields: [parent_id], references: [id], onDelete: Cascade)
}
[2025-04-30T18:17:50Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:17:50Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:17:50Z INFO tokio_postgres::connection] NOTICE: schema "cascade_onD_1to1_opt_delete_parent" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-3
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_delete/cascade.rs:82
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, "query { findManyChild { id }}")
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyChild":[]}}
0 │+{"data":{"findManyChild":[{"id":1}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'new::ref_actions::on_delete::cascade::one2one_opt::delete_parent' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_delete_parent-3' failed in line 82
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::new::ref_actions::on_delete::cascade::one2one_opt::run_delete_parent::{{closure}}
at ./tests/new/ref_actions/on_delete/cascade.rs:82:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::new::ref_actions::on_delete::cascade::one2one_opt::delete_parent
at ./tests/new/ref_actions/on_delete/cascade.rs:70:5
39: query_engine_tests::new::ref_actions::on_delete::cascade::one2one_opt::delete_parent::{{closure}}
at ./tests/new/ref_actions/on_delete/cascade.rs:70:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: new::ref_actions::on_delete::cascade::one2many_opt::delete_parent (2)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-<DEC>
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, "query { findManyChild { id }}")
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyChild":[]}}
<DEC> │+{"data":{"findManyChild":[{"id":<DEC>},{"id":<DEC>}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_delete_parent-<DEC>' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=cascade_onD_1toM_opt_delete_parent"
relationMode = "prisma"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Parent {
id Int @id
children Child[]
}
model Child {
id Int @id
parent_id Int?
parent Parent? @relation(fields: [parent_id], references: [id], onDelete: Cascade)
}
[2025-04-30T18:17:52Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:17:52Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:17:52Z INFO tokio_postgres::connection] NOTICE: schema "cascade_onD_1toM_opt_delete_parent" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-3
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_delete/cascade.rs:210
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, "query { findManyChild { id }}")
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyChild":[]}}
0 │+{"data":{"findManyChild":[{"id":1},{"id":2}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'new::ref_actions::on_delete::cascade::one2many_opt::delete_parent' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_delete_parent-3' failed in line 210
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::new::ref_actions::on_delete::cascade::one2many_opt::run_delete_parent::{{closure}}
at ./tests/new/ref_actions/on_delete/cascade.rs:210:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::new::ref_actions::on_delete::cascade::one2many_opt::delete_parent
at ./tests/new/ref_actions/on_delete/cascade.rs:198:5
39: query_engine_tests::new::ref_actions::on_delete::cascade::one2many_opt::delete_parent::{{closure}}
at ./tests/new/ref_actions/on_delete/cascade.rs:198:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_join
- new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_query
- new::relation_load_strategy::relation_load_strategy::test_find_unique_or_throw_lateral_join
- new::relation_load_strategy::relation_load_strategy::test_find_unique_or_throw_lateral_query
1: new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_join (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_test_find_first_or_throw_lateral_join
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
runner,
r#"
query {
findFirstUserOrThrow(
relationLoadStrategy: $STRATEGY,
where: {
login: "author"
}
) {
login
posts {
title
comments {
author { login }
body
}
}
}
}
"#
.replace("$STRATEGY", strategy)
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findFirstUserOrThrow":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
<DEC> │+{"data":{"findFirstOrThrowUser":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_test_find_first_or_throw_lateral_join' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=relation_load_strategy_test_find_first_or_throw_lateral_join"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
login String @unique
posts Post[]
comments Comment[]
}
model Post {
id Int @id
author User @relation(fields: [authorId], references: [id], onDelete: Cascade)
authorId Int
title String
content String
comments Comment[]
}
model Comment {
id Int @id
body String
post Post @relation(fields: [postId], references: [id], onDelete: Cascade)
postId Int
author User @relation(fields: [authorId], references: [id], onDelete: NoAction, onUpdate: NoAction)
authorId Int
}
[2025-04-30T18:18:09Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:09Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:09Z INFO tokio_postgres::connection] NOTICE: schema "relation_load_strategy_test_find_first_or_throw_lateral_join" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_test_find_first_or_throw_lateral_join
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/new/relation_load_strategy.rs:205
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
runner,
r#"
query {
findFirstUserOrThrow(
relationLoadStrategy: $STRATEGY,
where: {
login: "author"
}
) {
login
posts {
title
comments {
author { login }
body
}
}
}
}
"#
.replace("$STRATEGY", strategy)
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findFirstUserOrThrow":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
0 │+{"data":{"findFirstOrThrowUser":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_join' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_test_find_first_or_throw_lateral_join' failed in line 205
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::new::relation_load_strategy::relation_load_strategy::run_test_find_first_or_throw_lateral_join::{{closure}}
at ./tests/new/relation_load_strategy.rs:109:21
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_join
at ./tests/new/relation_load_strategy.rs:102:17
39: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_join::{{closure}}
at ./tests/new/relation_load_strategy.rs:102:97
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: new::relation_load_strategy::relation_load_strategy::test_find_unique_or_throw_lateral_query (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_test_find_unique_or_throw_lateral_query
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
runner,
r#"
query {
findUniqueUserOrThrow(
relationLoadStrategy: $STRATEGY,
where: {
login: "author"
}
) {
login
posts {
title
comments {
author { login }
body
}
}
}
}
"#
.replace("$STRATEGY", strategy)
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findUniqueUserOrThrow":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
<DEC> │+{"data":{"findUniqueOrThrowUser":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_test_find_unique_or_throw_lateral_query' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=relation_load_strategy_test_find_unique_or_throw_lateral_query"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
login String @unique
posts Post[]
comments Comment[]
}
model Post {
id Int @id
author User @relation(fields: [authorId], references: [id], onDelete: Cascade)
authorId Int
title String
content String
comments Comment[]
}
model Comment {
id Int @id
body String
post Post @relation(fields: [postId], references: [id], onDelete: Cascade)
postId Int
author User @relation(fields: [authorId], references: [id], onDelete: NoAction, onUpdate: NoAction)
authorId Int
}
[2025-04-30T18:18:09Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:09Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:09Z INFO tokio_postgres::connection] NOTICE: schema "relation_load_strategy_test_find_unique_or_throw_lateral_query" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_test_find_unique_or_throw_lateral_query
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/new/relation_load_strategy.rs:253
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
runner,
r#"
query {
findUniqueUserOrThrow(
relationLoadStrategy: $STRATEGY,
where: {
login: "author"
}
) {
login
posts {
title
comments {
author { login }
body
}
}
}
}
"#
.replace("$STRATEGY", strategy)
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findUniqueUserOrThrow":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
0 │+{"data":{"findUniqueOrThrowUser":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'new::relation_load_strategy::relation_load_strategy::test_find_unique_or_throw_lateral_query' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_test_find_unique_or_throw_lateral_query' failed in line 253
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::new::relation_load_strategy::relation_load_strategy::run_test_find_unique_or_throw_lateral_query::{{closure}}
at ./tests/new/relation_load_strategy.rs:109:21
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_find_unique_or_throw_lateral_query
at ./tests/new/relation_load_strategy.rs:102:17
39: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_find_unique_or_throw_lateral_query::{{closure}}
at ./tests/new/relation_load_strategy.rs:102:97
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_query (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_test_find_first_or_throw_lateral_query
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
runner,
r#"
query {
findFirstUserOrThrow(
relationLoadStrategy: $STRATEGY,
where: {
login: "author"
}
) {
login
posts {
title
comments {
author { login }
body
}
}
}
}
"#
.replace("$STRATEGY", strategy)
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findFirstUserOrThrow":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
<DEC> │+{"data":{"findFirstOrThrowUser":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_test_find_first_or_throw_lateral_query' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=relation_load_strategy_test_find_first_or_throw_lateral_query"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
login String @unique
posts Post[]
comments Comment[]
}
model Post {
id Int @id
author User @relation(fields: [authorId], references: [id], onDelete: Cascade)
authorId Int
title String
content String
comments Comment[]
}
model Comment {
id Int @id
body String
post Post @relation(fields: [postId], references: [id], onDelete: Cascade)
postId Int
author User @relation(fields: [authorId], references: [id], onDelete: NoAction, onUpdate: NoAction)
authorId Int
}
[2025-04-30T18:18:00Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:00Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:00Z INFO tokio_postgres::connection] NOTICE: schema "relation_load_strategy_test_find_first_or_throw_lateral_query" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_test_find_first_or_throw_lateral_query
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/new/relation_load_strategy.rs:205
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
runner,
r#"
query {
findFirstUserOrThrow(
relationLoadStrategy: $STRATEGY,
where: {
login: "author"
}
) {
login
posts {
title
comments {
author { login }
body
}
}
}
}
"#
.replace("$STRATEGY", strategy)
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findFirstUserOrThrow":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
0 │+{"data":{"findFirstOrThrowUser":{"login":"author","posts":[{"title":"first post","comments":[{"author":{"login":"commenter"},"body":"a comment"}]}]}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_query' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_test_find_first_or_throw_lateral_query' failed in line 205
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::new::relation_load_strategy::relation_load_strategy::run_test_find_first_or_throw_lateral_query::{{closure}}
at ./tests/new/relation_load_strategy.rs:109:21
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_query
at ./tests/new/relation_load_strategy.rs:102:17
39: query_engine_tests::new::relation_load_strategy::relation_load_strategy::test_find_first_or_throw_lateral_query::{{closure}}
at ./tests/new/relation_load_strategy.rs:102:97
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::ref_actions::on_update::restrict::one2many_opt::update_many_parent_failure
- new::ref_actions::on_update::restrict::one2many_req::update_many_parent_failure
- new::ref_actions::on_update::restrict::one2one_opt::update_many_parent_failure
- new::ref_actions::on_update::restrict::one2one_req::update_many_parent_failure
1: new::ref_actions::on_update::restrict::one2one_opt::update_many_parent_failure (4)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: Error: DataMapper: Expected an array or an object, got: undefined
at mapArrayOrObject (file:<PATH>:<DEC>:<DEC>)
at applyDataMap (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=restrict_onU_1to1_opt_update_many_parent_failure"
relationMode = "prisma"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Parent {
id Int @id
uniq String @unique
name String
child Child?
}
model Child {
id Int @id
parent_uniq String? @unique
parent Parent? @relation(fields: [parent_uniq], references: [uniq], onUpdate: Restrict)
}
[2025-04-30T18:18:01Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:01Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:01Z INFO tokio_postgres::connection] NOTICE: schema "restrict_onU_1to1_opt_update_many_parent_failure" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: Error: DataMapper: Expected an array or an object, got: undefined
at mapArrayOrObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:192:9)
at applyDataMap (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:175:14)
at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:680:16)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:670:25)
at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====
thread 'new::ref_actions::on_update::restrict::one2one_opt::update_many_parent_failure' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::new::ref_actions::on_update::restrict::one2one_opt::update_many_parent_failure
at ./tests/new/ref_actions/on_update/restrict.rs:138:5
28: query_engine_tests::new::ref_actions::on_update::restrict::one2one_opt::update_many_parent_failure::{{closure}}
at ./tests/new/ref_actions/on_update/restrict.rs:138:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id
- queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_multi_unique
- queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_single_unique
1: queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id (3)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
Expected result to return an error, but found success: {"data":{"findUniqueOrThrowUser":null}}
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=find_unique_or_throw_no_result_find_unique_by_id"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
first_name String
last_name String
email String @unique
birthday DateTime?
@@unique([first_name, last_name])
}
[2025-04-30T18:19:20Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:20Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:20Z INFO tokio_postgres::connection] NOTICE: schema "find_unique_or_throw_no_result_find_unique_by_id" does not exist, skipping
thread 'queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"findUniqueOrThrowUser":null}}
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::query_result::QueryResult::assert_failure
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
3: query_engine_tests::queries::simple::find_unique_or_throw::find_unique_or_throw::run_no_result_find_unique_by_id::{{closure}}
at ./tests/queries/simple/find_unique_or_throw.rs:36:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
7: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
10: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
12: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
13: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
16: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
17: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
19: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
22: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
23: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
24: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
25: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
26: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
30: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
32: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
33: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
34: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
35: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
36: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
37: query_engine_tests::queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id
at ./tests/queries/simple/find_unique_or_throw.rs:32:5
38: query_engine_tests::queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id::{{closure}}
at ./tests/queries/simple/find_unique_or_throw.rs:32:22
39: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
40: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::batching::transactional_batch::transactional::batch_request_idx
- queries::batching::transactional_batch::transactional::one_query
- queries::batching::transactional_batch::transactional::one_success_one_fail
1: queries::batching::transactional_batch::transactional::one_success_one_fail (3)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: UserFacingError: Unique constraint failed on the fields: (`id`)
at rethrowAsUserFacing (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async QueryPipeline.executeTransactionalBatch (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=transactional_one_success_one_fail"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model ModelA {
id Int @id
b_id Int? @unique
b ModelB? @relation(fields: [b_id], references: [id])
}
model ModelB {
id Int @id
a ModelA?
}
model ModelC {
id Int @id
}
model User {
id Int @id
email String @unique
name String @unique
}
[2025-04-30T18:18:15Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:15Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:15Z INFO tokio_postgres::connection] NOTICE: schema "transactional_one_success_one_fail" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: UserFacingError: Unique constraint failed on the fields: (`id`)
at rethrowAsUserFacing (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:60:9)
at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:571:14
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async QueryPipeline.executeTransactionalBatch (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:493:24)
at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:412:37)
at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====
thread 'queries::batching::transactional_batch::transactional::one_success_one_fail' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::batching::transactional_batch::transactional::one_success_one_fail
at ./tests/queries/batching/transactional_batch.rs:76:5
28: query_engine_tests::queries::batching::transactional_batch::transactional::one_success_one_fail::{{closure}}
at ./tests/queries/batching/transactional_batch.rs:76:47
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::filters::self_relation::self_relation_filters::l1_query
- writes::ids::byoid::byoid::nested_upsert_should_work_2
- writes::ids::relation_pks::single_pk_rel_field::single_pk_rel_field::id_also_1_1_multi_field_rel
1: queries::filters::self_relation::self_relation_filters::l1_query (3)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
not implemented: Discriminant(<DEC>)
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=self_relation_filters_l1_query"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Human {
id String @id
name String
wife_id String? @unique
mother_id String?
father_id String?
singer_id String?
title_id String? @unique
husband Human? @relation(name: "Marriage")
wife Human? @relation(name: "Marriage", fields: [wife_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
mother Human? @relation(name: "Cuckoo", fields: [mother_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
father Human? @relation(name: "Offspring", fields: [father_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
singer Human? @relation(name: "Team", fields: [singer_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
title Song? @relation( fields: [title_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
daughters Human[] @relation(name: "Offspring")
stepdaughters Human[] @relation(name: "Cuckoo")
bandmembers Human[] @relation(name: "Team")
fans Human[] @relation(name: "Admirers")
rockstars Human[] @relation(name: "Admirers")
}
model Song{
id String @id
title String
creator Human?
}
[2025-04-30T18:18:51Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:51Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:51Z INFO tokio_postgres::connection] NOTICE: schema "self_relation_filters_l1_query" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/translate.rs:88:18:
not implemented: Discriminant(1)
at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====
thread 'queries::filters::self_relation::self_relation_filters::l1_query' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::filters::self_relation::self_relation_filters::l1_query
at ./tests/queries/filters/self_relation.rs:46:5
28: query_engine_tests::queries::filters::self_relation::self_relation_filters::l1_query::{{closure}}
at ./tests/queries/filters/self_relation.rs:46:58
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::aggregation::many_count_relation::many_count_rel::count_one2m_dup_child_id
- queries::data_types::json::json::json_list
- raw::sql::input_coercion::input_coercion::decimal_input_correctly_coerced
1: queries::aggregation::many_count_relation::many_count_rel::count_one2m_dup_child_id (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_count_one2m_dup_child_id
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(runner, r#"{ findManyComment { post { id _count { comments } } } }"#)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyComment":[{"post":{"id":<DEC>,"_count":{"comments":<DEC>}}},{"post":{"id":<DEC>,"_count":{"comments":<DEC>}}}]}}
<DEC> │+{"data":{"findManyComment":[{"post":{"id":<DEC>}},{"post":{"id":<DEC>}}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_count_one2m_dup_child_id' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=many_count_rel_count_one2m_dup_child_id"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Post {
id Int @id
title String
comments Comment[]
categories Category[]
}
model Comment {
id Int @id
post Post @relation(fields: [postId], references: [id])
postId Int
}
model Category {
id Int @id
posts Post[]
}
[2025-04-30T18:18:21Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:21Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:21Z INFO tokio_postgres::connection] NOTICE: schema "many_count_rel_count_one2m_dup_child_id" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_count_one2m_dup_child_id
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/aggregation/many_count_relation.rs:741
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(runner, r#"{ findManyComment { post { id _count { comments } } } }"#)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyComment":[{"post":{"id":1,"_count":{"comments":2}}},{"post":{"id":1,"_count":{"comments":2}}}]}}
0 │+{"data":{"findManyComment":[{"post":{"id":1}},{"post":{"id":1}}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::aggregation::many_count_relation::many_count_rel::count_one2m_dup_child_id' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_count_one2m_dup_child_id' failed in line 741
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::aggregation::many_count_relation::many_count_rel::run_count_one2m_dup_child_id::{{closure}}
at ./tests/queries/aggregation/many_count_relation.rs:741:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::aggregation::many_count_relation::many_count_rel::count_one2m_dup_child_id
at ./tests/queries/aggregation/many_count_relation.rs:733:5
39: query_engine_tests::queries::aggregation::many_count_relation::many_count_rel::count_one2m_dup_child_id::{{closure}}
at ./tests/queries/aggregation/many_count_relation.rs:733:22
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::data_types::json::json::json_list (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_json_list
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, r#"{ findManyTestModel { child { json_list } } }"#)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyTestModel":[{"child":{"json_list":["<DEC>","<DEC>"]}},{"child":{"json_list":["{}"]}},{"child":{"json_list":["\"hello\"","\"world\""]}},{"child":{"json_list":[]}}]}}
<DEC> │+{"data":{"findManyTestModel":[{"child":{"json_list":[<DEC>,<DEC>]}},{"child":null},{"child":null},{"child":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_json_list' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=json_json_list"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
child Child?
}
model Child {
id Int @id
json_list Json[]
testId Int? @unique
test TestModel? @relation(fields: [testId], references: [id])
}
[2025-04-30T18:18:25Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:25Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:25Z INFO tokio_postgres::connection] NOTICE: schema "json_json_list" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_json_list
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/json.rs:381
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, r#"{ findManyTestModel { child { json_list } } }"#)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyTestModel":[{"child":{"json_list":["1","2"]}},{"child":{"json_list":["{}"]}},{"child":{"json_list":["\"hello\"","\"world\""]}},{"child":{"json_list":[]}}]}}
0 │+{"data":{"findManyTestModel":[{"child":{"json_list":[1,2]}},{"child":null},{"child":null},{"child":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'queries::data_types::json::json::json_list' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_json_list' failed in line 381
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::queries::data_types::json::json::run_json_list::{{closure}}
at ./tests/queries/data_types/json.rs:381:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::queries::data_types::json::json::json_list
at ./tests/queries/data_types/json.rs:362:5
39: query_engine_tests::queries::data_types::json::json::json_list::{{closure}}
at ./tests/queries/data_types/json.rs:366:7
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: raw::sql::input_coercion::input_coercion::decimal_input_correctly_coerced (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_decimal_input_correctly_coerced
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, r#"{ findManyTestModel { id decimal } }"#)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyTestModel":[{"id":<DEC>,"decimal":"<DEC>.<DEC>"}]}}
<DEC> │+{"data":{"findManyTestModel":[{"id":<DEC>,"decimal":<DEC>.<DEC>}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_decimal_input_correctly_coerced' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=input_coercion_decimal_input_correctly_coerced"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
decimal Decimal?
}
[2025-04-30T18:19:30Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:30Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:30Z INFO tokio_postgres::connection] NOTICE: schema "input_coercion_decimal_input_correctly_coerced" does not exist, skipping
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_decimal_input_correctly_coerced
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/raw/sql/input_coercion.rs:57
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, r#"{ findManyTestModel { id decimal } }"#)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
0 │-{"data":{"findManyTestModel":[{"id":1,"decimal":"123.456789"}]}}
0 │+{"data":{"findManyTestModel":[{"id":1,"decimal":123.456789}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'raw::sql::input_coercion::input_coercion::decimal_input_correctly_coerced' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_decimal_input_correctly_coerced' failed in line 57
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: insta::runtime::SnapshotAssertionContext::finalize
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
3: insta::runtime::assert_snapshot
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
4: query_engine_tests::raw::sql::input_coercion::input_coercion::run_decimal_input_correctly_coerced::{{closure}}
at ./tests/raw/sql/input_coercion.rs:57:9
5: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
8: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
11: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
13: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
17: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
18: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
20: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
23: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
24: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
25: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
26: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
27: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
31: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
33: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
34: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
35: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
36: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
37: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
38: query_engine_tests::raw::sql::input_coercion::input_coercion::decimal_input_correctly_coerced
at ./tests/raw/sql/input_coercion.rs:47:5
39: query_engine_tests::raw::sql::input_coercion::input_coercion::decimal_input_correctly_coerced::{{closure}}
at ./tests/raw/sql/input_coercion.rs:47:39
40: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
41: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::distinct::distinct::nested_distinct
- queries::distinct::distinct::nested_distinct_not_in_selection
- queries::distinct::distinct::nested_distinct_reversed
1: queries::distinct::distinct::nested_distinct (3)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: DriverAdapterError: SELECT DISTINCT ON expressions must match initial ORDER BY expressions
at PrismaPgAdapter.onError (file:<PATH>:<DEC>:<DEC>)
at PrismaPgAdapter.performIO (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async PrismaPgAdapter.queryRaw (file:<PATH>:<DEC>:<DEC>)
at async file:<PATH>:<DEC>:<DEC>
at async file:<PATH>:<DEC>:<DEC>
at async file:<PATH>:<DEC>:<DEC>
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=distinct_nested_distinct"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model User {
id Int @id
first_name String
last_name String
email String @unique
birthday DateTime?
posts Post[]
}
model Post {
id Int @id
title String
content String @default("Wip")
author_id Int
author User @relation(fields: [author_id], references: [id])
}
[2025-04-30T18:18:44Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:44Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:44Z INFO tokio_postgres::connection] NOTICE: schema "distinct_nested_distinct" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: DriverAdapterError: SELECT DISTINCT ON expressions must match initial ORDER BY expressions
at PrismaPgAdapter.onError (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:511:11)
at PrismaPgAdapter.performIO (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:506:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async PrismaPgAdapter.queryRaw (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:438:30)
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:618:35
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:24
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:587:41
at async Promise.all (index 0)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:585:9)
at async Promise.all (index 0)
=====
thread 'queries::distinct::distinct::nested_distinct' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::distinct::distinct::nested_distinct
at ./tests/queries/distinct.rs:176:5
28: query_engine_tests::queries::distinct::distinct::nested_distinct::{{closure}}
at ./tests/queries/distinct.rs:176:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::ref_actions::on_update::cascade::one2many_opt::update_parent
- new::ref_actions::on_update::cascade::one2one_req::update_parent_compound_cascade
- new::ref_actions::on_update::set_null::one2one_opt::update_parent_no_recursion
1: new::ref_actions::on_update::set_null::one2one_opt::update_parent_no_recursion (3)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: DriverAdapterError: invalid input syntax for type integer: "{"<DEC>"}"
at PrismaPgAdapter.onError (file:<PATH>:<DEC>:<DEC>)
at PrismaPgAdapter.performIO (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async PrismaPgAdapter.queryRaw (file:<PATH>:<DEC>:<DEC>)
at async file:<PATH>:<DEC>:<DEC>
at async file:<PATH>:<DEC>:<DEC>
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async file:<PATH>:<DEC>:<DEC>
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=setnull_onU_1to1_opt_update_parent_no_recursion"
relationMode = "prisma"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model A {
id Int @id
b_id Int? @unique
b B?
}
model B {
id Int @id
a_id Int? @unique
c_id Int? @unique
a A? @relation(fields: [a_id], references: [b_id], onUpdate: SetNull)
c C?
}
model C {
id Int @id
b_id Int? @unique
b B? @relation(fields: [b_id], references: [c_id], onUpdate: SetNull)
}
[2025-04-30T18:18:00Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:00Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:00Z INFO tokio_postgres::connection] NOTICE: schema "setnull_onU_1to1_opt_update_parent_no_recursion" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: DriverAdapterError: invalid input syntax for type integer: "{"1"}"
at PrismaPgAdapter.onError (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:511:11)
at PrismaPgAdapter.performIO (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:506:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async PrismaPgAdapter.queryRaw (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:438:30)
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:618:35
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:24
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:626:23)
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:587:41
at async Promise.all (index 0)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:585:9)
=====
thread 'new::ref_actions::on_update::set_null::one2one_opt::update_parent_no_recursion' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::new::ref_actions::on_update::set_null::one2one_opt::update_parent_no_recursion
at ./tests/new/ref_actions/on_update/set_null.rs:256:5
28: query_engine_tests::new::ref_actions::on_update::set_null::one2one_opt::update_parent_no_recursion::{{closure}}
at ./tests/new/ref_actions/on_update/set_null.rs:256:56
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- new::ref_actions::on_delete::set_null::one2one_opt::delete_parent_set_null_restrict
- new::regressions::prisma_7434::not_in_chunking::not_in_batch_filter
- queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching
1: queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
Expected result to return an error, but found success: {"data":{"findFirstOrThrowTestModel":null}}
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=find_first_or_throw_query_find_first_or_throw_not_matching"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id
field String?
}
[2025-04-30T18:19:38Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:38Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:38Z INFO tokio_postgres::connection] NOTICE: schema "find_first_or_throw_query_find_first_or_throw_not_matching" does not exist, skipping
thread 'queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"findFirstOrThrowTestModel":null}}
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::query_result::QueryResult::assert_failure
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
3: query_engine_tests::queries::simple::find_first_or_throw::find_first_or_throw_query::run_find_first_or_throw_not_matching::{{closure}}
at ./tests/queries/simple/find_first_or_throw.rs:42:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
7: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
10: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
12: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
13: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
16: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
17: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
19: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
22: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
23: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
24: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
25: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
26: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
30: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
32: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
33: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
34: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
35: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
36: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
37: query_engine_tests::queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching
at ./tests/queries/simple/find_first_or_throw.rs:38:5
38: query_engine_tests::queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching::{{closure}}
at ./tests/queries/simple/find_first_or_throw.rs:38:22
39: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
40: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: new::regressions::prisma_7434::not_in_chunking::not_in_batch_filter (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
Expected result to return an error, but found success: {"data":{"findManyTestModel":[]}}
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=not_in_chunking_not_in_batch_filter"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model TestModel {
id Int @id @default(autoincrement())
}
[2025-04-30T18:18:08Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:08Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:08Z INFO tokio_postgres::connection] NOTICE: schema "not_in_chunking_not_in_batch_filter" does not exist, skipping
thread 'new::regressions::prisma_7434::not_in_chunking::not_in_batch_filter' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"findManyTestModel":[]}}
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::query_result::QueryResult::assert_failure
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
3: query_engine_tests::new::regressions::prisma_7434::not_in_chunking::run_not_in_batch_filter::{{closure}}
at ./tests/new/regressions/prisma_7434.rs:9:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
7: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
10: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
12: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
13: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
16: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
17: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
19: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
22: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
23: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
24: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
25: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
26: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
30: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
32: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
33: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
34: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
35: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
36: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
37: query_engine_tests::new::regressions::prisma_7434::not_in_chunking::not_in_batch_filter
at ./tests/new/regressions/prisma_7434.rs:7:5
38: query_engine_tests::new::regressions::prisma_7434::not_in_chunking::not_in_batch_filter::{{closure}}
at ./tests/new/regressions/prisma_7434.rs:7:22
39: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
40: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: new::ref_actions::on_delete::set_null::one2one_opt::delete_parent_set_null_restrict (1)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
Expected result to return an error, but found success: {"data":{"deleteOneA":{"id":<DEC>}}}
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=setnull_onD_1to1_opt_delete_parent_set_null_restrict"
relationMode = "prisma"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model A {
id Int @id
b_id Int? @unique
b B?
}
model B {
id Int @id
a_id Int? @unique
a A? @relation(fields: [a_id], references: [b_id], onDelete: SetNull)
c C?
}
model C {
id Int @id
b_id Int? @unique
b B? @relation(fields: [b_id], references: [a_id], onDelete: SetNull, onUpdate: Restrict)
}
[2025-04-30T18:17:58Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:17:58Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:17:58Z INFO tokio_postgres::connection] NOTICE: schema "setnull_onD_1to1_opt_delete_parent_set_null_restrict" does not exist, skipping
thread 'new::ref_actions::on_delete::set_null::one2one_opt::delete_parent_set_null_restrict' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"deleteOneA":{"id":1}}}
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::query_result::QueryResult::assert_failure
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
3: query_engine_tests::new::ref_actions::on_delete::set_null::one2one_opt::run_delete_parent_set_null_restrict::{{closure}}
at ./tests/new/ref_actions/on_delete/set_null.rs:211:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
7: tracing_core::dispatcher::with_default
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
10: metrics::recorder::with_local_recorder
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
12: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
13: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
16: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
17: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
19: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
22: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
23: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
24: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
25: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
26: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
30: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
32: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
33: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
34: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
35: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
36: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
37: query_engine_tests::new::ref_actions::on_delete::set_null::one2one_opt::delete_parent_set_null_restrict
at ./tests/new/ref_actions/on_delete/set_null.rs:184:5
38: query_engine_tests::new::ref_actions::on_delete::set_null::one2one_opt::delete_parent_set_null_restrict::{{closure}}
at ./tests/new/ref_actions/on_delete/set_null.rs:184:65
39: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
40: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- queries::batching::select_one_singular::singular_batch::relation_traversal
- queries::batching::select_one_singular::singular_batch::relation_traversal_filtered
- queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff
1: queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff (3)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: Error: Expected object, got object
at asRecord (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=singular_batch_relation_traversal_filtered_diff"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Artist {
id String @id @default(cuid())
ArtistId Int @unique
Name String
Albums Album[]
}
model Album {
id String @id @default(cuid())
AlbumId Int @unique
Title String
ArtistId String
Artist Artist @relation(fields: [ArtistId], references: [id])
@@index([ArtistId])
}
[2025-04-30T18:18:17Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:18:17Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:18:17Z INFO tokio_postgres::connection] NOTICE: schema "singular_batch_relation_traversal_filtered_diff" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: Error: Expected object, got object
at asRecord (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:734:9)
at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:660:39)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Promise.all (index 0)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:577:25)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:679:22)
at async Promise.all (index 2)
at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:415:11)
at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====
thread 'queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff
at ./tests/queries/batching/select_one_singular.rs:178:5
28: query_engine_tests::queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff::{{closure}}
at ./tests/queries/batching/select_one_singular.rs:178:22
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
- writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel
- writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_single_field_rel
- writes::ids::relation_pks::single_pk_rel_field::single_pk_rel_field::id_also_1_m_multi_field_rel
1: writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel (3)
[<TIMESTAMP> INFO quaint::single] Starting a postgresql connection.
[<TIMESTAMP> INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
External process error: Server error: DriverAdapterError: invalid input syntax for type integer: "{"<DEC>"}"
at PgTransaction.onError (file:<PATH>:<DEC>:<DEC>)
at PgTransaction.performIO (file:<PATH>:<DEC>:<DEC>)
at process.processTicksAndRejections (node:internal<PATH>:<DEC>:<DEC>)
at async PgTransaction.executeRaw (file:<PATH>:<DEC>:<DEC>)
at async file:<PATH>:<DEC>:<DEC>
at async file:<PATH>:<DEC>:<DEC>
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: postgres pg.js.wasm
* CI? false
* External test executor: QueryCompiler
* Driver adapter: pg
* Driver adapter config:
******************************
Used datamodel:
datasource test {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5435/db?schema=compound_pk_rel_cpd_1_m_multi_field_rel"
relationMode = "foreignKeys"
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["deno", "driverAdapters", "fullTextSearchPostgres", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}
model Parent {
name String
age Int
child_id Int
child_ssn String
child Child @relation(fields: [child_id, child_ssn], references: [id, ssn])
@@id([name, child_id, child_ssn])
}
model Child {
id Int @id
ssn String @unique
name String
parents Parent[]
@@unique([id, ssn])
}
[2025-04-30T18:19:38Z INFO quaint::single] Starting a postgresql connection.
[2025-04-30T18:19:38Z INFO quaint::connector::metrics] quaint:query; db.system="postgresql" db.query.text=CREATE DATABASE "db" otel.kind="client" otel.name="prisma:engine:db_query" user_facing=true
[2025-04-30T18:19:38Z INFO tokio_postgres::connection] NOTICE: schema "compound_pk_rel_cpd_1_m_multi_field_rel" does not exist, skipping
Test failed due to an error:
=====
External process error: Server error: DriverAdapterError: invalid input syntax for type integer: "{"1"}"
at PgTransaction.onError (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:511:11)
at PgTransaction.performIO (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:506:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async PgTransaction.executeRaw (file:///home/viktor/dev/prisma/packages/adapter-pg/dist/index.mjs:466:13)
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:612:18
at async file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:24
at async Promise.all (index 0)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:606:23)
at async Promise.all (index 0)
at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:577:25)
=====
thread 'writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
0: rust_begin_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
2: query_tests_setup::run_connector_test_impl::{{closure}}
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
3: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
4: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
6: tokio::task::coop::with_budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
7: tokio::task::coop::budget
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
9: tokio::runtime::scheduler::current_thread::Context::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
12: tokio::runtime::context::scoped::Scoped<T>::set
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
13: tokio::runtime::context::set_scheduler::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
14: std::thread::local::LocalKey<T>::try_with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
15: std::thread::local::LocalKey<T>::with
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
16: tokio::runtime::context::set_scheduler
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
20: tokio::runtime::context::runtime::enter_runtime
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
22: tokio::runtime::runtime::Runtime::block_on_inner
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
23: tokio::runtime::runtime::Runtime::block_on
at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
24: query_tests_setup::run_with_tokio
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
25: query_tests_setup::run_connector_test_impl
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
26: query_tests_setup::run_connector_test
at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
27: query_engine_tests::writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel
at ./tests/writes/ids/relation_pks/compound_pk_rel_field.rs:787:5
28: query_engine_tests::writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel::{{closure}}
at ./tests/writes/ids/relation_pks/compound_pk_rel_field.rs:787:52
29: core::ops::function::FnOnce::call_once
at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
30: core::ops::function::FnOnce::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.