File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
mod handlers;
2
2
pub mod pg_catalog;
3
- mod sql;
3
+ pub mod sql;
4
4
5
5
use std:: fs:: File ;
6
6
use std:: io:: { BufReader , Error as IOError , ErrorKind } ;
Original file line number Diff line number Diff line change @@ -177,6 +177,12 @@ pub struct PostgresCompatibilityParser {
177
177
rewrite_rules : Vec < Arc < dyn SqlStatementRewriteRule > > ,
178
178
}
179
179
180
+ impl Default for PostgresCompatibilityParser {
181
+ fn default ( ) -> Self {
182
+ Self :: new ( )
183
+ }
184
+ }
185
+
180
186
impl PostgresCompatibilityParser {
181
187
pub fn new ( ) -> Self {
182
188
let mut mapping = Vec :: with_capacity ( BLACKLIST_SQL_MAPPING . len ( ) ) ;
Original file line number Diff line number Diff line change @@ -266,6 +266,12 @@ pub struct RemoveUnsupportedTypes {
266
266
unsupported_types : HashSet < String > ,
267
267
}
268
268
269
+ impl Default for RemoveUnsupportedTypes {
270
+ fn default ( ) -> Self {
271
+ Self :: new ( )
272
+ }
273
+ }
274
+
269
275
impl RemoveUnsupportedTypes {
270
276
pub fn new ( ) -> Self {
271
277
let mut unsupported_types = HashSet :: new ( ) ;
You can’t perform that action at this time.
0 commit comments