Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix a missing end-transaction in the content_new() procedure. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
dc09f0943283ed70c772bbbc668e5c23 |
User & Date: | drh 2008-07-24 13:31:03 |
Context
2008-07-24
| ||
14:48 | Clean up handling of concealed email addresses. This might be related to ticket [4b40f574494]. check-in: 3c851ca7 user: drh tags: trunk | |
13:31 | Fix a missing end-transaction in the content_new() procedure. check-in: dc09f094 user: drh tags: trunk | |
12:29 | Clarify the formatting rules for <verbatim>. Ticket [aee2a1a927f] check-in: 2c3ccaa0 user: drh tags: trunk | |
Changes
Changes to src/content.c.
493 494 495 496 497 498 499 500 501 502 503 504 505 506 |
int content_new(const char *zUuid){ int rid; static Stmt s1, s2, s3; assert( g.repositoryOpen ); db_begin_transaction(); if( uuid_is_shunned(zUuid) ){ return 0; } db_static_prepare(&s1, "INSERT INTO blob(rcvid,size,uuid,content)" "VALUES(0,-1,:uuid,NULL)" ); db_bind_text(&s1, ":uuid", zUuid); |
> |
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 |
int content_new(const char *zUuid){
int rid;
static Stmt s1, s2, s3;
assert( g.repositoryOpen );
db_begin_transaction();
if( uuid_is_shunned(zUuid) ){
db_end_transaction(0);
return 0;
}
db_static_prepare(&s1,
"INSERT INTO blob(rcvid,size,uuid,content)"
"VALUES(0,-1,:uuid,NULL)"
);
db_bind_text(&s1, ":uuid", zUuid);
|