/ Check-in [5bb29b82]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Make sure that sqlite3SelectDup() initializes the nSelectRow of the duplicate Select object.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5bb29b82109224a2ad02920658fabd8fb0f27b3f
User & Date: drh 2014-01-29 01:46:12
Context
2014-01-30
12:16
Do not run test script mmapfault.test as part of the "inmemory_journal" permutation test. check-in: b222b61a user: dan tags: trunk
11:12
Enhance the MSVC makefile for better debugging symbol support. Closed-Leaf check-in: c723ec27 user: mistachkin tags: msvcDebug
2014-01-29
14:21
Merge latest fixes from the trunk. check-in: 6b6dcd4c user: dan tags: sessions
01:46
Make sure that sqlite3SelectDup() initializes the nSelectRow of the duplicate Select object. check-in: 5bb29b82 user: drh tags: trunk
2014-01-28
20:36
Fix harmless compiler warnings in the showdb utility program. check-in: 27c27daa user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/expr.c.

1060
1061
1062
1063
1064
1065
1066

1067
1068
1069
1070
1071
1072
1073
  pNew->iLimit = 0;
  pNew->iOffset = 0;
  pNew->selFlags = p->selFlags & ~SF_UsesEphemeral;
  pNew->pRightmost = 0;
  pNew->addrOpenEphm[0] = -1;
  pNew->addrOpenEphm[1] = -1;
  pNew->addrOpenEphm[2] = -1;

  pNew->pWith = withDup(db, p->pWith);
  return pNew;
}
#else
Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
  assert( p==0 );
  return 0;







>







1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
  pNew->iLimit = 0;
  pNew->iOffset = 0;
  pNew->selFlags = p->selFlags & ~SF_UsesEphemeral;
  pNew->pRightmost = 0;
  pNew->addrOpenEphm[0] = -1;
  pNew->addrOpenEphm[1] = -1;
  pNew->addrOpenEphm[2] = -1;
  pNew->nSelectRow = p->nSelectRow;
  pNew->pWith = withDup(db, p->pWith);
  return pNew;
}
#else
Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
  assert( p==0 );
  return 0;