Skip to content

Commit b2702cc

Browse files
committed
add missing column in table pg_collation schema
and reorganize column orders
1 parent a7c67fb commit b2702cc

File tree

1 file changed

+14
-4
lines changed
  • rust/cubesql/cubesql/src/compile/engine/information_schema/postgres

1 file changed

+14
-4
lines changed

rust/cubesql/cubesql/src/compile/engine/information_schema/postgres/pg_collation.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ impl PgCatalogCollationBuilder {
9191
self.collctype
9292
.append_option(coll.collctype.clone())
9393
.unwrap();
94-
self.collicurules
95-
.append_option(coll.collicurules.clone())
96-
.unwrap();
9794
self.colllocale
9895
.append_option(coll.colllocale.clone())
9996
.unwrap();
97+
self.collicurules
98+
.append_option(coll.collicurules.clone())
99+
.unwrap();
100100
self.collversion
101101
.append_option(coll.collversion.clone())
102102
.unwrap();
@@ -114,8 +114,8 @@ impl PgCatalogCollationBuilder {
114114
Arc::new(self.colliculocale.finish()),
115115
Arc::new(self.collcollate.finish()),
116116
Arc::new(self.collctype.finish()),
117-
Arc::new(self.collicurules.finish()),
118117
Arc::new(self.colllocale.finish()),
118+
Arc::new(self.collicurules.finish()),
119119
Arc::new(self.collversion.finish()),
120120
];
121121
columns
@@ -224,6 +224,16 @@ impl TableProvider for PgCatalogCollationProvider {
224224
Field::new("oid", DataType::UInt32, false),
225225
Field::new("collname", DataType::Utf8, false),
226226
Field::new("collnamespace", DataType::UInt32, false),
227+
Field::new("collowner", DataType::UInt32, false),
228+
Field::new("collprovider", DataType::Utf8, false),
229+
Field::new("collisdeterministic", DataType::Boolean, false),
230+
Field::new("collencoding", DataType::Int32, false),
231+
Field::new("colliculocale", DataType::Utf8, false),
232+
Field::new("collcollate", DataType::Utf8, false),
233+
Field::new("collctype", DataType::Utf8, false),
234+
Field::new("colllocale", DataType::Utf8, false),
235+
Field::new("collicurules", DataType::Utf8, false),
236+
Field::new("collversion", DataType::Utf8, false),
227237
]))
228238
}
229239
async fn scan(

0 commit comments

Comments
 (0)