{
"provenance": {
"version": "PostgreSQL 18.4 (Debian 18.4-1.pgdg13+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit",
"captured_at": "2026-10-24T10:58:52.643872+00:00",
"protocol": "libpq PQexecParams with unknown OID 0 and SELECT $1::type; native transaction status after every operation",
"consumer": "Engine parameters tests and the C/C++ typed_values.c fixture"
},
"cases": [
{
"sql": "CREATE SCHEMA c_host_input_ref",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"sql": "CREATE TYPE c_host_input_ref.mood AS ENUM ('calm', 'busy')",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"sql": "CREATE DOMAIN c_host_input_ref.positive AS integer CHECK (VALUE > 0)",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"sql": "CREATE DOMAIN c_host_input_ref.required AS c_host_input_ref.positive NOT NULL",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"sql": "CREATE TYPE c_host_input_ref.pair AS (n integer, label text)",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"sql": "CREATE TABLE c_host_input_ref.audit(n integer)",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"sql": "CREATE FUNCTION c_host_input_ref.check_value(p integer) RETURNS boolean LANGUAGE plpgsql VOLATILE AS $$ BEGIN INSERT INTO c_host_input_ref.audit VALUES (p); RETURN p > 0; END $$",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"sql": "CREATE DOMAIN c_host_input_ref.audited AS integer CHECK (c_host_input_ref.check_value(VALUE))",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"type": "smallint",
"input": "32767",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"32767"
]
]
},
{
"type": "smallint",
"input": null,
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
null
]
]
},
{
"type": "smallint",
"input": "32768",
"status": 7,
"sqlstate": "22003",
"transaction_status": 0,
"message": "value \"32768\" is out of range for type smallint"
},
{
"type": "integer",
"input": "invalid",
"status": 7,
"sqlstate": "22P02",
"transaction_status": 0,
"message": "invalid input syntax for type integer: \"invalid\""
},
{
"type": "numeric(5,2)",
"input": "12.3456",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"12.35"
]
]
},
{
"type": "numeric(2,-3)",
"input": "12345",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"12000"
]
]
},
{
"type": "numeric(5,2)",
"input": null,
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
null
]
]
},
{
"type": "character(4)",
"input": "ab",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"ab "
]
]
},
{
"type": "varchar(2)",
"input": "abcd",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"ab"
]
]
},
{
"type": "integer[]",
"input": "[0:1]={7,NULL}",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"[0:1]={7,NULL}"
]
]
},
{
"type": "integer[]",
"input": null,
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
null
]
]
},
{
"type": "int4range",
"input": "(1,4]",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"[2,5)"
]
]
},
{
"type": "int4multirange",
"input": "{[1,3),[3,5)}",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"{[1,5)}"
]
]
},
{
"type": "c_host_input_ref.mood",
"input": "calm",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"calm"
]
]
},
{
"type": "c_host_input_ref.mood",
"input": "missing",
"status": 7,
"sqlstate": "22P02",
"transaction_status": 0,
"message": "invalid input value for enum c_host_input_ref.mood: \"missing\""
},
{
"type": "c_host_input_ref.mood",
"input": null,
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
null
]
]
},
{
"type": "c_host_input_ref.positive",
"input": "1",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"1"
]
]
},
{
"type": "c_host_input_ref.positive",
"input": "0",
"status": 7,
"sqlstate": "23514",
"transaction_status": 0,
"message": "value for domain c_host_input_ref.positive violates check constraint \"positive_check\""
},
{
"type": "c_host_input_ref.positive",
"input": null,
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
null
]
]
},
{
"type": "c_host_input_ref.required",
"input": "1",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"1"
]
]
},
{
"type": "c_host_input_ref.required",
"input": null,
"status": 7,
"sqlstate": "23502",
"transaction_status": 0,
"message": "domain c_host_input_ref.required does not allow null values"
},
{
"type": "c_host_input_ref.positive[]",
"input": "[0:1]={1,NULL}",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"[0:1]={1,NULL}"
]
]
},
{
"type": "c_host_input_ref.required[]",
"input": "{1,NULL}",
"status": 7,
"sqlstate": "23502",
"transaction_status": 0,
"message": "domain c_host_input_ref.required does not allow null values"
},
{
"type": "c_host_input_ref.pair",
"input": "(7,hello)",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"(7,hello)"
]
]
},
{
"type": "c_host_input_ref.pair",
"input": "(,)",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"(,)"
]
]
},
{
"type": "c_host_input_ref.pair",
"input": null,
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
null
]
]
},
{
"type": "missing_host_type",
"input": null,
"status": 7,
"sqlstate": "42704",
"transaction_status": 0,
"message": "type \"missing_host_type\" does not exist"
},
{
"type": "c_host_input_ref.audited",
"input": "11",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"11"
]
]
},
{
"type": "c_host_input_ref.audited",
"input": "-1",
"status": 7,
"sqlstate": "23514",
"transaction_status": 0,
"message": "value for domain c_host_input_ref.audited violates check constraint \"audited_check\""
},
{
"sql": "SELECT count(*) FROM c_host_input_ref.audit",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"1"
]
]
},
{
"sql": "BEGIN",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"sql": "SAVEPOINT input_retry",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"type": "c_host_input_ref.audited",
"input": "12",
"status": 2,
"sqlstate": "",
"transaction_status": 2,
"rows": [
[
"12"
]
]
},
{
"type": "c_host_input_ref.audited",
"input": "-2",
"status": 7,
"sqlstate": "23514",
"transaction_status": 3,
"message": "value for domain c_host_input_ref.audited violates check constraint \"audited_check\""
},
{
"type": "c_host_input_ref.audited",
"input": "13",
"status": 7,
"sqlstate": "25P02",
"transaction_status": 3,
"message": "current transaction is aborted, commands ignored until end of transaction block"
},
{
"sql": "ROLLBACK TO input_retry",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"sql": "SELECT count(*) FROM c_host_input_ref.audit",
"status": 2,
"sqlstate": "",
"transaction_status": 2,
"rows": [
[
"1"
]
]
},
{
"type": "c_host_input_ref.audited",
"input": "14",
"status": 2,
"sqlstate": "",
"transaction_status": 2,
"rows": [
[
"14"
]
]
},
{
"sql": "ROLLBACK",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"sql": "SELECT count(*) FROM c_host_input_ref.audit",
"status": 2,
"sqlstate": "",
"transaction_status": 0,
"rows": [
[
"1"
]
]
},
{
"sql": "BEGIN",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"sql": "CREATE DOMAIN c_host_input_ref.private_positive AS integer CHECK (VALUE > 0)",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"type": "c_host_input_ref.private_positive",
"input": "5",
"status": 2,
"sqlstate": "",
"transaction_status": 2,
"rows": [
[
"5"
]
]
},
{
"sql": "ROLLBACK",
"status": 1,
"sqlstate": "",
"transaction_status": 0
},
{
"type": "c_host_input_ref.private_positive",
"input": "5",
"status": 7,
"sqlstate": "42704",
"transaction_status": 0,
"message": "type \"c_host_input_ref.private_positive\" does not exist"
},
{
"sql": "BEGIN",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"sql": "CREATE ROLE c_host_input_probe",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"sql": "GRANT USAGE ON SCHEMA c_host_input_ref TO PUBLIC",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"sql": "REVOKE ALL ON TYPE c_host_input_ref.mood, c_host_input_ref.positive FROM PUBLIC",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"sql": "SET ROLE c_host_input_probe",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"type": "c_host_input_ref.mood",
"input": "calm",
"status": 2,
"sqlstate": "",
"transaction_status": 2,
"rows": [
[
"calm"
]
]
},
{
"type": "c_host_input_ref.positive",
"input": "1",
"status": 2,
"sqlstate": "",
"transaction_status": 2,
"rows": [
[
"1"
]
]
},
{
"sql": "RESET ROLE",
"status": 1,
"sqlstate": "",
"transaction_status": 2
},
{
"sql": "ROLLBACK",
"status": 1,
"sqlstate": "",
"transaction_status": 0
}
]
}