File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ pub fn adding_field_with_default(
4545 . filter ( |x| !x. is_empty ( ) )
4646 . collect ( ) ;
4747
48- // println!("{:#?}", non_volatile_funcs);
4948 for raw_stmt in tree {
5049 match & raw_stmt. stmt {
5150 Stmt :: AlterTableStmt ( stmt) => {
Original file line number Diff line number Diff line change @@ -77,17 +77,4 @@ COMMIT;
7777 "# ;
7878 assert_debug_snapshot ! ( lint_sql( sql) ) ;
7979 }
80- #[ test]
81- fn regression_with_indexing_2 ( ) {
82- let sql = r#"
83- BEGIN;
84- ALTER TABLE "core_recipe" ADD COLUMN "foo" integer DEFAULT 10;
85- ALTER TABLE "core_recipe" ADD CONSTRAINT foo_not_null
86- CHECK ("foo" IS NOT NULL) NOT VALID;
87- COMMIT;
88- BEGIN;
89-
90- "# ;
91- assert_debug_snapshot ! ( lint_sql( sql) ) ;
92- }
9380}
Original file line number Diff line number Diff line change @@ -265,4 +265,18 @@ ALTER TABLE accounts VALIDATE CONSTRAINT positive_balance;
265265
266266 assert_debug_snapshot ! ( lint_sql( ok_sql) ) ;
267267 }
268+
269+ #[ test]
270+ fn regression_with_indexing_2 ( ) {
271+ let sql = r#"
272+ BEGIN;
273+ ALTER TABLE "core_recipe" ADD COLUMN "foo" integer DEFAULT 10;
274+ ALTER TABLE "core_recipe" ADD CONSTRAINT foo_not_null
275+ CHECK ("foo" IS NOT NULL) NOT VALID;
276+ COMMIT;
277+ BEGIN;
278+
279+ "# ;
280+ assert_debug_snapshot ! ( lint_sql( sql) ) ;
281+ }
268282}
You can’t perform that action at this time.
0 commit comments