/ Check-in [13e21b7d]
Login

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

Overview
Comment:Fix a problem with the handling of SQLITE_FCNTL_PRAGMA in the test_onefile.c demo.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 13e21b7da8fe754e230b09ca0b9f1f69cd9aa20d4407ddd8b95ca3fb18c9abeb
User & Date: dan 2018-11-07 14:39:22
Context
2018-11-08
22:53
In the treeview.c module, break out the display of SrcList into a separate subroutine, so that it can be invoked while debugging. check-in: 8c74065f user: drh tags: trunk
2018-11-07
20:13
Merge latest trunk changes into this branch. check-in: 53cd91d0 user: dan tags: changesetfuzz
16:12
Merge the onefile permutation fix from trunk. check-in: e543bff8 user: drh tags: read-only-shadow
14:39
Fix a problem with the handling of SQLITE_FCNTL_PRAGMA in the test_onefile.c demo. check-in: 13e21b7d user: dan tags: trunk
11:56
Partially revert [3e1a2f661], as some test scripts require separate $presql and $dbconfig variables. check-in: cbf85284 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_onefile.c.

   556    556     return SQLITE_OK;
   557    557   }
   558    558   
   559    559   /*
   560    560   ** File control method. For custom operations on an fs-file.
   561    561   */
   562    562   static int fsFileControl(sqlite3_file *pFile, int op, void *pArg){
          563  +  if( op==SQLITE_FCNTL_PRAGMA ) return SQLITE_NOTFOUND;
   563    564     return SQLITE_OK;
   564    565   }
   565    566   
   566    567   /*
   567    568   ** Return the sector-size in bytes for an fs-file.
   568    569   */
   569    570   static int fsSectorSize(sqlite3_file *pFile){