li7y/.sqlx/query-b7b928c24918aa24f80e4c74eeca04b60bf7295a6d7505ab4897e18b8d7cfbee.json
Simon Bruder 6e4e8d3d93
Fix formatting of short ID on label
PostgreSQL adds a space in front of the number if not specified
otherwise, to account for a minus sign with negative numbers. As all
short IDs are positive, it can be suppressed here.
2024-07-27 16:15:14 +02:00

29 lines
597 B
JSON

{
"db_name": "PostgreSQL",
"query": "SELECT id AS \"id?\", to_char(short_id, 'FM000000') AS \"short_id?\"\n FROM items\n WHERE id = ANY ($1)",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id?",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "short_id?",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"UuidArray"
]
},
"nullable": [
false,
null
]
},
"hash": "b7b928c24918aa24f80e4c74eeca04b60bf7295a6d7505ab4897e18b8d7cfbee"
}