Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Remove the no longer required FuncDestructor object. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
e5d82c92f092f99f8968ddd77c198b0c |
User & Date: | dan 2013-06-13 16:32:32.436 |
Context
2013-06-13
| ||
20:20 | Remove the encoding argument from sqlite4_create_collation(). Pass sqlite4_value objects to the collation sequence callbacks instead. check-in: 7f314c9a71 user: dan tags: trunk | |
16:32 | Remove the no longer required FuncDestructor object. check-in: e5d82c92f0 user: dan tags: trunk | |
15:24 | Remove the 'encoding' argument from sqlite4_create_function(). check-in: f88d080127 user: dan tags: trunk | |
Changes
Changes to src/main.c.
︙ | |||
322 323 324 325 326 327 328 | 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | - + - - - - + - - - + - - | } db->nSavepoint = 0; db->nStatement = 0; } /* ** Invoke the destructor function associated with FuncDef p, if any. Except, |
︙ | |||
542 543 544 545 546 547 548 | 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 | - + | sqlite4 *db, const char *zFunctionName, int nArg, void *pUserData, void (*xFunc)(sqlite4_context*,int,sqlite4_value **), void (*xStep)(sqlite4_context*,int,sqlite4_value **), void (*xFinal)(sqlite4_context*), |
︙ | |||
584 585 586 587 588 589 590 | 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 | - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + | return SQLITE4_NOMEM; } /* If an older version of the function with a configured destructor is ** being replaced invoke the destructor function here. */ functionDestroy(db, p); |
︙ |
Changes to src/pragma.c.
︙ | |||
197 198 199 200 201 202 203 | 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | - - - + - - - + - | void (*xFunc)(sqlite4_context *, int, sqlite4_value **); void (*xDestroy)(void *); void *pArg; rc = pKV->pStoreVfunc->xGetMethod(pKV, zPragma, &pArg, &xFunc, &xDestroy); if( rc==SQLITE4_OK ){ FuncDef *pDef; |
︙ |
Changes to src/resolve.c.
︙ | |||
576 577 578 579 580 581 582 | 576 577 578 579 580 581 582 583 584 585 586 587 588 589 | - | int no_such_func = 0; /* True if no such function exists */ int wrong_num_args = 0; /* True if wrong number of arguments */ int is_agg = 0; /* True if is an aggregate function */ int auth; /* Authorization to use the function */ int nId; /* Number of characters in function name */ const char *zId; /* The function name. */ FuncDef *pDef; /* Information about the function */ |
︙ |
Changes to src/sqlite.h.in.
︙ | |||
2339 2340 2341 2342 2343 2344 2345 | 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 | - | ** These constant define integer codes that represent the various ** text encodings supported by SQLite. */ #define SQLITE4_UTF8 1 #define SQLITE4_UTF16LE 2 #define SQLITE4_UTF16BE 3 #define SQLITE4_UTF16 4 /* Use native byte order */ |
︙ |
Changes to src/sqliteInt.h.
︙ | |||
566 567 568 569 570 571 572 | 566 567 568 569 570 571 572 573 574 575 576 577 578 579 | - | typedef struct Db Db; typedef struct Schema Schema; typedef struct Expr Expr; typedef struct ExprList ExprList; typedef struct ExprListItem ExprListItem; typedef struct ExprSpan ExprSpan; typedef struct FKey FKey; |
︙ | |||
641 642 643 644 645 646 647 | 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 | - + - + | struct FuncDef { i16 nArg; /* Number of arguments. -1 means unlimited */ u8 flags; /* Some combination of SQLITE4_FUNC_* */ void *pUserData; /* User data parameter */ FuncDef *pSameName; /* Next with a different name but the same hash */ void (*xFunc)(sqlite4_context*,int,sqlite4_value**); /* Regular function */ void (*xStep)(sqlite4_context*,int,sqlite4_value**); /* Aggregate step */ |
︙ | |||
930 931 932 933 934 935 936 | 929 930 931 932 933 934 935 936 937 938 939 940 941 942 | - - - - - - - - - - - - - - - - - - - - | */ #define SQLITE4_MAGIC_OPEN 0x4d06c919 /* Database is open */ #define SQLITE4_MAGIC_CLOSED 0x5f2246b4 /* Database is closed */ #define SQLITE4_MAGIC_SICK 0xcaad9e61 /* Error and awaiting close */ #define SQLITE4_MAGIC_BUSY 0xb07f8c8c /* Database currently in use */ #define SQLITE4_MAGIC_ERROR 0x912e4c46 /* An SQLITE4_MISUSE error occurred */ |
︙ | |||
3017 3018 3019 3020 3021 3022 3023 | 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 | - + | void sqlite4SchemaClear(sqlite4_env*,Schema*); Schema *sqlite4SchemaGet(sqlite4*); int sqlite4SchemaToIndex(sqlite4 *db, Schema *); KeyInfo *sqlite4IndexKeyinfo(Parse *, Index *); int sqlite4CreateFunc(sqlite4 *, const char *, int, void *, void (*)(sqlite4_context*,int,sqlite4_value **), void (*)(sqlite4_context*,int,sqlite4_value **), void (*)(sqlite4_context*), |
︙ |
Changes to src/vdbeaux.c.
︙ | |||
564 565 566 567 568 569 570 | 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 | - - + + | /* ** If the input FuncDef structure is ephemeral, then free it. If ** the FuncDef is not ephermal, then do nothing. */ static void freeEphemeralFunction(sqlite4 *db, FuncDef *pDef){ if( ALWAYS(pDef) && (pDef->flags & SQLITE4_FUNC_EPHEM)!=0 ){ |
︙ |
Changes to test/func3.test.
︙ | |||
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - + - + - + - + | set testdir [file dirname $argv0] source $testdir/tester.tcl do_test func3-2.1 { set destroyed 0 proc destroy {} { set ::destroyed 1 } |
Changes to test/test_main.c.
︙ | |||
1470 1471 1472 1473 1474 1475 1476 | 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 | - - - - - - - - - - - - - - - + + - - - - - - - + | Tcl_Interp *interp, /* The invoking TCL interpreter */ int objc, /* Number of arguments */ Tcl_Obj *CONST objv[] /* Command arguments */ ){ sqlite4 *db; const char *zFunc; int nArg; |
︙ |