/ Check-in [e2c94ab9]
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:In the command-line shell, allow a dot-command to occur after a multi-line c-style comment.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e2c94ab930f0e5a6dbe8cdd34ebb8cfeeedca56c
User & Date: drh 2013-04-17 17:33:17
Context
2013-04-17
18:56
In the mptester, add --glob and --notglob and --testcase. Make --exit work on the main thread. Enable the load_extension() SQL function. check-in: c273c171 user: drh tags: trunk
17:33
In the command-line shell, allow a dot-command to occur after a multi-line c-style comment. check-in: e2c94ab9 user: drh tags: trunk
14:04
Improvements to some of the comments that are used to render documentation concerning loadable extensions. No changes to code. check-in: 76f4e312 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  2779   2779           }else{
  2780   2780             fprintf(stderr, "%s %s\n", zPrefix, sqlite3_errmsg(p->db));
  2781   2781           }
  2782   2782           errCnt++;
  2783   2783         }
  2784   2784         free(zSql);
  2785   2785         zSql = 0;
         2786  +      nSql = 0;
         2787  +    }else if( zSql && _all_whitespace(zSql) ){
         2788  +      free(zSql);
         2789  +      zSql = 0;
  2786   2790         nSql = 0;
  2787   2791       }
  2788   2792     }
  2789   2793     if( zSql ){
  2790   2794       if( !_all_whitespace(zSql) ){
  2791   2795         fprintf(stderr, "Error: incomplete SQL: %s\n", zSql);
  2792   2796       }