From 59660f0c2548bba67ee0d2b1060c45c96254df5b Mon Sep 17 00:00:00 2001 From: Pavan-Nambi Date: Tue, 23 Sep 2025 12:48:35 +0530 Subject: [PATCH] remove tests for column type spaces --- core/schema.rs | 2 +- testing/alter_table.test | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/core/schema.rs b/core/schema.rs index 05546a5e2..71cbb4932 100644 --- a/core/schema.rs +++ b/core/schema.rs @@ -1294,7 +1294,7 @@ impl From<&ColumnDefinition> for Column { let ty_str = value .col_type .as_ref() - .map(|t| t.to_string()) + .map(|t| t.name.to_string()) .unwrap_or_default(); let hidden = ty_str.contains("HIDDEN"); diff --git a/testing/alter_table.test b/testing/alter_table.test index c7eac8c9f..26f79cd67 100755 --- a/testing/alter_table.test +++ b/testing/alter_table.test @@ -143,18 +143,6 @@ do_execsql_test_in_memory_any_error fail-alter-table-add-duplicate-column-case-i CREATE TABLE t1 (a); ALTER TABLE t1 ADD COLUMN A; } -do_execsql_test_on_specific_db {:memory:} alter-table-add-column-type-should-be-same { - CREATE TABLE t1 (id integer); - ALTER TABLE t1 ADD COLUMN name varchar(255); - SELECT sql FROM sqlite_schema WHERE name = 't1'; -} { "CREATE TABLE t1 (id integer, name varchar (255))" } - -do_execsql_test_on_specific_db {:memory:} alter-table-add-column-type-should-be-same-2 { - CREATE TABLE t1 (a); - ALTER TABLE t1 ADD COLUMN price DECIMAL(10, 2); - SELECT sql FROM sqlite_schema WHERE name = 't1'; -} { "CREATE TABLE t1 (a, price DECIMAL (10, 2))" } - do_execsql_test_in_memory_any_error fail-alter-table-drop-primary-key-column { CREATE TABLE t (a PRIMARY KEY, b);