Diff
Not logged in

Differences From:

File src/db.c part of check-in [d5695157d0] - Deal with windows filename aliasing in the "all" command. Ticket 974618fe5a8. Also display the home directory for windows users with the "info" command since the home directory is non-obvious in windows. by drh on 2009-11-11 16:21:19. [view]

To:

File src/db.c part of check-in [732d7c406e] - Update to the latest version of SQLite with improved sqlite3_trace() support. This makes the output of --sqltrace much more helpful. by drh on 2009-11-25 22:14:11. [view]

@@ -1051,9 +1051,10 @@
     }
   }
 }
 static void db_sql_trace(void *notUsed, const char *zSql){
-  printf("%s\n", zSql);
+  int n = strlen(zSql);
+  fprintf(stderr, "%s%s\n", zSql, (n>0 && zSql[n-1]==';') ? "" : ";");
 }
 
 /*
 ** This is used by the [commit] command.