orange-orm 4.7.8-beta.0 → 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 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
- return TYPES.Int;
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,4 +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)
4
+ __4.7.8__
5
+ Bugfix: Support for multiple result sets from stored procedures in MsSql. See [#130](https://github.com/alfateam/orange-orm/issues/130)
2
6
  __4.7.7__
3
7
  Always do logging with question mark as placeholder instead of dialect specific placeholder.
4
8
  __4.7.6__
@@ -6,13 +10,13 @@ Changed logging for SAP ASE.
6
10
  __4.7.5__
7
11
  Implemented automatic hex conversion for non-ASCII UTF-8 characters in database parameters to resolve SAP ASE encoding issues.
8
12
  __4.7.4__
9
- 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)
10
14
  __4.7.3__
11
- 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)
12
16
  __4.7.2__
13
17
  Updated dependencies
14
18
  __4.7.1__
15
- 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)
16
20
  __4.7.0__
17
21
  Support for [PGLite](https://pglite.dev/). See [#124](https://github.com/alfateam/orange-orm/issues/124)
18
22
  __4.6.3__
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orange-orm",
3
- "version": "4.7.8-beta.0",
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",
@@ -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
- return TYPES.Int;
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))