aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-07-03 22:54:36 +0000
committerdrh <drh@noemail.net>2009-07-03 22:54:36 +0000
commite7f3f3eec188730a42d92daa57f66492fa5de5fd (patch)
treea3994181f1fd80354d48ef9d4d3e43bd8ea6abf2 /src/tclsqlite.c
parent1adecdf8140801e889c7a96240520dd3addd4550 (diff)
downloadsqlite-e7f3f3eec188730a42d92daa57f66492fa5de5fd.tar.gz
sqlite-e7f3f3eec188730a42d92daa57f66492fa5de5fd.zip
Remove two unused fields from the Parse structure. The TCL interface now
removes leading whitespace from SQL statements before parsing them. (CVS 6846) FossilOrigin-Name: 983cb6924b8a7d3057718b9228c0cb2fbe7f0dc4
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 4c6c5fc31..d353fc3dd 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -12,7 +12,7 @@
** A TCL Interface to SQLite. Append this file to sqlite3.c and
** compile the whole thing to build a TCL-enabled version of SQLite.
**
-** $Id: tclsqlite.c,v 1.241 2009/03/27 12:44:35 drh Exp $
+** $Id: tclsqlite.c,v 1.242 2009/07/03 22:54:37 drh Exp $
*/
#include "tcl.h"
#include <errno.h>
@@ -1674,6 +1674,7 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
** which matches the next sequence of SQL.
*/
pStmt = 0;
+ while( isspace(zSql[0]) ){ zSql++; }
len = strlen30(zSql);
for(pPreStmt = pDb->stmtList; pPreStmt; pPreStmt=pPreStmt->pNext){
int n = pPreStmt->nSql;