@@ -99,7 +99,7 @@ SQLITE_EXTENSION_INIT1
9999#define OPTION_KEY_QUANTSCALE "qscale" // used only in serialize/unserialize
100100#define OPTION_KEY_QUANTOFFSET "qoffset" // used only in serialize/unserialize
101101
102- #define VECTOR_INTERNAL_TABLE "CREATE TABLE IF NOT EXISTS __vector (tblname TEXT, colname TEXT, key TEXT, value ANY, PRIMARY KEY(tblname, colname, key));"
102+ #define VECTOR_INTERNAL_TABLE "CREATE TABLE IF NOT EXISTS _sqliteai_vector (tblname TEXT, colname TEXT, key TEXT, value ANY, PRIMARY KEY(tblname, colname, key));"
103103
104104typedef struct {
105105 vector_type v_type ; // vector type
@@ -477,7 +477,7 @@ static void *sqlite_common_set_error (sqlite3_context *context, sqlite3_vtab *vt
477477}
478478
479479static int sqlite_serialize (sqlite3_context * context , const char * table_name , const char * column_name , int type , const char * key , int64_t ivalue , double fvalue ) {
480- const char * sql = "REPLACE INTO __vector (tblname, colname, key, value) VALUES (?, ?, ?, ?);" ;
480+ const char * sql = "REPLACE INTO _sqliteai_vector (tblname, colname, key, value) VALUES (?, ?, ?, ?);" ;
481481 sqlite3 * db = sqlite3_context_db_handle (context );
482482 sqlite3_stmt * vm = NULL ;
483483
@@ -509,7 +509,7 @@ static int sqlite_serialize (sqlite3_context *context, const char *table_name, c
509509}
510510
511511static int sqlite_unserialize (sqlite3_context * context , table_context * ctx ) {
512- const char * sql = "SELECT key, value FROM __vector WHERE tblname = ? AND colname = ?;" ;
512+ const char * sql = "SELECT key, value FROM _sqliteai_vector WHERE tblname = ? AND colname = ?;" ;
513513 sqlite3 * db = sqlite3_context_db_handle (context );
514514 sqlite3_stmt * vm = NULL ;
515515
0 commit comments