/ Check-in [d65d83d3]
Login

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

Overview
Comment:Fix type in test_schema.c. (CVS 3258)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d65d83d38321258a7bb8c38f4b2657650b0f1033
User & Date: danielk1977 2006-06-15 16:26:45
Context
2006-06-16
06:17
Arrange for sqlite3_last_insert_rowid() to work with virtual tables. (CVS 3259) check-in: afa39a46 user: danielk1977 tags: trunk
2006-06-15
16:26
Fix type in test_schema.c. (CVS 3258) check-in: d65d83d3 user: danielk1977 tags: trunk
15:59
Add test_schema.c, containing a module for viewing the database schema via a virtual table. (CVS 3257) check-in: de8d32ac user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_schema.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the virtual table interfaces.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15     15   **
    16         -** $Id: test_schema.c,v 1.1 2006/06/15 15:59:20 danielk1977 Exp $
           16  +** $Id: test_schema.c,v 1.2 2006/06/15 16:26:45 danielk1977 Exp $
    17     17   */
    18     18   
    19     19   /* The code in this file defines a sqlite3 module that provides
    20     20   ** a read-only view of the current database schema. There is one
    21     21   ** row in the schema table for each column in the database.
    22     22   */
    23     23   #define SCHEMA \
................................................................................
    35     35   /* If SQLITE_TEST is defined this code is preprocessed for use as part
    36     36   ** of the sqlite test binary "testfixture". Otherwise it is preprocessed
    37     37   ** to be compiled into an sqlite dynamic extension.
    38     38   */
    39     39   #ifdef SQLITE_TEST
    40     40     #include "sqliteInt.h"
    41     41     #include "tcl.h"
    42         -  #define MALLOC(x) sqliteRawMalloc(x) 
           42  +  #define MALLOC(x) sqliteMallocRaw(x) 
    43     43     #define FREE(x)   sqliteFree(x)
    44     44   #else
    45     45     #include "sqlite3ext.h"
    46     46     SQLITE_EXTENSION_INIT1
    47     47     #define MALLOC(x) malloc(x) 
    48     48     #define FREE(x)   free(x)
    49     49   #endif