Sciweavers

GVD
2004

Detecting Logical Errors in SQL Queries

14 years 28 days ago
Detecting Logical Errors in SQL Queries
Abstract. Checking the consistency of query conditions is an old problem, and there are already many proposed solutions. Since the problem is in general undecidable, there is not a unique best one. However, for conjunctions of comparisons, it seems that the method of Guo, Sun, and Weiss (1996) is the state of the art. In this paper, we show how it can be extended to handle many cases of subqueries (and also null values). In this way, the consistency of a surprisingly large subset of SQL can be decided. We apply this consistency check to the task of finding semantic errors in SQL queries. In particular, we discuss possible runtime errors in SQL queries and show how a test for such errors can be reduced to a consistency check. We believe that future database management systems will perform such checks and that the generated warnings will help to develop code with fewer bugs in less time.
Stefan Brass, Christian Goldberg
Added 30 Oct 2010
Updated 30 Oct 2010
Type Conference
Year 2004
Where GVD
Authors Stefan Brass, Christian Goldberg
Comments (0)