Check-in [58f15e92ae]
Not logged in
Overview

SHA1 Hash:58f15e92aecf31289734e73815006d1b965a2a57
Date: 2009-01-08 14:05:50
User: drh
Comment:Disable SQL restrictions as soon as the user-supplied report-generator SQL has been parsed, so that other queries that run during report rendering and run unimpeded. Ticket c666e737cb028bcec2d55659d79ce8521355d2bf
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/report.c from [e35bb33ea9] to [dc93483c83].

@@ -677,10 +677,15 @@
   rn = pState->rn;
 
   /* Do initialization
   */
   if( pState->nCount==0 ){
+    /* Turn off the authorizer.  It is no longer doing anything since the
+    ** query has already been prepared.
+    */
+    sqlite3_set_authorizer(g.db, 0, 0);
+
     /* Figure out the number of columns, the column that determines background
     ** color, and whether or not this row of data is represented by multiple
     ** rows in the table.
     */
     pState->nCol = 0;