1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Update the query planner to recognize more cases where ORDER BY clauses

can be optimized out.  Add test cases to verify correct behavior of the
ORDER BY optimization when the covering-index-scan optimization is disabled.
Fix a harmless compiler warning in the TCL interface.

FossilOrigin-Name: 956e4d7f8958e7065ff2d61cd71519d6f4113d4a
This commit is contained in:
drh
2012-10-03 12:56:18 +00:00
7 changed files with 179 additions and 130 deletions

View File

@@ -1489,7 +1489,7 @@ static Tcl_Obj *dbEvalColumnValue(DbEvalContext *p, int iCol){
}
}
return Tcl_NewStringObj(sqlite3_column_text(pStmt, iCol), -1);
return Tcl_NewStringObj((char*)sqlite3_column_text(pStmt, iCol), -1);
}
/*