@minnowdb/core 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@ export declare const MAX_CACHEABLE_TEXT_CHARACTERS: number;
|
|
|
6
6
|
* larger than ordinary application SQL while remaining small enough for deterministic refusal.
|
|
7
7
|
*/
|
|
8
8
|
export declare const MAX_SQL_TEXT_CHARACTERS: number;
|
|
9
|
-
export declare const MAX_SQL_TOKENS =
|
|
9
|
+
export declare const MAX_SQL_TOKENS = 16384;
|
|
10
10
|
export declare const MAX_SQL_NESTING_DEPTH = 128;
|
|
11
11
|
export declare const MAX_SQL_PARAMETERS = 4096;
|
|
12
12
|
/**
|
|
@@ -6,7 +6,7 @@ export const MAX_CACHEABLE_TEXT_CHARACTERS = 16 * 1024;
|
|
|
6
6
|
* larger than ordinary application SQL while remaining small enough for deterministic refusal.
|
|
7
7
|
*/
|
|
8
8
|
export const MAX_SQL_TEXT_CHARACTERS = 1024 * 1024;
|
|
9
|
-
export const MAX_SQL_TOKENS =
|
|
9
|
+
export const MAX_SQL_TOKENS = 16_384;
|
|
10
10
|
export const MAX_SQL_NESTING_DEPTH = 128;
|
|
11
11
|
export const MAX_SQL_PARAMETERS = 4_096;
|
|
12
12
|
/**
|
package/dist/engine/query.js
CHANGED
|
@@ -7017,8 +7017,14 @@ class Parser {
|
|
|
7017
7017
|
if (quotedIdentifier) {
|
|
7018
7018
|
// A quoted identifier is always a plain reference — never a keyword, literal, or function.
|
|
7019
7019
|
let reference = identifier;
|
|
7020
|
-
if (this.#punctuation("."))
|
|
7020
|
+
if (this.#punctuation(".")) {
|
|
7021
|
+
// E051-07: `"alias".*` selects one source's columns, same as the unquoted form.
|
|
7022
|
+
if (this.#peek().kind === "operator" && this.#peek().text === "*") {
|
|
7023
|
+
this.#index += 1;
|
|
7024
|
+
return { kind: "wildcard", table: identifier };
|
|
7025
|
+
}
|
|
7021
7026
|
reference += `.${this.#identifier()}`;
|
|
7027
|
+
}
|
|
7022
7028
|
return { kind: "column", reference };
|
|
7023
7029
|
}
|
|
7024
7030
|
const upper = identifier.toUpperCase();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minnowdb/core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "A columnar SQL database for the browser: PostgreSQL-style SQL over durable IndexedDB or OPFS data, with no server or WebAssembly module.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Eric Wilhite",
|