/ Check-in [2a9ea9b4]
Login

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

Overview
Comment:In the command-line shell, make sure stderr is unbuffered so that it automatically flushes. This has always been the case already for unix and on Windows when the output is a console, but apparently was not the case on Windows when the output was a pipe.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2a9ea9b4a7d6904efb2112e32efe84123dfa75d7
User & Date: drh 2015-01-24 12:12:57
Context
2015-01-25
20:19
The va_list argument cannot take on a NULL value and cannot be compared with NULL on some platforms (ex: ARM). So do not attempt to do so. check-in: 1964e656 user: drh tags: trunk
2015-01-24
12:12
In the command-line shell, make sure stderr is unbuffered so that it automatically flushes. This has always been the case already for unix and on Windows when the output is a console, but apparently was not the case on Windows when the output was a pipe. check-in: 2a9ea9b4 user: drh tags: trunk
2015-01-22
12:00
Make sure errors in the FROM clause of a SELECT cause analysis to abort and unwind the stack before those errors have a chance to mischief in the "*" column-name wildcard expander. Fix for ticket [32b63d542433ca67]. check-in: 9e6eae66 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  4191   4191     if( strcmp(sqlite3_sourceid(),SQLITE_SOURCE_ID)!=0 ){
  4192   4192       fprintf(stderr, "SQLite header and source version mismatch\n%s\n%s\n",
  4193   4193               sqlite3_sourceid(), SQLITE_SOURCE_ID);
  4194   4194       exit(1);
  4195   4195     }
  4196   4196   #endif
  4197   4197     setBinaryMode(stdin);
         4198  +  setvbuf(stderr, 0, _IONBF, 0); /* Make sure stderr is unbuffered */
  4198   4199     Argv0 = argv[0];
  4199   4200     main_init(&data);
  4200   4201     stdin_is_interactive = isatty(0);
  4201   4202   
  4202   4203     /* Make sure we have a valid signal handler early, before anything
  4203   4204     ** else is done.
  4204   4205     */