New Approach Enhances Database Testing Capabilities

Thursday 23 January 2025


A team of researchers has developed a new approach for testing database management systems (DBMSs) that can detect logic bugs, which are errors in the way data is processed and stored by these crucial software systems.


The researchers’ method, called Constant-Optimization-Driven Database Testing (CODDTest), works by applying constant folding and propagation to specific expressions within a query. This process simplifies the expression, making it easier for the DBMS to execute efficiently. However, this approach also makes it more likely that the DBMS will encounter logic bugs.


To test CODDTest, the researchers evaluated its effectiveness on five mature and well-tested DBMSs. They found that CODDTest was able to detect 45 bugs in total, with 24 of them being logic bugs. These bugs were missed by existing testing approaches, demonstrating the effectiveness of CODDTest.


The researchers also analyzed the types of queries used in their tests and found that CODDTest generated test cases that exercised more unique query plans than existing methods. This suggests that CODDTest is capable of exploring interesting functionality within a DBMS that may not be covered by other testing approaches.


One of the key advantages of CODDTest is its ability to detect logic bugs without requiring access to the source code of the DBMS. This makes it a more practical approach for testing commercial DBMSs, which often keep their source code proprietary.


The researchers believe that CODDTest has the potential to be widely applicable and could be used in conjunction with other testing approaches to provide comprehensive coverage of a DBMS’s functionality.


Overall, the development of CODDTest represents an important step forward in the field of database testing. By detecting logic bugs more effectively than existing methods, CODDTest can help ensure the reliability and accuracy of DBMSs, which are critical components of many modern software systems.


Cite this article: “New Approach Enhances Database Testing Capabilities”, The Science Archive, 2025.


Database Testing, Coddtest, Logic Bugs, Dbmss, Constant Folding, Propagation, Query Plans, Unique Tests, Proprietary Code, Comprehensive Coverage.


Reference: Chi Zhang, Manuel Rigger, “Constant Optimization Driven Database System Testing” (2025).


Leave a Reply