forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcollate.slt
48 lines (37 loc) · 1.06 KB
/
collate.slt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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.
query T
SELECT '12:00:00' COLLATE pg_catalog.default
----
12:00:00
statement OK
CREATE TABLE test1 (a text, b text)
statement OK
INSERT INTO test1 VALUES('a', 'b')
query B
SELECT a < b FROM test1
----
true
query B
SELECT a < b COLLATE pg_catalog.default FROM test1
----
true
query B
SELECT a COLLATE pg_catalog.default < b FROM test1
----
true
# verify that other types are not supported
query error COLLATE not yet supported
SELECT '12:00:00' COLLATE "en_US"
query error COLLATE not yet supported
SELECT '12:00:00' COLLATE "de_DE"
query error COLLATE not yet supported
SELECT '12:00:00' COLLATE pg_catalog.de_DE
query error COLLATE not yet supported
SELECT '12:00:00' COLLATE mz_catalog.default