remove tests for column type spaces

This commit is contained in:
Pavan-Nambi
2025-09-23 12:48:35 +05:30
parent cd1f1ce46e
commit 59660f0c25
2 changed files with 1 additions and 13 deletions

View File

@@ -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");

View File

@@ -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);