mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-26 17:26:25 +02:00
explicit error
This commit is contained in:
parent
c6df44630b
commit
81497610e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue