added delete operations to blobs in memory and write tests

This commit is contained in:
pedrocarlo
2025-05-31 14:40:28 -03:00
parent dae58be071
commit e97227ccb9
2 changed files with 10 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ class InsertTest(BaseModel):
def run(self, limbo: TestLimboShell):
zero_blob = "0" * self.blob_size * 2
big_stmt = [self.db_schema]
big_stmt = [self.db_schema, "CREATE INDEX test_index ON test(t1);"]
big_stmt = big_stmt + [
f"INSERT INTO test (t1) VALUES (zeroblob({self.blob_size}));"
if i % 2 == 0 and self.has_blob
@@ -37,6 +37,10 @@ class InsertTest(BaseModel):
big_stmt.append("SELECT count(*) FROM test;")
expected.append(str(self.vals * 2))
big_stmt.append("DELETE FROM temp;")
big_stmt.append("SELECT count(*) FROM temp;")
expected.append(str(0))
big_stmt = "".join(big_stmt)
expected = "\n".join(expected)