TestTypesUUID tests UUID type handling
(t *testing.T)
| 171 | } |
| 172 | runQueryTests(t, tests) |
| 173 | } |
| 174 | |
| 175 | // TestTypesUUID tests UUID type handling |
| 176 | func TestTypesUUID(t *testing.T) { |
| 177 | tests := []QueryTest{ |
| 178 | {Name: "uuid_literal", Query: "SELECT 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::UUID"}, |
| 179 | {Name: "gen_random_uuid", Query: "SELECT gen_random_uuid() IS NOT NULL"}, |
| 180 | {Name: "uuid_comparison", Query: "SELECT 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::UUID = 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::UUID"}, |
| 181 | |
| 182 | // From table |
| 183 | {Name: "select_uuid_column", Query: "SELECT uuid_col FROM types_test WHERE id = 1"}, |
| 184 | } |
| 185 | runQueryTests(t, tests) |
| 186 | } |
nothing calls this directly
no test coverage detected