Skip to content

Commit ac60c10

Browse files
committed
build bundles
1 parent cea8725 commit ac60c10

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

libsql-ffi/bundled/SQLite3MultipleCiphers/src/sqlite3.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213389,7 +213389,11 @@ int diskAnnDelete(
213389213389
DiskAnnTrace(("diskAnnDelete started: rowid=%lld\n", nodeRowid));
213390213390

213391213391
rc = blobSpotCreate(pIndex, &pNodeBlob, nodeRowid, pIndex->nBlockSize, DISKANN_BLOB_WRITABLE);
213392-
if( rc != SQLITE_OK ){
213392+
if( rc == DISKANN_ROW_NOT_FOUND ){
213393+
// we omit rows with NULL values so it can be the case that there is nothing to delete in the index while row exists in the base table
213394+
rc = SQLITE_OK;
213395+
goto out;
213396+
}else if( rc != SQLITE_OK ){
213393213397
*pzErrMsg = sqlite3_mprintf("vector index(delete): failed to create blob for node row");
213394213398
goto out;
213395213399
}

libsql-ffi/bundled/src/sqlite3.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213389,7 +213389,11 @@ int diskAnnDelete(
213389213389
DiskAnnTrace(("diskAnnDelete started: rowid=%lld\n", nodeRowid));
213390213390

213391213391
rc = blobSpotCreate(pIndex, &pNodeBlob, nodeRowid, pIndex->nBlockSize, DISKANN_BLOB_WRITABLE);
213392-
if( rc != SQLITE_OK ){
213392+
if( rc == DISKANN_ROW_NOT_FOUND ){
213393+
// we omit rows with NULL values so it can be the case that there is nothing to delete in the index while row exists in the base table
213394+
rc = SQLITE_OK;
213395+
goto out;
213396+
}else if( rc != SQLITE_OK ){
213393213397
*pzErrMsg = sqlite3_mprintf("vector index(delete): failed to create blob for node row");
213394213398
goto out;
213395213399
}

0 commit comments

Comments
 (0)