123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- # Copyright Materialize, Inc. and contributors. All rights reserved.
- #
- # Use of this software is governed by the Business Source License
- # included in the LICENSE file at the root of this repository.
- #
- # As of the Change Date specified in that file, in accordance with
- # the Business Source License, use of this software will be governed
- # by the Apache License, Version 2.0.
- mode cockroach
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::uuid
- ----
- 63616665-6630-3064-6465-616462656568
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::uuid::text
- ----
- 63616665-6630-3064-6465-616462656568
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::text::uuid
- ----
- 63616665-6630-3064-6465-616462656568
- query error invalid input syntax for type uuid
- SELECT 'Z3616665-6630-3064-6465-616462656568'::uuid
- query error does not support casting from uuid to bytea
- SELECT '63616665-6630-3064-6465-616462656568'::uuid::bytes
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::uuid = '63616665-6630-3064-6465-616462656568'::uuid;
- ----
- true
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::uuid = '86565626-4616-5646-4603-036656661636'::uuid;
- ----
- false
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::uuid <> '86565626-4616-5646-4603-036656661636'::uuid;
- ----
- true
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::uuid < '86565626-4616-5646-4603-036656661636'::uuid;
- ----
- true
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::uuid > '86565626-4616-5646-4603-036656661636'::uuid;
- ----
- false
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::uuid <= '86565626-4616-5646-4603-036656661636'::uuid;
- ----
- true
- query T
- SELECT '63616665-6630-3064-6465-616462656568'::uuid >= '86565626-4616-5646-4603-036656661636'::uuid;
- ----
- false
- query T
- select uuid_generate_v5('a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11', 'foo')
- ----
- 1b849fbd-9d94-5320-bbfc-c743414612d5
- query T
- select uuid_generate_v5(NULL, 'foo')
- ----
- NULL
- query T
- select uuid_generate_v5('a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11', NULL)
- ----
- NULL
|