/ Check-in [3528f8dd]
Login

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

Overview
Comment:Fix typos in the documentation for sqlite3_table_column_metadata(). No changes to code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3528f8dd39acace8eeb7337994c8617313f4b04b
User & Date: drh 2014-12-10 04:58:43
Context
2014-12-10
17:34
Revise mutex handling by the sqlite3_win32_reset_heap() function. check-in: eacb3b7b user: mistachkin tags: trunk
04:58
Fix typos in the documentation for sqlite3_table_column_metadata(). No changes to code. check-in: 3528f8dd user: drh tags: trunk
2014-12-09
22:24
Fix the sqlite3_table_column_metadata() routine so that it gives the correct answer for the "rowid" column in a WITHOUT ROWID table. Enhance it so that it can be used to check for the existence of a table by setting the column name parameter to NULL. The routine is now included in the build by default, even without the SQLITE_ENABLE_COLUMN_METADATA compile-time option. check-in: cf9be419 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqlite.h.in.

  5148   5148   */
  5149   5149   SQLITE_DEPRECATED void sqlite3_soft_heap_limit(int N);
  5150   5150   
  5151   5151   
  5152   5152   /*
  5153   5153   ** CAPI3REF: Extract Metadata About A Column Of A Table
  5154   5154   **
  5155         -** ^The sqlite3_table_column_metadata(X,D,T,C,....) routine returns
         5155  +** ^(The sqlite3_table_column_metadata(X,D,T,C,....) routine returns
  5156   5156   ** information about column C of table T in database D
  5157         -** on [database connection] X.  ^The sqlite3_table_column_metadata()
         5157  +** on [database connection] X.)^  ^The sqlite3_table_column_metadata()
  5158   5158   ** interface returns SQLITE_OK and fills in the non-NULL pointers in
  5159         -** the final five arguments with appropriate vaules if the specified
         5159  +** the final five arguments with appropriate values if the specified
  5160   5160   ** column exists.  ^The sqlite3_table_column_metadata() interface returns
  5161   5161   ** SQLITE_ERROR and if the specified column does not exist.
  5162         -** If the column-name parameter to sqlite3_table_column_metadata() is a
  5163         -** NULL pointer, then the routine simply checks for the existance of the
         5162  +** ^If the column-name parameter to sqlite3_table_column_metadata() is a
         5163  +** NULL pointer, then this routine simply checks for the existance of the
  5164   5164   ** table and returns SQLITE_OK if the table exists and SQLITE_ERROR if it
  5165   5165   ** does not.
  5166   5166   **
  5167   5167   ** ^The column is identified by the second, third and fourth parameters to
  5168         -** this function. ^The second parameter is either the name of the database
         5168  +** this function. ^(The second parameter is either the name of the database
  5169   5169   ** (i.e. "main", "temp", or an attached database) containing the specified
  5170         -** table or NULL. ^If it is NULL, then all attached databases are searched
         5170  +** table or NULL.)^ ^If it is NULL, then all attached databases are searched
  5171   5171   ** for the table using the same algorithm used by the database engine to
  5172   5172   ** resolve unqualified table references.
  5173   5173   **
  5174   5174   ** ^The third and fourth parameters to this function are the table and column
  5175   5175   ** name of the desired column, respectively.
  5176   5176   **
  5177   5177   ** ^Metadata is returned by writing to the memory locations passed as the 5th