/ Check-in [760ebf80]
Login

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

Overview
Comment:Catch an IO error code that was being ignored in OP_RowData. (CVS 3688)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:760ebf8076b9cedb614bdc88c72d871c30cc7b94
User & Date: danielk1977 2007-03-15 12:05:36
Context
2007-03-15
12:17
Infrastructure to make simulated I/O errors persistent instead of transient. (CVS 3689) check-in: 1a53f531 user: drh tags: trunk
12:05
Catch an IO error code that was being ignored in OP_RowData. (CVS 3688) check-in: 760ebf80 user: danielk1977 tags: trunk
01:16
Enhanced temp-file security under unix. There are no known attacks against prior versions - this check-in is just an added precaution. (CVS 3687) check-in: 5af61402 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

    39     39   **
    40     40   ** Various scripts scan this source file in order to generate HTML
    41     41   ** documentation, headers files, or other derived files.  The formatting
    42     42   ** of the code in this file is, therefore, important.  See other comments
    43     43   ** in this file for details.  If in doubt, do not deviate from existing
    44     44   ** commenting and indentation practices when changing or adding code.
    45     45   **
    46         -** $Id: vdbe.c,v 1.590 2007/03/01 00:29:14 drh Exp $
           46  +** $Id: vdbe.c,v 1.591 2007/03/15 12:05:36 danielk1977 Exp $
    47     47   */
    48     48   #include "sqliteInt.h"
    49     49   #include "os.h"
    50     50   #include <ctype.h>
    51     51   #include "vdbeInt.h"
    52     52   
    53     53   /*
................................................................................
  3500   3500         char *z = sqliteMallocRaw( n );
  3501   3501         if( z==0 ) goto no_mem;
  3502   3502         pTos->flags = MEM_Blob | MEM_Dyn;
  3503   3503         pTos->xDel = 0;
  3504   3504         pTos->z = z;
  3505   3505       }
  3506   3506       if( pC->isIndex ){
  3507         -      sqlite3BtreeKey(pCrsr, 0, n, pTos->z);
         3507  +      rc = sqlite3BtreeKey(pCrsr, 0, n, pTos->z);
  3508   3508       }else{
  3509         -      sqlite3BtreeData(pCrsr, 0, n, pTos->z);
         3509  +      rc = sqlite3BtreeData(pCrsr, 0, n, pTos->z);
  3510   3510       }
  3511   3511     }else if( pC->pseudoTable ){
  3512   3512       pTos->n = pC->nData;
  3513   3513       pTos->z = pC->pData;
  3514   3514       pTos->flags = MEM_Blob|MEM_Ephem;
  3515   3515     }else{
  3516   3516       pTos->flags = MEM_Null;