You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libsql-sqlite3/src/vector.c
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -266,28 +266,28 @@ static int vectorParseMeta(const unsigned char *pBlob, size_t nBlobSize, int *pT
266
266
267
267
if( *pType==VECTOR_TYPE_FLOAT32 ){
268
268
if( nBlobSize % 4!=0 ){
269
-
*pzErrMsg=sqlite3_mprintf("invalid vector: f32 vector blob length must be divisible by 4 (excluding optional 'type'-byte): length=%d", nBlobSize);
269
+
*pzErrMsg=sqlite3_mprintf("vector: f32 vector blob length must be divisible by 4 (excluding optional 'type'-byte): length=%d", nBlobSize);
270
270
returnSQLITE_ERROR;
271
271
}
272
272
*pDims=nBlobSize / sizeof(float);
273
273
*pDataSize=nBlobSize;
274
274
}elseif( *pType==VECTOR_TYPE_FLOAT64 ){
275
275
if( nBlobSize % 8!=0 ){
276
-
*pzErrMsg=sqlite3_mprintf("invalid vector: f64 vector blob length must be divisible by 8 (excluding 'type'-byte): length=%d", nBlobSize);
276
+
*pzErrMsg=sqlite3_mprintf("vector: f64 vector blob length must be divisible by 8 (excluding 'type'-byte): length=%d", nBlobSize);
277
277
returnSQLITE_ERROR;
278
278
}
279
279
*pDims=nBlobSize / sizeof(double);
280
280
*pDataSize=nBlobSize;
281
281
}elseif( *pType==VECTOR_TYPE_1BIT ){
282
282
if( nBlobSize==0||nBlobSize % 2!=0 ){
283
-
*pzErrMsg=sqlite3_mprintf("invalid vector: 1bit vector blob length must be divisible by 2 and not be empty (excluding 'type'-byte): length=%d", nBlobSize);
283
+
*pzErrMsg=sqlite3_mprintf("vector: 1bit vector blob length must be divisible by 2 and not be empty (excluding 'type'-byte): length=%d", nBlobSize);
0 commit comments