Skip to content

Commit f3c9283

Browse files
committed
update unit test for pg_collation to postgres version 17
1 parent 0a32027 commit f3c9283

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

rust/cubesql/cubesql/src/compile/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17702,9 +17702,9 @@ LIMIT {{ limit }}{% endif %}"#.to_string(),
1770217702
#[tokio::test]
1770317703
async fn test_pg_collation() -> Result<(), CubeError> {
1770417704
insta::assert_snapshot!(
17705-
"pg_collation",
17705+
"pg_collation_PG17",
1770617706
execute_query(
17707-
"SELECT * FROM pg_catalog.pg_collation".to_string(),
17707+
"SELECT * FROM pg_catalog.pg_collation ORDER BY oid".to_string(),
1770817708
DatabaseProtocol::PostgreSQL
1770917709
)
1771017710
.await?

rust/cubesql/cubesql/src/compile/snapshots/cubesql__compile__tests__pg_collation.snap

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
source: cubesql/src/compile/mod.rs
3+
expression: "execute_query(\"SELECT * FROM pg_catalog.pg_collation ORDER BY oid\".to_string(),\nDatabaseProtocol::PostgreSQL).await?"
4+
---
5+
+-----+-----------+---------------+-----------+--------------+---------------------+--------------+-------------+-----------+------------+---------------+--------------+-------------+
6+
| oid | collname | collnamespace | collowner | collprovider | collisdeterministic | collencoding | collcollate | collctype | colllocale | colliculocale | collicurules | collversion |
7+
+-----+-----------+---------------+-----------+--------------+---------------------+--------------+-------------+-----------+------------+---------------+--------------+-------------+
8+
| 100 | default | 11 | 10 | d | true | -1 | NULL | NULL | NULL | NULL | NULL | NULL |
9+
| 811 | pg_c_utf8 | 11 | 10 | b | true | 6 | NULL | NULL | C.UTF-8 | C.UTF-8 | NULL | 1 |
10+
| 950 | C | 11 | 10 | c | true | -1 | C | C | NULL | NULL | NULL | NULL |
11+
| 951 | POSIX | 11 | 10 | c | true | -1 | POSIX | POSIX | NULL | NULL | NULL | NULL |
12+
| 962 | ucs_basic | 11 | 10 | b | true | 6 | NULL | NULL | C | C | NULL | 1 |
13+
| 963 | unicode | 11 | 10 | i | true | -1 | NULL | NULL | und | und | NULL | 153.128 |
14+
+-----+-----------+---------------+-----------+--------------+---------------------+--------------+-------------+-----------+------------+---------------+--------------+-------------+

0 commit comments

Comments
 (0)