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 11mod handlers;
22pub mod pg_catalog;
3- mod sql;
3+ pub mod sql;
44
55use std:: fs:: File ;
66use std:: io:: { BufReader , Error as IOError , ErrorKind } ;
Original file line number Diff line number Diff line change @@ -177,6 +177,12 @@ pub struct PostgresCompatibilityParser {
177177 rewrite_rules : Vec < Arc < dyn SqlStatementRewriteRule > > ,
178178}
179179
180+ impl Default for PostgresCompatibilityParser {
181+ fn default ( ) -> Self {
182+ Self :: new ( )
183+ }
184+ }
185+
180186impl PostgresCompatibilityParser {
181187 pub fn new ( ) -> Self {
182188 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 {
266266 unsupported_types : HashSet < String > ,
267267}
268268
269+ impl Default for RemoveUnsupportedTypes {
270+ fn default ( ) -> Self {
271+ Self :: new ( )
272+ }
273+ }
274+
269275impl RemoveUnsupportedTypes {
270276 pub fn new ( ) -> Self {
271277 let mut unsupported_types = HashSet :: new ( ) ;
You can’t perform that action at this time.
0 commit comments