/ Check-in [f0d64dc8]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Fix a typo in vdbeInt.h. This was potentially a serious mistake, but we got lucky and it is benign. (CVS 2418)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f0d64dc8aa65b25af551e6e5f07746bd77c8112a
User & Date: drh 2005-03-23 01:48:48
Context
2005-03-27
01:56
Correctly allocate new columns array in ALTER TABLE .. ADD COLUMN. Ticket #1183. (CVS 2419) check-in: 3c86e633 user: danielk1977 tags: trunk
2005-03-23
01:48
Fix a typo in vdbeInt.h. This was potentially a serious mistake, but we got lucky and it is benign. (CVS 2418) check-in: f0d64dc8 user: drh tags: trunk
01:05
Fix typo in the formatchng.html document. (CVS 2417) check-in: 35ace66f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.h.

    11     11   *************************************************************************
    12     12   ** Header file for the Virtual DataBase Engine (VDBE)
    13     13   **
    14     14   ** This header defines the interface to the virtual database engine
    15     15   ** or VDBE.  The VDBE implements an abstract machine that runs a
    16     16   ** simple program to access and modify the underlying database.
    17     17   **
    18         -** $Id: vdbe.h,v 1.93 2005/03/09 12:26:51 danielk1977 Exp $
           18  +** $Id: vdbe.h,v 1.94 2005/03/23 01:48:48 drh Exp $
    19     19   */
    20     20   #ifndef _SQLITE_VDBE_H_
    21     21   #define _SQLITE_VDBE_H_
    22     22   #include <stdio.h>
    23     23   
    24     24   /*
    25     25   ** A single VDBE is an opaque structure named "Vdbe".  Only routines
................................................................................
    74     74   /* When adding a P3 argument using P3_KEYINFO, a copy of the KeyInfo structure
    75     75   ** is made.  That copy is freed when the Vdbe is finalized.  But if the
    76     76   ** argument is P3_KEYINFO_HANDOFF, the passed in pointer is used.  It still
    77     77   ** gets freed when the Vdbe is finalized so it still should be obtained
    78     78   ** from a single sqliteMalloc().  But no copy is made and the calling
    79     79   ** function should *not* try to free the KeyInfo.
    80     80   */
    81         -#define P3_KEYINFO_HANDOFF (-7)
           81  +#define P3_KEYINFO_HANDOFF (-9)
    82     82   
    83     83   /*
    84     84   ** The following macro converts a relative address in the p2 field
    85     85   ** of a VdbeOp structure into a negative number so that 
    86     86   ** sqlite3VdbeAddOpList() knows that the address is relative.  Calling
    87     87   ** the macro again restores the address.
    88     88   */