From 9d5948780ed30122cf15b2fcb6ea1f6574b010f9 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Thu, 24 Mar 2022 23:15:22 +0800 Subject: [PATCH] Tweaks: let it be --- src/backend/sqlite/table.rs | 3 --- tests/sqlite/table.rs | 1 - 2 files changed, 4 deletions(-) diff --git a/src/backend/sqlite/table.rs b/src/backend/sqlite/table.rs index 214a30051f..b778ea6d5a 100644 --- a/src/backend/sqlite/table.rs +++ b/src/backend/sqlite/table.rs @@ -138,9 +138,6 @@ impl TableBuilder for SqliteQueryBuilder { if alter.options.is_empty() { panic!("No alter option found") }; - if alter.options.len() > 1 { - panic!("Does not support multiple ALTER") - } write!(sql, "ALTER TABLE ").unwrap(); if let Some(table) = &alter.table { table.prepare(sql, self.quote()); diff --git a/tests/sqlite/table.rs b/tests/sqlite/table.rs index 558af54d4e..551cad2810 100644 --- a/tests/sqlite/table.rs +++ b/tests/sqlite/table.rs @@ -275,7 +275,6 @@ fn alter_6() { } #[test] -#[should_panic(expected = "Does not support multiple ALTER")] fn alter_7() { let _ = Table::alter() .table(Font::Table)