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

The sqlite_trace() API only works for commands started by the user, not for

SQL commands run during initialization. (CVS 1298)

FossilOrigin-Name: 0a12473c4ae370ec34f1f431dd6d7d6ffa25d41a
This commit is contained in:
drh
2004-03-17 18:44:45 +00:00
parent a8804c82b8
commit 276fd588d8
4 changed files with 24 additions and 33 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.162 2004/03/04 19:09:20 rdc Exp $
** $Id: main.c,v 1.163 2004/03/17 18:44:47 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -719,7 +719,7 @@ int sqlite_compile(
memset(&sParse, 0, sizeof(sParse));
sParse.db = db;
sqliteRunParser(&sParse, zSql, pzErrMsg);
if( db->xTrace ){
if( db->xTrace && !db->init.busy ){
/* Trace only the statment that was compiled.
** Make a copy of that part of the SQL string since zSQL is const
** and we must pass a zero terminated string to the trace function