File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ impl TestedDialects {
140140 ///
141141 /// In general, the canonical SQL should be the same (see crate
142142 /// documentation for rationale) and you should prefer the `verified_`
143- /// variants in testing, such as [`verified_statement `] or
143+ /// variants in testing, such as [`verified_stmt `] or
144144 /// [`verified_query`].
145145 ///
146146 /// If `canonical` is non empty,this function additionally asserts
@@ -199,13 +199,8 @@ impl TestedDialects {
199199 /// Ensures that `sql` parses as a single [Statement], and that
200200 /// re-serializing the parse result produces the same `sql`
201201 /// string (is not modified after a serialization round-trip).
202- pub fn verified_statement ( & self , sql : & str ) -> Statement {
203- self . one_statement_parses_to ( sql, sql)
204- }
205-
206- /// Shorthand for [`TestedDialects::verified_statement`].
207202 pub fn verified_stmt ( & self , sql : & str ) -> Statement {
208- self . verified_statement ( sql)
203+ self . one_statement_parses_to ( sql , sql)
209204 }
210205
211206 /// Ensures that `sql` parses as a single [Query], and that
Original file line number Diff line number Diff line change @@ -5032,12 +5032,12 @@ fn test_text_cast_with_length_modifier() {
50325032 _ => unreachable ! ( ) ,
50335033 }
50345034
5035- snowflake ( ) . verified_statement ( "SELECT col::TEXT(16777216) AS col FROM t" ) ;
5035+ snowflake ( ) . verified_stmt ( "SELECT col::TEXT(16777216) AS col FROM t" ) ;
50365036}
50375037
50385038#[ test]
50395039fn test_plain_text_data_type_still_parses_as_text ( ) {
5040- match snowflake ( ) . verified_statement ( "CREATE TABLE t (c TEXT)" ) {
5040+ match snowflake ( ) . verified_stmt ( "CREATE TABLE t (c TEXT)" ) {
50415041 Statement :: CreateTable ( CreateTable { columns, .. } ) => {
50425042 assert_eq ! ( columns[ 0 ] . data_type, DataType :: Text ) ;
50435043 }
You can’t perform that action at this time.
0 commit comments