/ Check-in [909b3d88]
Login

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

Overview
Comment:Disable the legacy "sqlite" command in the TCL interface. Provide only the "sqlite3" command.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 909b3d8862aeae04611969f5fc27d32a82026767
User & Date: drh 2010-08-25 19:39:20
Context
2010-08-25
20:35
Reinstate the "sqlite" alias for backwards compatibility (but leave it undocumented) but remove the PackageProvide for "sqlite". check-in: 699cc6b4 user: drh tags: trunk
19:39
Disable the legacy "sqlite" command in the TCL interface. Provide only the "sqlite3" command. check-in: 909b3d88 user: drh tags: trunk
19:04
Further test coverage improvements for rtree.c. check-in: 05f6c1ae user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/tclsqlite.c.

  3015   3015   ** used to open a new SQLite database.  See the DbMain() routine above
  3016   3016   ** for additional information.
  3017   3017   */
  3018   3018   int Sqlite3_Init(Tcl_Interp *interp){
  3019   3019     Tcl_InitStubs(interp, "8.4", 0);
  3020   3020     Tcl_CreateObjCommand(interp, "sqlite3", (Tcl_ObjCmdProc*)DbMain, 0, 0);
  3021   3021     Tcl_PkgProvide(interp, "sqlite3", PACKAGE_VERSION);
         3022  +#if 0
  3022   3023     Tcl_CreateObjCommand(interp, "sqlite", (Tcl_ObjCmdProc*)DbMain, 0, 0);
  3023   3024     Tcl_PkgProvide(interp, "sqlite", PACKAGE_VERSION);
         3025  +#endif
  3024   3026     return TCL_OK;
  3025   3027   }
  3026   3028   int Tclsqlite3_Init(Tcl_Interp *interp){ return Sqlite3_Init(interp); }
  3027   3029   int Sqlite3_SafeInit(Tcl_Interp *interp){ return TCL_OK; }
  3028   3030   int Tclsqlite3_SafeInit(Tcl_Interp *interp){ return TCL_OK; }
  3029   3031   int Sqlite3_Unload(Tcl_Interp *interp, int flags){ return TCL_OK; }
  3030   3032   int Tclsqlite3_Unload(Tcl_Interp *interp, int flags){ return TCL_OK; }

Changes to test/exclusive.test.

   392    392   # instead of deleted when in exclusive access mode.
   393    393   #
   394    394   
   395    395   # Close and reopen the database so that the temp database is no
   396    396   # longer active.
   397    397   #
   398    398   db close
   399         -sqlite db test.db
          399  +sqlite3 db test.db
   400    400   
   401    401   # if we're using proxy locks, we use 3 filedescriptors for a db
   402    402   # that is open but NOT writing changes, normally
   403    403   # sqlite uses 1 (proxy locking adds the conch and the local lock)
   404    404   set using_proxy 0
   405    405   foreach {name value} [array get env SQLITE_FORCE_PROXY_LOCKING] {
   406    406     set using_proxy $value

Changes to test/tkt1667.test.

    30     30   # Set the pending byte offset such that the page it is on is
    31     31   # the first autovacuum pointer map page in the file (assume a page 
    32     32   # size of 1024).
    33     33   
    34     34   set first_ptrmap_page   [expr 1024/5 + 3]
    35     35   sqlite3_test_control_pending_byte [expr 1024 * ($first_ptrmap_page-1)]
    36     36   
    37         -sqlite db test.db
           37  +sqlite3 db test.db
    38     38   
    39     39   do_test tkt1667-1 {
    40     40     execsql {
    41     41       PRAGMA auto_vacuum = 1;
    42     42       BEGIN;
    43     43       CREATE TABLE t1(a, b);
    44     44     }