Skip to content

Commit

Permalink
explicit error
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Nov 13, 2024
1 parent c6df446 commit 8149761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlite-vec.c
Original file line number Diff line number Diff line change
Expand Up @@ -6419,7 +6419,6 @@ int vec0Update_Insert(sqlite3_vtab *pVTab, int argc, sqlite3_value **argv,
partitionKeyValues[partition_key_idx] = argv[2+VEC0_COLUMN_USERN_START + i];

int new_value_type = sqlite3_value_type(partitionKeyValues[partition_key_idx]);
printf("DEBUG: new_value_type=%d t=%d\n", new_value_type, p->paritition_columns[partition_key_idx].type);
if((new_value_type != SQLITE_NULL) && (new_value_type != p->paritition_columns[partition_key_idx].type)) {
// IMP: V11454_28292
vtab_set_error(
Expand All @@ -6430,6 +6429,7 @@ int vec0Update_Insert(sqlite3_vtab *pVTab, int argc, sqlite3_value **argv,
type_name(p->paritition_columns[partition_key_idx].type),
type_name(new_value_type)
);
rc = SQLITE_ERROR;
goto cleanup;
}
}
Expand Down

0 comments on commit 8149761

Please sign in to comment.