/ Check-in [711f5ec4]
Login

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

Overview
Comment:Improvements to the sqlite3_db_filename() API documentation. No code changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 711f5ec4dc2635e3102a607510cbbe0b468d9f0af935e09d3454e6e925c8dcb2
User & Date: drh 2019-03-13 23:51:05
Context
2019-03-14
00:01
Technical improvements to the documentation for sqlite3_bind_blob() and sqlite3_bind_text(). No changes to code. check-in: fb60150a user: drh tags: trunk
2019-03-13
23:51
Improvements to the sqlite3_db_filename() API documentation. No code changes. check-in: 711f5ec4 user: drh tags: trunk
13:19
New test cases added to test/fuzzdata8.db check-in: 049e9926 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqlite.h.in.

  5799   5799   ** CAPI3REF: Return The Filename For A Database Connection
  5800   5800   ** METHOD: sqlite3
  5801   5801   **
  5802   5802   ** ^The sqlite3_db_filename(D,N) interface returns a pointer to a filename
  5803   5803   ** associated with database N of connection D.  ^The main database file
  5804   5804   ** has the name "main".  If there is no attached database N on the database
  5805   5805   ** connection D, or if database N is a temporary or in-memory database, then
  5806         -** a NULL pointer is returned.
         5806  +** this function will return either a NULL pointer or an empty string.
  5807   5807   **
  5808   5808   ** ^The filename returned by this function is the output of the
  5809   5809   ** xFullPathname method of the [VFS].  ^In other words, the filename
  5810   5810   ** will be an absolute pathname, even if the filename used
  5811   5811   ** to open the database originally was a URI or relative pathname.
  5812   5812   */
  5813   5813   const char *sqlite3_db_filename(sqlite3 *db, const char *zDbName);