aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeapi.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-09-08 21:12:53 +0000
committerdrh <drh@noemail.net>2015-09-08 21:12:53 +0000
commita46a4a63de1853cf4dac3ecfad4bbefa596d670d (patch)
tree6477b40caed36772543510c8d999c10f8580905c /src/vdbeapi.c
parentb4d472f609d0f81bec921b82251f0a6c23a26ece (diff)
downloadsqlite-a46a4a63de1853cf4dac3ecfad4bbefa596d670d.tar.gz
sqlite-a46a4a63de1853cf4dac3ecfad4bbefa596d670d.zip
Enhance the DBSTAT virtual table with a new hidden table "schema" that if
set will cause the table to report on the specified schema rather than on "main". Also: Fix a faulty assert in sqlite3_context_db_handle(). FossilOrigin-Name: 6beb512c7a3c3649b56f0df1ca77855535a87ba7
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r--src/vdbeapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c
index 15a8bba0d..faf97634c 100644
--- a/src/vdbeapi.c
+++ b/src/vdbeapi.c
@@ -696,7 +696,7 @@ void *sqlite3_user_data(sqlite3_context *p){
** application defined function.
*/
sqlite3 *sqlite3_context_db_handle(sqlite3_context *p){
- assert( p && p->pFunc );
+ assert( p && p->pOut );
return p->pOut->db;
}