Fix SQL prepare retry code missed by 3040d2b665

This commit is contained in:
Andrew Bettison 2012-10-04 16:21:08 +09:30
parent 9614d4f89c
commit 3ce57c8955

View File

@ -215,10 +215,10 @@ int overlay_rhizome_add_advertisements(int interface_number,overlay_buffer *e)
for(pass=skipmanifests;pass<2;pass++) { for(pass=skipmanifests;pass<2;pass++) {
switch(pass) { switch(pass) {
case 0: /* Full manifests */ case 0: /* Full manifests */
statement = sqlite_prepare("SELECT MANIFEST,ROWID FROM MANIFESTS LIMIT %d,%d", bundle_offset[pass], slots); statement = sqlite_prepare(&retry, "SELECT MANIFEST,ROWID FROM MANIFESTS LIMIT %d,%d", bundle_offset[pass], slots);
break; break;
case 1: /* BARs */ case 1: /* BARs */
statement = sqlite_prepare("SELECT BAR,ROWID FROM MANIFESTS LIMIT %d,%d", bundle_offset[pass], slots); statement = sqlite_prepare(&retry, "SELECT BAR,ROWID FROM MANIFESTS LIMIT %d,%d", bundle_offset[pass], slots);
break; break;
} }
if (!statement) if (!statement)