@@ -44,27 +44,6 @@ pub(crate) trait ConcatSqlStandard<Clause: PartialEq> {
4444 format ! ( "{query}{raw_sql}{space}{lb}" )
4545 }
4646
47- fn concat_values (
48- & self ,
49- items_raw_before : & Vec < ( Clause , String ) > ,
50- items_raw_after : & Vec < ( Clause , String ) > ,
51- query : String ,
52- fmts : & fmt:: Formatter ,
53- clause : Clause ,
54- items : & Vec < String > ,
55- ) -> String {
56- let fmt:: Formatter { comma, lb, space, .. } = fmts;
57- let sql = if items. is_empty ( ) == false {
58- let sep = format ! ( "{comma}{lb}" ) ;
59- let values = items. join ( & sep) ;
60- format ! ( "VALUES{space}{lb}{values}{space}{lb}" )
61- } else {
62- "" . to_string ( )
63- } ;
64-
65- concat_raw_before_after ( items_raw_before, items_raw_after, query, fmts, clause, sql)
66- }
67-
6847 fn concat_where (
6948 & self ,
7049 items_raw_before : & Vec < ( Clause , String ) > ,
@@ -227,30 +206,6 @@ pub(crate) trait ConcatSqlite {
227206
228207 concat_raw_before_after ( items_raw_before, items_raw_after, query, fmts, clause, sql)
229208 }
230-
231- fn concat_values (
232- & self ,
233- items_raw_before : & Vec < ( InsertClause , String ) > ,
234- items_raw_after : & Vec < ( InsertClause , String ) > ,
235- query : String ,
236- fmts : & fmt:: Formatter ,
237- values : & Vec < String > ,
238- default_values : & bool ,
239- ) -> String {
240- let fmt:: Formatter { comma, lb, space, .. } = fmts;
241-
242- let ( clause, sql) = if * default_values {
243- ( InsertClause :: DefaultValues , format ! ( "DEFAULT VALUES{space}{lb}" ) )
244- } else if values. is_empty ( ) == false {
245- let sep = format ! ( "{comma}{lb}" ) ;
246- let values = values. join ( & sep) ;
247- ( InsertClause :: Values , format ! ( "VALUES{space}{lb}{values}{space}{lb}" ) )
248- } else {
249- ( InsertClause :: Values , "" . to_string ( ) )
250- } ;
251-
252- concat_raw_before_after ( items_raw_before, items_raw_after, query, fmts, clause, sql)
253- }
254209}
255210
256211impl std:: fmt:: Display for LogicalOperator {
0 commit comments