aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-10-03 12:56:18 +0000
committerdrh <drh@noemail.net>2012-10-03 12:56:18 +0000
commit325eff58d6b8b4563827e51f8ac9185751bdb9bf (patch)
treeeec9d179c0e3ccb80dde5172b0999007ee2ad480 /src/tclsqlite.c
parentc45e67162de9ad08991b095db0f5ae6d089f3535 (diff)
parent6f0e400cba68d8cf91a6c3d0a0525b14cd5052e2 (diff)
downloadsqlite-325eff58d6b8b4563827e51f8ac9185751bdb9bf.tar.gz
sqlite-325eff58d6b8b4563827e51f8ac9185751bdb9bf.zip
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
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 5ea67782a..57dab85d4 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -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);
}
/*