aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-08-19 19:01:28 +0000
committerdrh <drh@noemail.net>2015-08-19 19:01:28 +0000
commit509c3fc004bda4dad2d7e529da19d2e0049f4876 (patch)
treee75322a4361978aa35723d87f204139acaca94b5 /src
parentbc550df32f70697fe2de029198682b8a668d2785 (diff)
downloadsqlite-509c3fc004bda4dad2d7e529da19d2e0049f4876.tar.gz
sqlite-509c3fc004bda4dad2d7e529da19d2e0049f4876.zip
Fix eponymous virtual tables so that they do not automatically make the first
column the rowid. Enhance the generate_series virtual table to support rowid. FossilOrigin-Name: a325a08599759471047e234ef9cfcc3cb110aafd
Diffstat (limited to 'src')
-rw-r--r--src/vtab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vtab.c b/src/vtab.c
index cd1222f70..fca8170d2 100644
--- a/src/vtab.c
+++ b/src/vtab.c
@@ -1120,6 +1120,7 @@ int sqlite3VtabEponymousTableInit(Parse *pParse, Module *pMod){
pTab->pSchema = db->aDb[0].pSchema;
pTab->tabFlags |= TF_Virtual;
pTab->nModuleArg = 0;
+ pTab->iPKey = -1;
addModuleArgument(db, pTab, pTab->zName);
addModuleArgument(db, pTab, 0);
addModuleArgument(db, pTab, pTab->zName);