/ Check-in [9b5d9434]
Login

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

Overview
Comment:Fix the ".open --hexdb" command in the CLI so that it works even with terminal input.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9b5d943426c9273162ecb4c561eb3b25e843318dd438239c882c9db50f788454
User & Date: drh 2019-05-03 02:41:36
Context
2019-05-03
17:19
Fix a problem where self-joins on views that are aggregate queries may return the wrong result. check-in: 74ef97bf user: dan tags: trunk
02:41
Fix the ".open --hexdb" command in the CLI so that it works even with terminal input. check-in: 9b5d9434 user: drh tags: trunk
2019-05-02
17:45
Ensure that the typeof() function always returns SQLITE_FLOAT for floating point values even when the value is stored as an integer to save space. check-in: 48889530 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.in.

  3873   3873         utf8_printf(stderr, "cannot open \"%s\" for reading\n", p->zDbFilename);
  3874   3874         return 0;
  3875   3875       }
  3876   3876       nLine = 0;
  3877   3877     }else{
  3878   3878       in = p->in;
  3879   3879       nLine = p->lineno;
         3880  +    if( in==0 ) in = stdin;
  3880   3881     }
  3881   3882     *pnData = 0;
  3882   3883     nLine++;
  3883   3884     if( fgets(zLine, sizeof(zLine), in)==0 ) goto readHexDb_error;
  3884   3885     rc = sscanf(zLine, "| size %d pagesize %d", &n, &pgsz);
  3885   3886     if( rc!=2 ) goto readHexDb_error;
  3886   3887     if( n<=0 ) goto readHexDb_error;