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 Unified Diffs Ignore Whitespace Patch

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

367
368
369
370
371
372
373



374
375
376
377
378
379
380
381
              String.Format("{0}.", baseSchemaName), String.Empty);
        }
      }

      if ((cnn != null) &&
          ((cnn.Flags & SQLiteConnectionFlags.LogPrepare) == SQLiteConnectionFlags.LogPrepare))
      {



          SQLiteLog.LogMessage(0, String.Format("Preparing {{{0}}}...", strSql));
      }

      IntPtr stmt = IntPtr.Zero;
      IntPtr ptr = IntPtr.Zero;
      int len = 0;
      int n = 17;
      int retries = 0;







>
>
>
|







367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
              String.Format("{0}.", baseSchemaName), String.Empty);
        }
      }

      if ((cnn != null) &&
          ((cnn.Flags & SQLiteConnectionFlags.LogPrepare) == SQLiteConnectionFlags.LogPrepare))
      {
          if ((strSql == null) || (strSql.Length == 0) || (strSql.Trim().Length == 0))
              SQLiteLog.LogMessage(0, "Preparing {<nothing>}...");
          else
              SQLiteLog.LogMessage(0, String.Format("Preparing {{{0}}}...", strSql));
      }

      IntPtr stmt = IntPtr.Zero;
      IntPtr ptr = IntPtr.Zero;
      int len = 0;
      int n = 17;
      int retries = 0;