Socket
Socket
Sign inDemoInstall

mssql

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mssql - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

1

lib/msnodesql.js

@@ -529,2 +529,3 @@ // Generated by CoffeeScript 1.6.3

}
recordsets.returnValue = returnValue;
return typeof callback === "function" ? callback(null, recordsets, returnValue) : void 0;

@@ -531,0 +532,0 @@ }

@@ -507,2 +507,3 @@ // Generated by CoffeeScript 1.6.3

}
recordsets.returnValue = returnValue;
return typeof callback === "function" ? callback(null, recordsets, returnValue) : void 0;

@@ -509,0 +510,0 @@ }

@@ -496,2 +496,3 @@ // Generated by CoffeeScript 1.6.3

_this._release(connection);
recordsets.returnValue = returnValue;
return typeof callback === "function" ? callback(err, recordsets, returnValue) : void 0;

@@ -498,0 +499,0 @@ });

2

package.json

@@ -19,3 +19,3 @@ {

],
"version": "0.4.3",
"version": "0.4.4",
"main": "index.js",

@@ -22,0 +22,0 @@ "repository": {

@@ -46,3 +46,3 @@ # node-mssql [![Dependency Status](https://david-dm.org/patriksimek/node-mssql.png)](https://david-dm.org/patriksimek/node-mssql) [![NPM version](https://badge.fury.io/js/mssql.png)](http://badge.fury.io/js/mssql)

var request = new sql.Request(connection1); // or: var request = connection.request();
var request = new sql.Request(connection); // or: var request = connection.request();
request.query('select 1 as number', function(err, recordset) {

@@ -56,3 +56,3 @@ // ... error checks

var request = new sql.Request(connection1);
var request = new sql.Request(connection);
request.input('input_parameter', sql.Int, value);

@@ -256,3 +256,3 @@ request.output('output_parameter', sql.Int);

* **procedure** - Name of the stored procedure to be executed.
* **callback(err, recordsets, returnValue)** - A callback which is called after execution has completed, or an error has occurred.
* **callback(err, recordsets, returnValue)** - A callback which is called after execution has completed, or an error has occurred. `returnValue` is also accessible as property of recordsets.

@@ -268,5 +268,6 @@ __Example__

console.log(recordsets.length); // count of recordsets returned by procedure
console.log(recordset[0].length); // count of rows contained in first recordset
console.log(recordsets.length); // count of recordsets returned by the procedure
console.log(recordsets[0].length); // count of rows contained in first recordset
console.log(returnValue); // procedure return value
console.log(recordsets.returnValue); // same as previous line

@@ -579,3 +580,3 @@ console.log(request.parameters.output_parameter.value); // output value

* Tedious 1.5 doesn't support encoding of input parameters. [fix here](https://github.com/pekim/tedious/pull/113)
* If you're facing problem with text codepage, try using NVarChar as default data type for string values - `sql.map.register(String, sql.NVarChar)`.
* If you're facing problems with text codepage, try using NVarChar as default data type for string values - `sql.map.register(String, sql.NVarChar)`.

@@ -582,0 +583,0 @@ ### node-tds

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc