Fossil SCM

Disable the SQLite automatic index warning on non-debug builds.

drh 2018-03-23 15:37 trunk
Commit 1336c4af8a016772a8221632eb2e8983635bcbb93eed0bd4167ce17e39f0ae7b
1 file changed +4
+4
--- src/main.c
+++ src/main.c
@@ -506,10 +506,14 @@
506506
#ifdef __APPLE__
507507
/* Disable the file alias warning on apple products because Time Machine
508508
** creates lots of aliases and the warning alarms people. */
509509
if( iCode==SQLITE_WARNING ) return;
510510
#endif
511
+#ifndef FOSSIL_DEBUG
512
+ /* Disable the automatic index warning except in FOSSIL_DEBUG builds. */
513
+ if( iCode==SQLITE_WARNING_AUTOINDEX ) return;
514
+#endif
511515
if( iCode==SQLITE_SCHEMA ) return;
512516
if( g.dbIgnoreErrors ) return;
513517
#ifdef SQLITE_READONLY_DIRECTORY
514518
if( iCode==SQLITE_READONLY_DIRECTORY ){
515519
zErrmsg = "database is in a read-only directory";
516520
--- src/main.c
+++ src/main.c
@@ -506,10 +506,14 @@
506 #ifdef __APPLE__
507 /* Disable the file alias warning on apple products because Time Machine
508 ** creates lots of aliases and the warning alarms people. */
509 if( iCode==SQLITE_WARNING ) return;
510 #endif
 
 
 
 
511 if( iCode==SQLITE_SCHEMA ) return;
512 if( g.dbIgnoreErrors ) return;
513 #ifdef SQLITE_READONLY_DIRECTORY
514 if( iCode==SQLITE_READONLY_DIRECTORY ){
515 zErrmsg = "database is in a read-only directory";
516
--- src/main.c
+++ src/main.c
@@ -506,10 +506,14 @@
506 #ifdef __APPLE__
507 /* Disable the file alias warning on apple products because Time Machine
508 ** creates lots of aliases and the warning alarms people. */
509 if( iCode==SQLITE_WARNING ) return;
510 #endif
511 #ifndef FOSSIL_DEBUG
512 /* Disable the automatic index warning except in FOSSIL_DEBUG builds. */
513 if( iCode==SQLITE_WARNING_AUTOINDEX ) return;
514 #endif
515 if( iCode==SQLITE_SCHEMA ) return;
516 if( g.dbIgnoreErrors ) return;
517 #ifdef SQLITE_READONLY_DIRECTORY
518 if( iCode==SQLITE_READONLY_DIRECTORY ){
519 zErrmsg = "database is in a read-only directory";
520

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button