Title :
Semantic errors in SQL queries: a quite complete list
Author :
Brass, Stefan ; Goldberg, Christian
Author_Institution :
Martin-Luther-Univ., Halle-Wittenberg, Germany
Abstract :
We investigate classes of SQL queries which are syntactically correct, but certainly not intended, no matter for which task the query was written. For instance, queries that are contradictory, i.e. always return the empty set, are obviously not intended. However, current database management systems execute such queries without any warning. We give an extensive list of conditions that are strong indications of semantic errors. Of course, questions like the satisfiability are in general undecidable, but a significant subset of SQL queries can actually be checked. We believe that future database management systems perform such checks and that the generated warnings help to develop code with fewer bugs in less time.
Keywords :
SQL; computability; database management systems; programming language semantics; query processing; SQL queries; complete list; database management systems; satisfiability; semantic errors; undecidability; Computer bugs; Computer errors; Computer languages; Database systems; EMP radiation effects; Education; Error correction; Law; Legal factors; Printing;
Conference_Titel :
Quality Software, 2004. QSIC 2004. Proceedings. Fourth International Conference on
Print_ISBN :
0-7695-2207-6
DOI :
10.1109/QSIC.2004.1357967