SQLite
Check-in [b1b0de29]
Not logged in
Overview
SHA1 Hash:b1b0de29fdf7de83722bb85b748f058b9901e77a
Date: 2013-07-17 21:08:49
User: drh
Comment:Fix copy/paste errors in comments in the transitive_closure virtual table. No changes to code.
Tags And Properties
Context
2013-07-18
14:16
[7acc8cd3] Documentation changes to warn that sqlite3_set_auxdata() might call the destructor even before it returns. Also fix the regexp extension to deal with that case. Ticket [406d3b2ef91c]. (user: drh, tags: trunk)
2013-07-17
21:08
[b1b0de29] Fix copy/paste errors in comments in the transitive_closure virtual table. No changes to code. (user: drh, tags: trunk)
18:12
[3b4096cc] Enhance the sqlite3_analyzer tool to give reports on the sizes of individual indices. (user: drh, tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ext/misc/closure.c

492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
...
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
  while( isspace(zStr[i]) ){ i++; }
  return zStr+i;
}

/*
** xConnect/xCreate method for the closure module. Arguments are:
**
**   argv[0]    -> module name  ("approximate_match")
**   argv[1]    -> database name
**   argv[2]    -> table name
**   argv[3...] -> arguments
*/
static int closureConnect(
  sqlite3 *db,
  void *pAux,
................................................................................
  if( seenMatch && (iPlan&1)==0 ) rCost *= 1e30;
  pIdxInfo->estimatedCost = rCost;
   
  return SQLITE_OK;
}

/*
** A virtual table module that implements the "approximate_match".
*/
static sqlite3_module closureModule = {
  0,                      /* iVersion */
  closureConnect,         /* xCreate */
  closureConnect,         /* xConnect */
  closureBestIndex,       /* xBestIndex */
  closureDisconnect,      /* xDisconnect */







|







 







|







492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
...
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
  while( isspace(zStr[i]) ){ i++; }
  return zStr+i;
}

/*
** xConnect/xCreate method for the closure module. Arguments are:
**
**   argv[0]    -> module name  ("transitive_closure")
**   argv[1]    -> database name
**   argv[2]    -> table name
**   argv[3...] -> arguments
*/
static int closureConnect(
  sqlite3 *db,
  void *pAux,
................................................................................
  if( seenMatch && (iPlan&1)==0 ) rCost *= 1e30;
  pIdxInfo->estimatedCost = rCost;
   
  return SQLITE_OK;
}

/*
** A virtual table module that implements the "transitive_closure".
*/
static sqlite3_module closureModule = {
  0,                      /* iVersion */
  closureConnect,         /* xCreate */
  closureConnect,         /* xConnect */
  closureBestIndex,       /* xBestIndex */
  closureDisconnect,      /* xDisconnect */