orange-orm 4.7.8 → 4.7.9
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.
- package/dist/index.mjs +8 -2
- package/docs/changelog.md +6 -4
- package/package.json +3 -1
- package/src/tedious/wrapQuery.js +8 -2
package/dist/index.mjs
CHANGED
|
@@ -18403,8 +18403,14 @@ function requireWrapQuery$1 () {
|
|
|
18403
18403
|
function toType(p) {
|
|
18404
18404
|
if (typeof p === 'string')
|
|
18405
18405
|
return TYPES.VarChar;
|
|
18406
|
-
else if (Number.isInteger(p))
|
|
18407
|
-
|
|
18406
|
+
else if (Number.isInteger(p)) {
|
|
18407
|
+
// Check if the integer is within the 32-bit signed integer range
|
|
18408
|
+
if (p >= -2147483648 && p <= 2147483647) {
|
|
18409
|
+
return TYPES.Int;
|
|
18410
|
+
} else {
|
|
18411
|
+
return TYPES.BigInt;
|
|
18412
|
+
}
|
|
18413
|
+
}
|
|
18408
18414
|
else if (typeof p === 'number')
|
|
18409
18415
|
return TYPES.Money;
|
|
18410
18416
|
else if (p instanceof Date && !isNaN(p))
|
package/docs/changelog.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
## Changelog
|
|
2
|
+
__4.7.9__
|
|
3
|
+
Bugfix: MsSql: Validation failed for parameter '0'. Value must be between -2147483648 and 2147483647, inclusive. See [#131](https://github.com/alfateam/orange-orm/issues/131)
|
|
2
4
|
__4.7.8__
|
|
3
|
-
Bugfix: Support for multiple result sets from stored procedures in MsSql. See [#130](https://github.com/alfateam/issues/130)
|
|
5
|
+
Bugfix: Support for multiple result sets from stored procedures in MsSql. See [#130](https://github.com/alfateam/orange-orm/issues/130)
|
|
4
6
|
__4.7.7__
|
|
5
7
|
Always do logging with question mark as placeholder instead of dialect specific placeholder.
|
|
6
8
|
__4.7.6__
|
|
@@ -8,13 +10,13 @@ Changed logging for SAP ASE.
|
|
|
8
10
|
__4.7.5__
|
|
9
11
|
Implemented automatic hex conversion for non-ASCII UTF-8 characters in database parameters to resolve SAP ASE encoding issues.
|
|
10
12
|
__4.7.4__
|
|
11
|
-
Bugfix: SAP ASE: Do not throw errors on warnings. See [#129](https://github.com/alfateam/issues/129)
|
|
13
|
+
Bugfix: SAP ASE: Do not throw errors on warnings. See [#129](https://github.com/alfateam/orange-orm/issues/129)
|
|
12
14
|
__4.7.3__
|
|
13
|
-
Bugfix: lessThanOrEqual throws incorrect syntax. See [#128](https://github.com/alfateam/issues/128)
|
|
15
|
+
Bugfix: lessThanOrEqual throws incorrect syntax. See [#128](https://github.com/alfateam/orange-orm/issues/128)
|
|
14
16
|
__4.7.2__
|
|
15
17
|
Updated dependencies
|
|
16
18
|
__4.7.1__
|
|
17
|
-
Bugfix: Error when using bun and sqlite: Cannot find package 'Database'. See [#127](https://github.com/alfateam/issues/127)
|
|
19
|
+
Bugfix: Error when using bun and sqlite: Cannot find package 'Database'. See [#127](https://github.com/alfateam/orange-orm/issues/127)
|
|
18
20
|
__4.7.0__
|
|
19
21
|
Support for [PGLite](https://pglite.dev/). See [#124](https://github.com/alfateam/orange-orm/issues/124)
|
|
20
22
|
__4.6.3__
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orange-orm",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.9",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"browser": "./dist/index.browser.mjs",
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
"MySQL",
|
|
27
27
|
"mssql",
|
|
28
28
|
"Microsoft Sql Server",
|
|
29
|
+
"PGlite",
|
|
30
|
+
"Cloudflare D1",
|
|
29
31
|
"PostgreSql",
|
|
30
32
|
"Postgres",
|
|
31
33
|
"pg",
|
package/src/tedious/wrapQuery.js
CHANGED
|
@@ -156,8 +156,14 @@ function addParameters(request, params, TYPES) {
|
|
|
156
156
|
function toType(p) {
|
|
157
157
|
if (typeof p === 'string')
|
|
158
158
|
return TYPES.VarChar;
|
|
159
|
-
else if (Number.isInteger(p))
|
|
160
|
-
|
|
159
|
+
else if (Number.isInteger(p)) {
|
|
160
|
+
// Check if the integer is within the 32-bit signed integer range
|
|
161
|
+
if (p >= -2147483648 && p <= 2147483647) {
|
|
162
|
+
return TYPES.Int;
|
|
163
|
+
} else {
|
|
164
|
+
return TYPES.BigInt;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
161
167
|
else if (typeof p === 'number')
|
|
162
168
|
return TYPES.Money;
|
|
163
169
|
else if (p instanceof Date && !isNaN(p))
|