System.Data.SQLite
Check-in [85adfff6cd]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:When tracing prepared statements, detect null and/or empty SQL statements and emit a special message in that case.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 85adfff6cd15d4547a81c10737e1e2ae25b5ab8a
User & Date: mistachkin 2012-02-10 05:46:16
Context
2012-02-10
20:44
Regenerate package load key to support loading the designer package into Visual Studio 2008 without having the matching SDK installed. check-in: 67caeebd79 user: mistachkin tags: trunk
05:46
When tracing prepared statements, detect null and/or empty SQL statements and emit a special message in that case. check-in: 85adfff6cd user: mistachkin tags: trunk
2012-02-09
21:36
Make sure the interop project uses /fp:precise for Windows CE. check-in: 7479c0b7e1 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite/SQLite3.cs.

   367    367                 String.Format("{0}.", baseSchemaName), String.Empty);
   368    368           }
   369    369         }
   370    370   
   371    371         if ((cnn != null) &&
   372    372             ((cnn.Flags & SQLiteConnectionFlags.LogPrepare) == SQLiteConnectionFlags.LogPrepare))
   373    373         {
   374         -          SQLiteLog.LogMessage(0, String.Format("Preparing {{{0}}}...", strSql));
          374  +          if ((strSql == null) || (strSql.Length == 0) || (strSql.Trim().Length == 0))
          375  +              SQLiteLog.LogMessage(0, "Preparing {<nothing>}...");
          376  +          else
          377  +              SQLiteLog.LogMessage(0, String.Format("Preparing {{{0}}}...", strSql));
   375    378         }
   376    379   
   377    380         IntPtr stmt = IntPtr.Zero;
   378    381         IntPtr ptr = IntPtr.Zero;
   379    382         int len = 0;
   380    383         int n = 17;
   381    384         int retries = 0;