/ Check-in [6d4bc8f8]
Login

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

Overview
Comment:Add the SQLITE_OMIT_GET_TABLE compile-time flag. (CVS 2740)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6d4bc8f83b228b3804fffcb17ac57e1f754fa9cd
User & Date: drh 2005-10-05 02:13:41
Context
2005-10-05
10:29
Another attempt to get fdatasync to be ignored on non-conforming posix systems. Now a system has to opt-in for fdatasync instead of opt-out. Ticket #1467. (CVS 2741) check-in: 115340d4 user: drh tags: trunk
02:13
Add the SQLITE_OMIT_GET_TABLE compile-time flag. (CVS 2740) check-in: 6d4bc8f8 user: drh tags: trunk
2005-10-04
18:38
Automatically check for the fdatasync() function and replace it with fsync() if not found. (CVS 2739) check-in: 385a08af user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/table.c.

    16     16   ** These routines are in a separate files so that they will not be linked
    17     17   ** if they are not used.
    18     18   */
    19     19   #include <stdlib.h>
    20     20   #include <string.h>
    21     21   #include "sqliteInt.h"
    22     22   
           23  +#ifndef SQLITE_OMIT_GET_TABLE
           24  +
    23     25   /*
    24     26   ** This structure is used to pass data from sqlite3_get_table() through
    25     27   ** to the callback function is uses to build the result.
    26     28   */
    27     29   typedef struct TabResult {
    28     30     char **azResult;
    29     31     char *zErrMsg;
................................................................................
   189    191       azResult--;
   190    192       if( azResult==0 ) return;
   191    193       n = (int)azResult[0];
   192    194       for(i=1; i<n; i++){ if( azResult[i] ) free(azResult[i]); }
   193    195       free(azResult);
   194    196     }
   195    197   }
          198  +
          199  +#endif SQLITE_OMIT_GET_TABLE