Fossil

Check-in [52641f30]
Login

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

Overview
Comment:Further simplifications.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tkt-b6eea9446d
Files: files | file ages | folders
SHA1: 52641f303291e3da5f9d5e1b6a0c0a59fe1285f9
User & Date: mistachkin 2015-04-03 03:07:00
Context
2015-04-03
03:56
Evidently, the changes on this branch are no longer required. The underlying database locking issue has already been resolved. Closed-Leaf check-in: 999de0b7 user: mistachkin tags: tkt-b6eea9446d
03:07
Further simplifications. check-in: 52641f30 user: mistachkin tags: tkt-b6eea9446d
03:06
Remove superfluous conditional operator. check-in: 79b27a67 user: mistachkin tags: tkt-b6eea9446d
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
  int count,        /* Number of string elements in the arrays. */
  char ***pazValue  /* Array of column values from query. */
){
  if( pazValue ){
    char **azValue = *pazValue;
    int i;
    for(i=0; i<count; i++){
      if( azValue ){
        fossil_free(azValue[i]);
        azValue[i] = 0;
      }
    }
    fossil_free(azValue);
    if( pazValue ){
      *pazValue = 0;
    }
  }
}

/*
** Print warnings if a query is inefficient.
*/
static void db_stats(Stmt *pStmt){







<
|
|
|
<

<
|
<







397
398
399
400
401
402
403

404
405
406

407

408

409
410
411
412
413
414
415
  int count,        /* Number of string elements in the arrays. */
  char ***pazValue  /* Array of column values from query. */
){
  if( pazValue ){
    char **azValue = *pazValue;
    int i;
    for(i=0; i<count; i++){

      fossil_free(azValue[i]);
      azValue[i] = 0;
    }

    fossil_free(azValue);

    *pazValue = 0;

  }
}

/*
** Print warnings if a query is inefficient.
*/
static void db_stats(Stmt *pStmt){