/ Check-in [ee335b50]
Login

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

Overview
Comment:Fix an uninitialized variable bug in nullif(). Ticket #898. (CVS 1957)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ee335b501cf45727929aac12c0b74547dd54729e
User & Date: drh 2004-09-13 13:13:19
Context
2004-09-13
13:16
The TCL interface responds correctly to "break", "continue", and "return" inside of the script of an eval statement. (CVS 1958) check-in: dd62224a user: drh tags: trunk
13:13
Fix an uninitialized variable bug in nullif(). Ticket #898. (CVS 1957) check-in: ee335b50 user: drh tags: trunk
2004-09-10
00:14
In lemon, allows open() using the "b" option to avoid \r problems on windows. Ticket #897. (CVS 1956) check-in: b5b2e3db user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/func.c.

    12     12   ** This file contains the C functions that implement various SQL
    13     13   ** functions of SQLite.  
    14     14   **
    15     15   ** There is only one exported symbol in this file - the function
    16     16   ** sqliteRegisterBuildinFunctions() found at the bottom of the file.
    17     17   ** All other code has file scope.
    18     18   **
    19         -** $Id: func.c,v 1.83 2004/09/06 17:24:13 drh Exp $
           19  +** $Id: func.c,v 1.84 2004/09/13 13:13:19 drh Exp $
    20     20   */
    21     21   #include <ctype.h>
    22     22   #include <math.h>
    23     23   #include <stdlib.h>
    24     24   #include <assert.h>
    25     25   #include "sqliteInt.h"
    26     26   #include "vdbeInt.h"
................................................................................
   942    942       { "coalesce",          -1, 0, SQLITE_UTF8,    0, ifnullFunc },
   943    943       { "coalesce",           0, 0, SQLITE_UTF8,    0, 0          },
   944    944       { "coalesce",           1, 0, SQLITE_UTF8,    0, 0          },
   945    945       { "ifnull",             2, 0, SQLITE_UTF8,    1, ifnullFunc },
   946    946       { "random",            -1, 0, SQLITE_UTF8,    0, randomFunc },
   947    947       { "like",               2, 0, SQLITE_UTF8,    0, likeFunc   },
   948    948       { "glob",               2, 0, SQLITE_UTF8,    0, globFunc   },
   949         -    { "nullif",             2, 0, SQLITE_UTF8,    0, nullifFunc },
          949  +    { "nullif",             2, 0, SQLITE_UTF8,    1, nullifFunc },
   950    950       { "sqlite_version",     0, 0, SQLITE_UTF8,    0, versionFunc},
   951    951       { "quote",              1, 0, SQLITE_UTF8,    0, quoteFunc  },
   952    952       { "last_insert_rowid",  0, 1, SQLITE_UTF8,    0, last_insert_rowid },
   953    953       { "changes",            0, 1, SQLITE_UTF8,    0, changes    },
   954    954       { "total_changes",      0, 1, SQLITE_UTF8,    0, total_changes },
   955    955   #ifdef SQLITE_SOUNDEX
   956    956       { "soundex",            1, 0, SQLITE_UTF8, 0, soundexFunc},