/ Check-in [9167fdb3]
Login

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

Overview
Comment:Fix a couple of typos in comments. No changes to actual code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9167fdb3560b1567a0bdc9a1906a87ec98e161f1
User & Date: dan 2011-01-25 13:43:35
Context
2011-01-25
16:20
Change the name of SQLITE_FCNTL_SYNC to SQLITE_FCNTL_SYNC_OMITTED and only send it when PRAGMA synchronous=OFF. Add better documentation to explain what that file-control opcode is used for. check-in: 64914980 user: drh tags: trunk
13:43
Fix a couple of typos in comments. No changes to actual code. check-in: 9167fdb3 user: dan tags: trunk
11:33
Fix a broken assert() in pager.c. check-in: 13108ce1 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/prepare.c.

   780    780   
   781    781   #ifndef SQLITE_OMIT_UTF16
   782    782   /*
   783    783   ** Compile the UTF-16 encoded SQL statement zSql into a statement handle.
   784    784   */
   785    785   static int sqlite3Prepare16(
   786    786     sqlite3 *db,              /* Database handle. */ 
   787         -  const void *zSql,         /* UTF-8 encoded SQL statement. */
          787  +  const void *zSql,         /* UTF-16 encoded SQL statement. */
   788    788     int nBytes,               /* Length of zSql in bytes. */
   789    789     int saveSqlFlag,          /* True to save SQL text into the sqlite3_stmt */
   790    790     sqlite3_stmt **ppStmt,    /* OUT: A pointer to the prepared statement */
   791    791     const void **pzTail       /* OUT: End of parsed string */
   792    792   ){
   793    793     /* This function currently works by first transforming the UTF-16
   794    794     ** encoded string to UTF-8, then invoking sqlite3_prepare(). The
................................................................................
   830    830   ** and so if a schema change occurs, SQLITE_SCHEMA is returned by
   831    831   ** sqlite3_step().  In the new version, the original SQL text is retained
   832    832   ** and the statement is automatically recompiled if an schema change
   833    833   ** occurs.
   834    834   */
   835    835   int sqlite3_prepare16(
   836    836     sqlite3 *db,              /* Database handle. */ 
   837         -  const void *zSql,         /* UTF-8 encoded SQL statement. */
          837  +  const void *zSql,         /* UTF-16 encoded SQL statement. */
   838    838     int nBytes,               /* Length of zSql in bytes. */
   839    839     sqlite3_stmt **ppStmt,    /* OUT: A pointer to the prepared statement */
   840    840     const void **pzTail       /* OUT: End of parsed string */
   841    841   ){
   842    842     int rc;
   843    843     rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
   844    844     assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 );  /* VERIFY: F13021 */
   845    845     return rc;
   846    846   }
   847    847   int sqlite3_prepare16_v2(
   848    848     sqlite3 *db,              /* Database handle. */ 
   849         -  const void *zSql,         /* UTF-8 encoded SQL statement. */
          849  +  const void *zSql,         /* UTF-16 encoded SQL statement. */
   850    850     int nBytes,               /* Length of zSql in bytes. */
   851    851     sqlite3_stmt **ppStmt,    /* OUT: A pointer to the prepared statement */
   852    852     const void **pzTail       /* OUT: End of parsed string */
   853    853   ){
   854    854     int rc;
   855    855     rc = sqlite3Prepare16(db,zSql,nBytes,1,ppStmt,pzTail);
   856    856     assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 );  /* VERIFY: F13021 */
   857    857     return rc;
   858    858   }
   859    859   
   860    860   #endif /* SQLITE_OMIT_UTF16 */