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
sqlite3ErrorMsg(pParse, "USING syntax is deprecated, please use plain CREATE INDEX: CREATE INDEX %s ON %s ( "VECTOR_INDEX_MARKER_FUNCTION"(%s) )", pIdx->zName, pTable->zName, pTable->aCol[pIdx->aiColumn[0]].zCnName);
833
+
sqlite3ErrorMsg(pParse, "vector index: USING syntax is deprecated, please use plain CREATE INDEX: CREATE INDEX %s ON %s ( "VECTOR_INDEX_MARKER_FUNCTION"(%s) )", pIdx->zName, pTable->zName, pTable->aCol[pIdx->aiColumn[0]].zCnName);
834
834
} else {
835
-
sqlite3ErrorMsg(pParse, "USING syntax is deprecated, please use plain CREATE INDEX: CREATE INDEX xxx ON yyy ( "VECTOR_INDEX_MARKER_FUNCTION"(zzz) )");
835
+
sqlite3ErrorMsg(pParse, "vector index: USING syntax is deprecated, please use plain CREATE INDEX: CREATE INDEX xxx ON yyy ( "VECTOR_INDEX_MARKER_FUNCTION"(zzz) )");
836
836
}
837
837
returnCREATE_FAIL;
838
838
}
@@ -860,40 +860,40 @@ int vectorIndexCreate(Parse *pParse, const Index *pIdx, const char *zDbSName, co
860
860
returnCREATE_IGNORE;
861
861
}
862
862
if( hasCollation ){
863
-
sqlite3ErrorMsg(pParse, "vector index can't have collation");
863
+
sqlite3ErrorMsg(pParse, "vector index: collation in expression is forbidden");
864
864
returnCREATE_FAIL;
865
865
}
866
866
if( pIdx->aColExpr->nExpr!=1 ) {
867
-
sqlite3ErrorMsg(pParse, "vector index must contain exactly one column wrapped into the "VECTOR_INDEX_MARKER_FUNCTION" function");
867
+
sqlite3ErrorMsg(pParse, "vector index: must contain exactly one column wrapped into the "VECTOR_INDEX_MARKER_FUNCTION" function");
868
868
returnCREATE_FAIL;
869
869
}
870
870
// we are able to support this but I doubt this works for now - more polishing required to make this work
871
871
if( pIdx->pPartIdxWhere!=NULL ) {
872
-
sqlite3ErrorMsg(pParse, "partial vector index is not supported");
872
+
sqlite3ErrorMsg(pParse, "vector index: where condition is forbidden");
873
873
returnCREATE_FAIL;
874
874
}
875
875
876
876
pArgsList=pIdx->aColExpr->a[0].pExpr->x.pList;
877
877
pListItem=pArgsList->a;
878
878
879
879
if( pArgsList->nExpr<1 ){
880
-
sqlite3ErrorMsg(pParse, VECTOR_INDEX_MARKER_FUNCTION" must contain at least one argument");
880
+
sqlite3ErrorMsg(pParse, "vector idnex: "VECTOR_INDEX_MARKER_FUNCTION" must contain at least one argument");
881
881
returnCREATE_FAIL;
882
882
}
883
883
if( pListItem[0].pExpr->op!=TK_COLUMN ) {
884
-
sqlite3ErrorMsg(pParse, VECTOR_INDEX_MARKER_FUNCTION" first argument must be a column token");
884
+
sqlite3ErrorMsg(pParse, "vector index: "VECTOR_INDEX_MARKER_FUNCTION" first argument must be a column token");
885
885
returnCREATE_FAIL;
886
886
}
887
887
iEmbeddingColumn=pListItem[0].pExpr->iColumn;
888
888
if( iEmbeddingColumn<0 ) {
889
-
sqlite3ErrorMsg(pParse, VECTOR_INDEX_MARKER_FUNCTION" first argument must be column with vector type");
889
+
sqlite3ErrorMsg(pParse, "vector index: "VECTOR_INDEX_MARKER_FUNCTION" first argument must be column with vector type");
0 commit comments