7. A method for detecting an evaluation flaw in a SQL query, said SQL query configured to access data in a database table, comprising: creating a parse tree from said SQL query; evaluating step-wise, using a bottom-up methodology, through said parse tree to ascertain whether said SQL query includes a condition for said data access that when evaluated would result in a value is independent of contents of said database table, wherein said evaluating said parse tree further including storing a value of a select list element for subsequent expression evaluation; performing said subsequent expression evaluation when said select list element is a part of a sub-query; when, responsive to said evaluating, said condition is found, determining whether said condition is always true or whether said condition is always false; when, responsive to said determining, said condition is found to be always true or always false, designating said SQL query at risk for having said evaluation flaw in said SQL query; and rewriting the SQL query to avoid repeated performance of the condition.
7. A method for detecting an evaluation flaw in a SQL query, said SQL query configured to access data in a database table, comprising: creating a parse tree from said SQL query; evaluating step-wise, using a bottom-up methodology, through said parse tree to ascertain whether said SQL query includes a condition for said data access that when evaluated would result in a value is independent of contents of said database table, wherein said evaluating said parse tree further including storing a value of a select list element for subsequent expression evaluation; performing said subsequent expression evaluation when said select list element is a part of a sub-query; when, responsive to said evaluating, said condition is found, determining whether said condition is always true or whether said condition is always false; when, responsive to said determining, said condition is found to be always true or always false, designating said SQL query at risk for having said evaluation flaw in said SQL query; and rewriting the SQL query to avoid repeated performance of the condition. 10. The method of claim 7 , further comprising when said condition is found to be always true, designating said SQL query as having a tautology in said SQL query.