Differences From Artifact [4b563bb4c7]:
- File src/db.c — part of check-in [c71f711ec9] at 2023-02-17 14:37:16 on branch compiler-warnings — A large collection of compiler warning fixes re. signed/unsigned comparison from Daniel D. (user: stephan size: 166327) [more...]
To Artifact [dedd77f716]:
- File src/db.c — part of check-in [98d4ee73d7] at 2023-02-21 09:52:46 on branch forumpost-locking — Add db_add_unsent() and replace numerous "INSERT OR IGNORE INTO unset" statements with that. (user: stephan size: 166473)
| ︙ | ︙ | |||
5109 5110 5111 5112 5113 5114 5115 |
zRepo = db_fingerprint(atoi(zCkout), 0);
rc = fossil_strcmp(zCkout,zRepo)==0;
fossil_free(zRepo);
}
fossil_free(zCkout);
return rc;
}
| > > > > > > > | 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 |
zRepo = db_fingerprint(atoi(zCkout), 0);
rc = fossil_strcmp(zCkout,zRepo)==0;
fossil_free(zRepo);
}
fossil_free(zCkout);
return rc;
}
/*
** Adds the given rid to the UNSENT table.
*/
void db_add_unsent(int rid){
db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", rid);
}
|