aboutsummaryrefslogtreecommitdiff
path: root/src/pragma.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-06-10 22:49:01 +0000
committerdrh <drh@noemail.net>2016-06-10 22:49:01 +0000
commit4d249e61289c76b41a880126ceb44bf97e14fb8b (patch)
tree3284cbe0d4a0eb68fbfeb707de618dbbcb0dea23 /src/pragma.c
parent8dc570b6afac593f029a67640ab916278af1ca65 (diff)
downloadsqlite-4d249e61289c76b41a880126ceb44bf97e14fb8b.tar.gz
sqlite-4d249e61289c76b41a880126ceb44bf97e14fb8b.zip
Enhance "PRAGMA table_info" to that it provides information about eponymous
virtual tables. FossilOrigin-Name: 53a1e5d51304cb3de700c1807a2c945a40240576
Diffstat (limited to 'src/pragma.c')
-rw-r--r--src/pragma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pragma.c b/src/pragma.c
index 56823c724..1ee08fbec 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -1052,7 +1052,7 @@ void sqlite3Pragma(
*/
case PragTyp_TABLE_INFO: if( zRight ){
Table *pTab;
- pTab = sqlite3FindTable(db, zRight, zDb);
+ pTab = sqlite3LocateTable(pParse, LOCATE_NOERR, zRight, zDb);
if( pTab ){
static const char *azCol[] = {
"cid", "name", "type", "notnull", "dflt_value", "pk"