SQLite

Check-in [61870b42b0]
Login

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

Overview
Comment:Fix compilation issue (C99-ism) seen with MSVC.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | rtree-integrity-check
Files: files | file ages | folders
SHA3-256: 61870b42b033189509b244c76d28932f7a447b887ffe04a3c81461148e54cfb5
User & Date: mistachkin 2017-10-25 18:00:58.356
Context
2017-10-25
18:01
Add SQL scalar function rtreecheck() to the rtree module. For running checks to ensure the shadow tables used by an rtree virtual table are internally consistent. (check-in: 7d26498063 user: mistachkin tags: trunk)
18:00
Fix compilation issue (C99-ism) seen with MSVC. (Closed-Leaf check-in: 61870b42b0 user: mistachkin tags: rtree-integrity-check)
16:38
Add SQL scalar function rtreecheck() to the rtree module. For running checks to ensure the shadow tables used by an rtree virtual table are internally consistent. (check-in: dde0bb3eab user: dan tags: rtree-integrity-check)
Changes
Unified Diff Ignore Whitespace Patch
Changes to ext/rtree/rtree.c.
3648
3649
3650
3651
3652
3653
3654



3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
** NULL is returned and an error code left in RtreeCheck.rc.
*/
static sqlite3_stmt *rtreeCheckPrepare(
  RtreeCheck *pCheck,             /* RtreeCheck object */
  const char *zFmt, ...           /* Format string and trailing args */
){
  va_list ap;



  va_start(ap, zFmt);
  char *z = sqlite3_vmprintf(zFmt, ap);
  sqlite3_stmt *pRet = 0;

  if( pCheck->rc==SQLITE_OK ){
    pCheck->rc = sqlite3_prepare_v2(pCheck->db, z, -1, &pRet, 0);
  }

  sqlite3_free(z);
  va_end(ap);
  return pRet;







>
>
>

|
<








3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659

3660
3661
3662
3663
3664
3665
3666
3667
** NULL is returned and an error code left in RtreeCheck.rc.
*/
static sqlite3_stmt *rtreeCheckPrepare(
  RtreeCheck *pCheck,             /* RtreeCheck object */
  const char *zFmt, ...           /* Format string and trailing args */
){
  va_list ap;
  char *z;
  sqlite3_stmt *pRet = 0;

  va_start(ap, zFmt);
  z = sqlite3_vmprintf(zFmt, ap);


  if( pCheck->rc==SQLITE_OK ){
    pCheck->rc = sqlite3_prepare_v2(pCheck->db, z, -1, &pRet, 0);
  }

  sqlite3_free(z);
  va_end(ap);
  return pRet;