@@ -180,7 +180,7 @@ static int vectorParseSqliteText(
180180 pzText ++ ;
181181
182182 if ( * pzText != '[' ){
183- * pzErrMsg = sqlite3_mprintf ("invalid vector: must start with '['" );
183+ * pzErrMsg = sqlite3_mprintf ("vector: must start with '['" );
184184 goto error ;
185185 }
186186 pzText ++ ;
@@ -195,7 +195,7 @@ static int vectorParseSqliteText(
195195 }
196196 if ( this != ',' && this != ']' ){
197197 if ( iBuf > MAX_FLOAT_CHAR_SZ ){
198- * pzErrMsg = sqlite3_mprintf ("invalid vector: float string length exceeded %d characters: '%s'" , MAX_FLOAT_CHAR_SZ , valueBuf );
198+ * pzErrMsg = sqlite3_mprintf ("vector: float string length exceeded %d characters: '%s'" , MAX_FLOAT_CHAR_SZ , valueBuf );
199199 goto error ;
200200 }
201201 valueBuf [iBuf ++ ] = this ;
@@ -206,11 +206,11 @@ static int vectorParseSqliteText(
206206 break ;
207207 }
208208 if ( sqlite3AtoF (valueBuf , & elem , iBuf , SQLITE_UTF8 ) <= 0 ){
209- * pzErrMsg = sqlite3_mprintf ("invalid vector: invalid float at position %d: '%s'" , iElem , valueBuf );
209+ * pzErrMsg = sqlite3_mprintf ("vector: invalid float at position %d: '%s'" , iElem , valueBuf );
210210 goto error ;
211211 }
212212 if ( iElem >= MAX_VECTOR_SZ ){
213- * pzErrMsg = sqlite3_mprintf ("invalid vector: max size exceeded %d" , MAX_VECTOR_SZ );
213+ * pzErrMsg = sqlite3_mprintf ("vector: max size exceeded %d" , MAX_VECTOR_SZ );
214214 goto error ;
215215 }
216216 // clear only first bufidx positions - all other are zero
@@ -229,7 +229,7 @@ static int vectorParseSqliteText(
229229 pzText ++ ;
230230
231231 if ( * pzText != ']' ){
232- * pzErrMsg = sqlite3_mprintf ("invalid vector: must end with ']'" );
232+ * pzErrMsg = sqlite3_mprintf ("vector: must end with ']'" );
233233 goto error ;
234234 }
235235 pzText ++ ;
@@ -238,7 +238,7 @@ static int vectorParseSqliteText(
238238 pzText ++ ;
239239
240240 if ( * pzText != '\0' ){
241- * pzErrMsg = sqlite3_mprintf ("invalid vector: non-space symbols after closing ']' are forbidden" );
241+ * pzErrMsg = sqlite3_mprintf ("vector: non-space symbols after closing ']' are forbidden" );
242242 goto error ;
243243 }
244244 pVector -> dims = iElem ;
@@ -283,11 +283,11 @@ int detectBlobVectorParameters(sqlite3_value *arg, int *pType, int *pDims, char
283283 } else if ( * pType == VECTOR_TYPE_FLOAT64 ){
284284 * pDims = nBlobSize / sizeof (double );
285285 } else {
286- * pzErrMsg = sqlite3_mprintf ("invalid vector: unexpected binary type: got %d, expected %d or %d" , * pType , VECTOR_TYPE_FLOAT32 , VECTOR_TYPE_FLOAT64 );
286+ * pzErrMsg = sqlite3_mprintf ("vector: unexpected binary type: got %d, expected %d or %d" , * pType , VECTOR_TYPE_FLOAT32 , VECTOR_TYPE_FLOAT64 );
287287 return -1 ;
288288 }
289289 if ( * pDims > MAX_VECTOR_SZ ){
290- * pzErrMsg = sqlite3_mprintf ("invalid vector: max size exceeded: %d > %d" , * pDims , MAX_VECTOR_SZ );
290+ * pzErrMsg = sqlite3_mprintf ("vector: max size exceeded: %d > %d" , * pDims , MAX_VECTOR_SZ );
291291 return -1 ;
292292 }
293293 return 0 ;
@@ -334,7 +334,7 @@ int detectVectorParameters(sqlite3_value *arg, int typeHint, int *pType, int *pD
334334 case SQLITE_TEXT :
335335 return detectTextVectorParameters (arg , typeHint , pType , pDims , pzErrMsg );
336336 default :
337- * pzErrMsg = sqlite3_mprintf ("invalid vector: unexpected value type: got %s, expected TEXT or BLOB" , sqlite3_type_repr (sqlite3_value_type (arg )));
337+ * pzErrMsg = sqlite3_mprintf ("vector: unexpected value type: got %s, expected TEXT or BLOB" , sqlite3_type_repr (sqlite3_value_type (arg )));
338338 return -1 ;
339339 }
340340}
@@ -350,7 +350,7 @@ int vectorParse(
350350 case SQLITE_TEXT :
351351 return vectorParseSqliteText (arg , pVector , pzErrMsg );
352352 default :
353- * pzErrMsg = sqlite3_mprintf ("invalid vector: unexpected value type: got %s, expected TEXT or BLOB" , sqlite3_type_repr (sqlite3_value_type (arg )));
353+ * pzErrMsg = sqlite3_mprintf ("vector: unexpected value type: got %s, expected TEXT or BLOB" , sqlite3_type_repr (sqlite3_value_type (arg )));
354354 return -1 ;
355355 }
356356}
0 commit comments