sqlite3 3220000 does not build with -DSQLITE_OMIT_AUTHORIZATION

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

sqlite3 3220000 does not build with -DSQLITE_OMIT_AUTHORIZATION

Michele Dionisio-2
Hi all,

last sqlite 3220000 does not build with -DSQLITE_OMIT_AUTHORIZATION because

shell.c in sqlite3_expert_new use it.

I suggest the next patch to solve the problem.

Regards


diff --git a/shell.c b/shell.c
--- a/shell.c
+++ b/shell.c
@@ -7702,7 +7702,9 @@ sqlite3expert *sqlite3_expert_new(sqlite3 *db,
char **pzErrmsg){

    /* Register the auth callback with dbv */
    if( rc==SQLITE_OK ){
+#ifndef SQLITE_OMIT_AUTHORIZATION
      sqlite3_set_authorizer(pNew->dbv, idxAuthCallback, (void*)pNew);
+#endif
    }



--

Powersoft logo <http://www.powersoft.it>

*Michele Dionisio |*Senior Embedded System Manager

*skype:*  m.dionisio *| email:* [hidden email]
<mailto:[hidden email]>

*HQ Italy:* Via E. Conti, 5 *|* 50018 Scandicci (FI) Italy

*direct phone:*  +39 055 735 0230 *| Fax:*   +39 055 735 6235

*web site:* www.powersoft.it <http://www.powersoft.it>

Green Audio Power

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users