Fossil

Check-in [140ed0f2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix an issue with the subscriber feature.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:140ed0f25bbbdc53d12c872c9e2710022a881e77ec6033850024d7af357fab58
User & Date: drh 2018-12-27 20:35:21
Context
2018-12-27
20:37
Updates to the /brtimeline and /tagtimeline pages. check-in: efb903f9 user: drh tags: trunk
20:35
Fix an issue with the subscriber feature. check-in: 140ed0f2 user: drh tags: trunk
20:34
Fix non-C89 variable declarations. check-in: 33f1c741 user: drh tags: trunk
2018-12-21
08:01
Fix a problem introduced by [06586ef70f]: on cloning, only create the tables for the email notification system if any configuration data from the 'Email subscribers' group is received. Closed-Leaf check-in: fca66262 user: florian tags: fix-clone-subscribers
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/configure.c.

417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
      }
      blob_append_sql(&sql, "REPLACE INTO ");
    }else{
      blob_append_sql(&sql, "INSERT OR IGNORE INTO ");
    }
    blob_append_sql(&sql, "\"%w\"(\"%w\",mtime",
         &zName[1], aType[ii].zPrimKey);
    if( fossil_stricmp(zName,"/subscriber") ) alert_schema(0);
    for(jj=2; jj<nToken; jj+=2){
       blob_append_sql(&sql, ",\"%w\"", azToken[jj]);
    }
    blob_append_sql(&sql,") VALUES(%s,%s",
       azToken[1] /*safe-for-%s*/, azToken[0]/*safe-for-%s*/);
    for(jj=2; jj<nToken; jj+=2){
       blob_append_sql(&sql, ",%s", azToken[jj+1] /*safe-for-%s*/);







|







417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
      }
      blob_append_sql(&sql, "REPLACE INTO ");
    }else{
      blob_append_sql(&sql, "INSERT OR IGNORE INTO ");
    }
    blob_append_sql(&sql, "\"%w\"(\"%w\",mtime",
         &zName[1], aType[ii].zPrimKey);
    if( fossil_stricmp(zName,"/subscriber")==0 ) alert_schema(0);
    for(jj=2; jj<nToken; jj+=2){
       blob_append_sql(&sql, ",\"%w\"", azToken[jj]);
    }
    blob_append_sql(&sql,") VALUES(%s,%s",
       azToken[1] /*safe-for-%s*/, azToken[0]/*safe-for-%s*/);
    for(jj=2; jj<nToken; jj+=2){
       blob_append_sql(&sql, ",%s", azToken[jj+1] /*safe-for-%s*/);