From 9061024fad94c0cec3d69c86b73898df2e5fd6d4 Mon Sep 17 00:00:00 2001 From: rajajisai Date: Sat, 11 Oct 2025 21:39:46 -0400 Subject: [PATCH] add test --- testing/drop_table.test | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testing/drop_table.test b/testing/drop_table.test index 9365b70d4..d7d02256c 100755 --- a/testing/drop_table.test +++ b/testing/drop_table.test @@ -12,6 +12,15 @@ do_execsql_test_on_specific_db {:memory:} drop-table-basic-1 { SELECT count(*) FROM sqlite_schema WHERE type='table' AND name='t1'; } {0} +# The table should be dropped irrespective of the case of the table name. +do_execsql_test_on_specific_db {:memory:} drop-table-case-insensitive { + CREATE TABLE test (x INTEGER PRIMARY KEY); + INSERT INTO test VALUES (1); + INSERT INTO test VALUES (2); + DROP TABLE TeSt; + SELECT count(*) FROM sqlite_schema WHERE type='table' AND name='test'; +} {0} + # Test DROP TABLE IF EXISTS on existing table do_execsql_test_on_specific_db {:memory:} drop-table-if-exists-1 { CREATE TABLE t2 (x INTEGER PRIMARY KEY);