diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fts5/fts5_index.c | 2 | ||||
-rw-r--r-- | ext/wasm/api/sqlite3-api-prologue.js | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/fts5/fts5_index.c b/ext/fts5/fts5_index.c index 267489a7e..1b3f0fef9 100644 --- a/ext/fts5/fts5_index.c +++ b/ext/fts5/fts5_index.c @@ -3272,7 +3272,7 @@ static Fts5Iter *fts5MultiIterAlloc( int nSeg ){ Fts5Iter *pNew; - int nSlot; /* Power of two >= nSeg */ + i64 nSlot; /* Power of two >= nSeg */ for(nSlot=2; nSlot<nSeg; nSlot=nSlot*2); pNew = fts5IdxMalloc(p, diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js index 996f23298..ef1154f6b 100644 --- a/ext/wasm/api/sqlite3-api-prologue.js +++ b/ext/wasm/api/sqlite3-api-prologue.js @@ -1560,15 +1560,15 @@ globalThis.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( }; /** + Converts SQL input from a variety of convenient formats + to plain strings. + If v is a string, it is returned as-is. If it is-a Array, its join("") result is returned. If is is a Uint8Array, Int8Array, or ArrayBuffer, it is assumed to hold UTF-8-encoded text and is decoded to a string. If it looks like a WASM pointer, wasm.cstrToJs(sql) is returned. Else undefined is returned. - The intent of this function is to convert SQL input text from a - variety of common forms to plain strings. - Added in 3.44 */ capi.sqlite3_js_sql_to_string = (sql)=>{ |