mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Add the table name to the arguments passed to the virtual table methods xCreate/xConnect. (CVS 3281)
FossilOrigin-Name: 7dc36d1c798aa8b30b88a528fc9e69b342f278c7
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*************************************************************************
|
||||
** This file contains code used to help implement virtual tables.
|
||||
**
|
||||
** $Id: vtab.c,v 1.18 2006/06/17 11:30:32 danielk1977 Exp $
|
||||
** $Id: vtab.c,v 1.19 2006/06/21 13:21:51 danielk1977 Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
#include "sqliteInt.h"
|
||||
@@ -92,6 +92,7 @@ void sqlite3VtabBeginParse(
|
||||
int iDb; /* The database the table is being created in */
|
||||
Table *pTable; /* The new virtual table */
|
||||
Token *pDummy; /* Dummy arg for sqlite3TwoPartName() */
|
||||
char *zTab;
|
||||
|
||||
sqlite3StartTable(pParse, pName1, pName2, 0, 0, 1, 0);
|
||||
pTable = pParse->pNewTable;
|
||||
@@ -101,6 +102,8 @@ void sqlite3VtabBeginParse(
|
||||
pTable->isVirtual = 1;
|
||||
pTable->nModuleArg = 0;
|
||||
addModuleArgument(pTable, sqlite3NameFromToken(pModuleName));
|
||||
zTab = sqlite3NameFromToken((pName2&&pName2->z)?pName2:pName1);
|
||||
addModuleArgument(pTable, zTab);
|
||||
pParse->sNameToken.n = pModuleName->z + pModuleName->n - pName1->z;
|
||||
|
||||
#ifndef SQLITE_OMIT_AUTHORIZATION
|
||||
|
Reference in New Issue
Block a user