summaryrefslogtreecommitdiffstats
path: root/test/test_sql_coll_func.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_sql_coll_func.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/test_sql_coll_func.sh b/test/test_sql_coll_func.sh
new file mode 100644
index 0000000..2e61f9a
--- /dev/null
+++ b/test/test_sql_coll_func.sh
@@ -0,0 +1,29 @@
+#! /bin/bash
+
+run_cap_test ./drive_sql "select '192.168.1.10' < '192.168.1.2'"
+
+run_cap_test ./drive_sql "select '192.168.1.10' < '192.168.1.2' collate ipaddress"
+
+run_cap_test ./drive_sql "select '192.168.1.10' < '192.168.1.12' collate ipaddress"
+
+run_cap_test ./drive_sql "select '::ffff:192.168.1.10' = '192.168.1.10' collate ipaddress"
+
+run_cap_test ./drive_sql "select 'fe80::a85f:80b4:5cbe:8691' = 'fe80:0000:0000:0000:a85f:80b4:5cbe:8691' collate ipaddress"
+
+run_cap_test ./drive_sql "select '' < '192.168.1.2' collate ipaddress"
+
+run_cap_test ./drive_sql "select '192.168.1.2' > '' collate ipaddress"
+
+run_cap_test ./drive_sql "select '192.168.1.2' < 'fe80::a85f:80b4:5cbe:8691' collate ipaddress"
+
+run_cap_test ./drive_sql "select 'h9.example.com' < 'h10.example.com' collate ipaddress"
+
+run_cap_test ./drive_sql "select 'file10.txt' < 'file2.txt'"
+
+run_cap_test ./drive_sql "select 'file10.txt' < 'file2.txt' collate naturalcase"
+
+run_cap_test ./drive_sql "select 'w' < 'e' collate loglevel"
+
+run_cap_test ./drive_sql "select 'e' < 'w' collate loglevel"
+
+run_cap_test ./drive_sql "select 'info' collate loglevel between 'trace' and 'fatal'"