FIX: Syntax Error in SELECT List May Cause Handled AV (152615)



The information in this article applies to:

  • Microsoft SQL Server 6.0
  • Microsoft SQL Server 6.5

This article was previously published under Q152615
BUG#: 15027 (6.0)

SYMPTOMS

The absence of a comma between columns in the SELECT list may cause a handled AV under some narrow circumstances.

CAUSE

The parser incorrectly perceives that an alias is intended. A reference to the object later in the SELECT query, usually in a GROUP BY or ORDER BY clause triggers the parser confusion.

WORKAROUND

Add the comma to the SELECT clause.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. This problem has been corrected in U.S. Service Pack 1 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.

Modification Type:MajorLast Reviewed:10/16/2003
Keywords:kbBug kbfix kbprb kbProgramming KB152615