stimulsoft-data-adapter 2023.2.7 → 2023.3.1

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.
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2023.2.7
4
- Build date: 2023.06.12
3
+ Version: 2023.3.1
4
+ Build date: 2023.07.24
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
8
8
  var end = function (result) {
9
9
  try {
10
10
  if (db) db.detach();
11
- result.adapterVersion = "2023.2.7";
11
+ result.adapterVersion = "2023.3.1";
12
12
  onResult(result);
13
13
  }
14
14
  catch (e) {
package/MSSQLAdapter.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2023.2.7
4
- Build date: 2023.06.12
3
+ Version: 2023.3.1
4
+ Build date: 2023.07.24
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
8
8
  var end = function (result) {
9
9
  try {
10
10
  if (connection) connection.close();
11
- result.adapterVersion = "2023.2.7";
11
+ result.adapterVersion = "2023.3.1";
12
12
  onResult(result);
13
13
  }
14
14
  catch (e) {
package/MySQLAdapter.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2023.2.7
4
- Build date: 2023.06.12
3
+ Version: 2023.3.1
4
+ Build date: 2023.07.24
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
@@ -13,7 +13,7 @@ exports.process = function (command, onResult) {
13
13
  catch (e) {
14
14
  }
15
15
  finally {
16
- result.adapterVersion = "2023.2.7";
16
+ result.adapterVersion = "2023.3.1";
17
17
  onResult(result);
18
18
  }
19
19
  }
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2023.2.7
4
- Build date: 2023.06.12
3
+ Version: 2023.3.1
4
+ Build date: 2023.07.24
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
8
8
  var end = function (result) {
9
9
  try {
10
10
  if (client) client.end();
11
- result.adapterVersion = "2023.2.7";
11
+ result.adapterVersion = "2023.3.1";
12
12
  onResult(result);
13
13
  }
14
14
  catch (e) {
@@ -39,9 +39,9 @@ exports.process = function (command, onResult) {
39
39
  var onConnect = function () {
40
40
  if (command.queryString) {
41
41
  if (command.command == "Execute")
42
- command.queryString = "CALL " + command.queryString + "(" + command.parameters.map(parameter => "@" + parameter.name).join(", ") +")";
43
-
44
- var {queryString, parameters} = applyQueryParameters(command.queryString, command.parameters, command.escapeQueryParameters);
42
+ command.queryString = "CALL " + command.queryString + "(" + command.parameters.map(parameter => "@" + parameter.name).join(", ") + ")";
43
+
44
+ var { queryString, parameters } = applyQueryParameters(command.queryString, command.parameters, command.escapeQueryParameters);
45
45
  query(queryString, parameters);
46
46
  }
47
47
  else end({ success: true });
@@ -256,10 +256,12 @@ exports.process = function (command, onResult) {
256
256
  var parameter = baseParameters.find(parameter => parameter.name.toLowerCase() == parameterName.toLowerCase());
257
257
  if (parameter) {
258
258
  if (parameter.index == null) {
259
- parameters.push(parameter.value);
259
+ if (parameter.typeGroup == "number") parameters.push(+parameter.value);
260
+ else if (parameter.typeGroup == "datetime") parameters.push(new Date(parameter.value));
261
+ else parameters.push(parameter.value);
260
262
  parameter.index = parameters.length;
261
263
  }
262
- result += '"' + parameter.name +'" := $' + parameter.index.toString();
264
+ result += '"' + parameter.name + '" := $' + parameter.index.toString();
263
265
  }
264
266
  else
265
267
  result += "@" + parameterName;
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2023.2.7
4
- Build date: 2023.06.12
3
+ Version: 2023.3.1
4
+ Build date: 2023.07.24
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
 
@@ -67,7 +67,7 @@ function getResponse(result) {
67
67
  return result
68
68
  }
69
69
  function onProcess(onResult, encryptData, result) {
70
- result.handlerVersion = "2023.2.7";
70
+ result.handlerVersion = "2023.3.1";
71
71
  result.checkVersion = true;
72
72
  result.encryptData = encryptData;
73
73
  onResult(result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stimulsoft-data-adapter",
3
- "version": "2023.2.7",
3
+ "version": "2023.3.1",
4
4
  "description": "Nodejs data adapter for Stimulsoft Reports.JS",
5
5
  "main": "index.js",
6
6
  "scripts": {