Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Remove the sqlite4_progress_handler interface. Change the documentation of load_extension() to say that it sets the db handle error message and code. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
02ec769ae03dee879ee5f4be76f04890 |
User & Date: | dan 2013-06-17 05:35:33.787 |
Context
2013-06-17
| ||
20:15 | Modifications to make the ANALYZE command work (sqlite_stat1 only). check-in: 7d8efac62f user: dan tags: trunk | |
05:35 | Remove the sqlite4_progress_handler interface. Change the documentation of load_extension() to say that it sets the db handle error message and code. check-in: 02ec769ae0 user: dan tags: trunk | |
2013-06-15
| ||
19:47 | Add destructors to the sqlite4_trace and sqlite4_profile routines. check-in: fd63f9cb75 user: dan tags: trunk | |
Changes
Changes to src/main.c.
︙ | ︙ | |||
504 505 506 507 508 509 510 | if( ALWAYS(rc>=0) && rc<(int)(sizeof(aMsg)/sizeof(aMsg[0])) && aMsg[rc]!=0 ){ return aMsg[rc]; }else{ return "unknown error"; } } | < < < < < < < < < < < < < < < < < < < < < < < < < < | 504 505 506 507 508 509 510 511 512 513 514 515 516 517 | if( ALWAYS(rc>=0) && rc<(int)(sizeof(aMsg)/sizeof(aMsg[0])) && aMsg[rc]!=0 ){ return aMsg[rc]; }else{ return "unknown error"; } } /* ** Cause any pending operation to stop at its earliest opportunity. */ void sqlite4_interrupt(sqlite4 *db){ db->u1.isInterrupted = 1; } |
︙ | ︙ |
Changes to src/sqlite.h.in.
︙ | ︙ | |||
1341 1342 1343 1344 1345 1346 1347 | void sqlite4_profile( sqlite4*, void *, void(*xProfile)(void*,const char*,sqlite4_uint64), void(*xDestroy)(void*) ); | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 | void sqlite4_profile( sqlite4*, void *, void(*xProfile)(void*,const char*,sqlite4_uint64), void(*xDestroy)(void*) ); /* ** CAPIREF: Opening A New Database Connection ** ** ^These routines open an SQLite4 database file as specified by the ** URI argument. ** ^(A [database connection] handle is usually ** returned in *ppDb, even if an error occurs. The only exception is that |
︙ | ︙ | |||
2977 2978 2979 2980 2981 2982 2983 | ); /* ** CAPIREF: Load An Extension ** ** ^This interface loads an SQLite extension library from the named file. ** | | | | < | | | < < < < < | < | > > > | < | 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 | ); /* ** CAPIREF: Load An Extension ** ** ^This interface loads an SQLite extension library from the named file. ** ** ^The sqlite4_load_extension() interface attempts to load an SQLite ** extension library contained in the file zFile. ** ** ^The entry point is zProc. ^zProc may be 0, in which case the name ** of the entry point defaults to "sqlite4_extension_init". ^The ** sqlite4_load_extension() interface returns [SQLITE4_OK] on success ** and [SQLITE4_ERROR] if something goes wrong. ** ** ^Extension loading must be enabled using [sqlite4_enable_load_extension()] ** prior to calling this API, otherwise an error will be returned. ** ** This function sets the values returned by sqlite4_errcode() and ** sqlite4_errmsg() before returning. ** ** See also the [load_extension() SQL function]. */ int sqlite4_load_extension( sqlite4 *db, /* Load the extension into this database connection */ const char *zFile, /* Name of the shared library containing extension */ const char *zProc /* Entry point. Derived from zFile if 0 */ ); /* ** CAPIREF: Enable Or Disable Extension Loading ** ** ^So as not to open security holes in older applications that are ** unprepared to deal with extension loading, and as a means of disabling |
︙ | ︙ |