/ Check-in [6e905270]
Login

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

Overview
Comment:Need SQLITE_MEMDEBUG instead of SQLITE_DEBUG in tclsqlite.c. (CVS 2209)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6e905270a933fd4c99f6db6707ed79166f6484ee
User & Date: drh 2005-01-13 23:54:32
Context
2005-01-14
01:22
Improved test coverage on insert.c. (CVS 2210) check-in: c772f751 user: drh tags: trunk
2005-01-13
23:54
Need SQLITE_MEMDEBUG instead of SQLITE_DEBUG in tclsqlite.c. (CVS 2209) check-in: 6e905270 user: drh tags: trunk
23:54
Fix a bug in lemon that does not effect SQLite. Ticket #1068. (CVS 2208) check-in: 7113b5ed user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/tclsqlite.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** A TCL Interface to SQLite
    13     13   **
    14         -** $Id: tclsqlite.c,v 1.114 2005/01/12 12:44:04 danielk1977 Exp $
           14  +** $Id: tclsqlite.c,v 1.115 2005/01/13 23:54:32 drh Exp $
    15     15   */
    16     16   #ifndef NO_TCL     /* Omit this whole file if TCL is unavailable */
    17     17   
    18     18   #include "sqliteInt.h"
    19     19   #include "hash.h"
    20     20   #include "tcl.h"
    21     21   #include <stdlib.h>
................................................................................
  1408   1408   
  1409   1409     /* If compiled with SQLITE_TEST turned on, then register the "md5sum"
  1410   1410     ** SQL function.
  1411   1411     */
  1412   1412   #ifdef SQLITE_TEST
  1413   1413     {
  1414   1414       extern void Md5_Register(sqlite3*);
  1415         -#ifdef SQLITE_DEBUG
         1415  +#ifdef SQLITE_MEMDEBUG
  1416   1416       int mallocfail = sqlite3_iMallocFail;
  1417   1417       sqlite3_iMallocFail = 0;
  1418   1418   #endif
  1419   1419       Md5_Register(p->db);
  1420         -#ifdef SQLITE_DEBUG
         1420  +#ifdef SQLITE_MEMDEBUG
  1421   1421       sqlite3_iMallocFail = mallocfail;
  1422   1422   #endif
  1423   1423      }
  1424   1424   #endif  
  1425   1425     p->interp = interp;
  1426   1426     return TCL_OK;
  1427   1427   }