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

Changes to src/test_schema.c.

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
..
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
**    May you share freely, never taking more than you give.
**
*************************************************************************
** Code for testing the virtual table interfaces.  This code
** is not included in the SQLite library.  It is used for automated
** testing of the SQLite library.
**
** $Id: test_schema.c,v 1.1 2006/06/15 15:59:20 danielk1977 Exp $
*/

/* The code in this file defines a sqlite3 module that provides
** a read-only view of the current database schema. There is one
** row in the schema table for each column in the database.
*/
#define SCHEMA \
................................................................................
/* If SQLITE_TEST is defined this code is preprocessed for use as part
** of the sqlite test binary "testfixture". Otherwise it is preprocessed
** to be compiled into an sqlite dynamic extension.
*/
#ifdef SQLITE_TEST
  #include "sqliteInt.h"
  #include "tcl.h"
  #define MALLOC(x) sqliteRawMalloc(x) 
  #define FREE(x)   sqliteFree(x)
#else
  #include "sqlite3ext.h"
  SQLITE_EXTENSION_INIT1
  #define MALLOC(x) malloc(x) 
  #define FREE(x)   free(x)
#endif







|







 







|







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
..
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
**    May you share freely, never taking more than you give.
**
*************************************************************************
** Code for testing the virtual table interfaces.  This code
** is not included in the SQLite library.  It is used for automated
** testing of the SQLite library.
**
** $Id: test_schema.c,v 1.2 2006/06/15 16:26:45 danielk1977 Exp $
*/

/* The code in this file defines a sqlite3 module that provides
** a read-only view of the current database schema. There is one
** row in the schema table for each column in the database.
*/
#define SCHEMA \
................................................................................
/* If SQLITE_TEST is defined this code is preprocessed for use as part
** of the sqlite test binary "testfixture". Otherwise it is preprocessed
** to be compiled into an sqlite dynamic extension.
*/
#ifdef SQLITE_TEST
  #include "sqliteInt.h"
  #include "tcl.h"
  #define MALLOC(x) sqliteMallocRaw(x) 
  #define FREE(x)   sqliteFree(x)
#else
  #include "sqlite3ext.h"
  SQLITE_EXTENSION_INIT1
  #define MALLOC(x) malloc(x) 
  #define FREE(x)   free(x)
#endif