/ Check-in [9885dac4]
Login

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

Overview
Comment:Remove the #ifdef SQLITE_DEBUG from around the testcase_glob() routine in the command-line shell.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9885dac4b98693c4d2ed643022127f1452f19dc6
User & Date: drh 2016-09-16 18:53:42
Context
2016-09-16
19:11
Fix problems with the fileRead() function in the command-line shell. Fix a harmless memory leak in the command-line shell, to make validation testing easier. check-in: e660402e user: drh tags: trunk
18:53
Remove the #ifdef SQLITE_DEBUG from around the testcase_glob() routine in the command-line shell. check-in: 9885dac4 user: drh tags: trunk
16:30
Fix a problem causing incorrect code to be generated for IN constraints like "a IN (1, 2, 3)" where column "a" is a rowid column with an extra UNIQUE index created on it. Ticket [0eab1ac759]. check-in: a92aee55 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  3081   3081   ** Print an out-of-memory message to stderr and return 1.
  3082   3082   */
  3083   3083   static int shellNomemError(void){
  3084   3084     raw_printf(stderr, "Error: out of memory\n");
  3085   3085     return 1;
  3086   3086   }
  3087   3087   
  3088         -#ifdef SQLITE_DEBUG
  3089   3088   /*
  3090   3089   ** Compare the pattern in zGlob[] against the text in z[].  Return TRUE
  3091   3090   ** if they match and FALSE (0) if they do not match.
  3092   3091   **
  3093   3092   ** Globbing rules:
  3094   3093   **
  3095   3094   **      '*'       Matches any sequence of zero or more characters.
................................................................................
  3178   3177       }else{
  3179   3178         if( c!=(*(z++)) ) return 0;
  3180   3179       }
  3181   3180     }
  3182   3181     while( IsSpace(*z) ){ z++; }
  3183   3182     return *z==0;
  3184   3183   }
  3185         -#endif /* defined(SQLITE_DEBUG) */
  3186   3184   
  3187   3185   
  3188   3186   /*
  3189   3187   ** Compare the string as a command-line option with either one or two
  3190   3188   ** initial "-" characters.
  3191   3189   */
  3192   3190   static int optionMatch(const char *zStr, const char *zOpt){