mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-09 10:21:35 +03:00
Improved error messages when column integers in an ORDER BY clause are
out of range. FossilOrigin-Name: bd960d937f8d6521c8ec4b7bd8a77a498dd432d4
This commit is contained in:
@@ -956,7 +956,7 @@ static int resolveOrderGroupBy(
|
||||
/* The ORDER BY term is an integer constant. Again, set the column
|
||||
** number so that sqlite3ResolveOrderGroupBy() will convert the
|
||||
** order-by term to a copy of the result-set expression */
|
||||
if( (iCol & ~0xffff)!=0 ){
|
||||
if( iCol<1 || iCol>0xffff ){
|
||||
resolveOutOfRangeError(pParse, zType, i+1, nResult);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user