/ Check-in [eeeba4f0]
Login

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

Overview
Comment:Enable large-file support for fopen() and friends in the command-line shell. Ticket [92af7da36b6fbd]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: eeeba4f0d2207ec26c60a405e2705e5d40022dbb
User & Date: drh 2011-10-13 16:02:17
Context
2011-10-13
16:30
Change the command-line shell to do the ".dump" inside of a SAVEPOINT rather than a transaction, since this allows it to be run from within a transaction. check-in: 6df7343b user: drh tags: trunk
16:02
Enable large-file support for fopen() and friends in the command-line shell. Ticket [92af7da36b6fbd] check-in: eeeba4f0 user: drh tags: trunk
15:35
Make sure the query optimizer for aggregate queries knows that expressions (x='a') and (x='A') are different. Ticket [fa7bf5ec94801e7e] check-in: e43da426 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/shell.c.

    13     13   ** utility for accessing SQLite databases.
    14     14   */
    15     15   #if (defined(_WIN32) || defined(WIN32)) && !defined(_CRT_SECURE_NO_WARNINGS)
    16     16   /* This needs to come before any includes for MSVC compiler */
    17     17   #define _CRT_SECURE_NO_WARNINGS
    18     18   #endif
    19     19   
           20  +/*
           21  +** Enable large-file support for fopen() and friends on unix.
           22  +*/
           23  +#ifndef SQLITE_DISABLE_LFS
           24  +# define _LARGE_FILE       1
           25  +# ifndef _FILE_OFFSET_BITS
           26  +#   define _FILE_OFFSET_BITS 64
           27  +# endif
           28  +# define _LARGEFILE_SOURCE 1
           29  +#endif
           30  +
    20     31   #include <stdlib.h>
    21     32   #include <string.h>
    22     33   #include <stdio.h>
    23     34   #include <assert.h>
    24     35   #include "sqlite3.h"
    25     36   #include <ctype.h>
    26     37   #include <stdarg.h>