Skip to content

Commit 21554fb

Browse files
committed
Renamed __vector to _sqliteai_vector
1 parent 6f0a9ed commit 21554fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sqlite-vector.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

104104
typedef 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

479479
static 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

511511
static 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

src/sqlite-vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
extern "C" {
2525
#endif
2626

27-
#define SQLITE_VECTOR_VERSION "0.9.1"
27+
#define SQLITE_VECTOR_VERSION "0.9.2"
2828

2929
SQLITE_VECTOR_API int sqlite3_vector_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);
3030

0 commit comments

Comments
 (0)