/ Check-in [74d297d9]
Login

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

Overview
Comment:Fix the spelling of sqliteRegisterBuiltinFunctions(). (CVS 613)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:74d297d97e66452acc5c21048ee8ddf2a90c846f
User & Date: drh 2002-06-09 10:14:19
Context
2002-06-11
02:25
Add RAISE() function, which allows more advanced flow-control in trigger programs (ticket #55) (CVS 614) check-in: d4a2fb10 user: danielk1977 tags: trunk
2002-06-09
10:14
Fix the spelling of sqliteRegisterBuiltinFunctions(). (CVS 613) check-in: 74d297d9 user: drh tags: trunk
01:55
Added tests for the new IN operator optimizer and fixed a bug that the new tests found. This completes the implementation of enhancement #63. (CVS 612) check-in: 2a710e18 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.19 2002/05/31 15:51:25 drh Exp $
           19  +** $Id: func.c,v 1.20 2002/06/09 10:14: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   
................................................................................
   408    408   }
   409    409   
   410    410   /*
   411    411   ** This function registered all of the above C functions as SQL
   412    412   ** functions.  This should be the only routine in this file with
   413    413   ** external linkage.
   414    414   */
   415         -void sqliteRegisterBuildinFunctions(sqlite *db){
          415  +void sqliteRegisterBuiltinFunctions(sqlite *db){
   416    416     static struct {
   417    417        char *zName;
   418    418        int nArg;
   419    419        void (*xFunc)(sqlite_func*,int,const char**);
   420    420     } aFuncs[] = {
   421    421       { "min",       -1, minFunc    },
   422    422       { "min",        0, 0          },

Changes to src/main.c.

    10     10   **
    11     11   *************************************************************************
    12     12   ** Main file for the SQLite library.  The routines in this file
    13     13   ** implement the programmer interface to the library.  Routines in
    14     14   ** other files are for internal use by SQLite and should not be
    15     15   ** accessed by users of the library.
    16     16   **
    17         -** $Id: main.c,v 1.77 2002/05/23 13:15:37 drh Exp $
           17  +** $Id: main.c,v 1.78 2002/06/09 10:14:19 drh Exp $
    18     18   */
    19     19   #include "sqliteInt.h"
    20     20   #include "os.h"
    21     21   #include <ctype.h>
    22     22   
    23     23   /*
    24     24   ** This is the callback routine for the code that initializes the
................................................................................
   328    328     sqliteHashInit(&db->tblHash, SQLITE_HASH_STRING, 0);
   329    329     sqliteHashInit(&db->idxHash, SQLITE_HASH_STRING, 0);
   330    330     sqliteHashInit(&db->trigHash, SQLITE_HASH_STRING, 0);
   331    331     sqliteHashInit(&db->trigDrop, SQLITE_HASH_STRING, 0);
   332    332     sqliteHashInit(&db->tblDrop, SQLITE_HASH_POINTER, 0);
   333    333     sqliteHashInit(&db->idxDrop, SQLITE_HASH_POINTER, 0);
   334    334     sqliteHashInit(&db->aFunc, SQLITE_HASH_STRING, 1);
   335         -  sqliteRegisterBuildinFunctions(db);
          335  +  sqliteRegisterBuiltinFunctions(db);
   336    336     db->onError = OE_Default;
   337    337     db->priorNewRowid = 0;
   338    338     db->magic = SQLITE_MAGIC_BUSY;
   339    339     
   340    340     /* Open the backend database driver */
   341    341     rc = sqliteBtreeOpen(zFilename, mode, MAX_PAGES, &db->pBe);
   342    342     if( rc!=SQLITE_OK ){

Changes to src/sqliteInt.h.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Internal interface definitions for SQLite.
    13     13   **
    14         -** @(#) $Id: sqliteInt.h,v 1.121 2002/06/08 23:25:09 drh Exp $
           14  +** @(#) $Id: sqliteInt.h,v 1.122 2002/06/09 10:14:19 drh Exp $
    15     15   */
    16     16   #include "sqlite.h"
    17     17   #include "hash.h"
    18     18   #include "vdbe.h"
    19     19   #include "parse.h"
    20     20   #include "btree.h"
    21     21   #include <stdio.h>
................................................................................
   882    882   void sqliteSelectMoveStrings(Select*, int);
   883    883   Expr *sqliteExprDup(Expr*);
   884    884   ExprList *sqliteExprListDup(ExprList*);
   885    885   SrcList *sqliteSrcListDup(SrcList*);
   886    886   IdList *sqliteIdListDup(IdList*);
   887    887   Select *sqliteSelectDup(Select*);
   888    888   FuncDef *sqliteFindFunction(sqlite*,const char*,int,int,int);
   889         -void sqliteRegisterBuildinFunctions(sqlite*);
          889  +void sqliteRegisterBuiltinFunctions(sqlite*);
   890    890   int sqliteSafetyOn(sqlite*);
   891    891   int sqliteSafetyOff(sqlite*);
   892    892   int sqliteSafetyCheck(sqlite*);
   893    893   void sqliteChangeCookie(sqlite *);
   894    894   void sqliteCreateTrigger(Parse*, Token*, int, int, IdList*, Token*, 
   895    895                            int, Expr*, TriggerStep*, char const*,int);
   896    896   void sqliteDropTrigger(Parse*, Token*, int);