File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ pub async fn prepare(
99
99
name : field. name ( ) . to_string ( ) ,
100
100
table_oid : Some ( field. table_oid ( ) ) . filter ( |n| * n != 0 ) ,
101
101
column_id : Some ( field. column_id ( ) ) . filter ( |n| * n != 0 ) ,
102
+ type_modifier : field. type_modifier ( ) ,
102
103
r#type : type_,
103
104
} ;
104
105
columns. push ( column) ;
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ pub struct Column {
67
67
pub ( crate ) name : String ,
68
68
pub ( crate ) table_oid : Option < u32 > ,
69
69
pub ( crate ) column_id : Option < i16 > ,
70
+ pub ( crate ) type_modifier : i32 ,
70
71
pub ( crate ) r#type : Type ,
71
72
}
72
73
@@ -86,6 +87,11 @@ impl Column {
86
87
self . column_id
87
88
}
88
89
90
+ /// Return the type modifier
91
+ pub fn type_modifier ( & self ) -> i32 {
92
+ self . type_modifier
93
+ }
94
+
89
95
/// Returns the type of the column.
90
96
pub fn type_ ( & self ) -> & Type {
91
97
& self . r#type
You can’t perform that action at this time.
0 commit comments