MsNodeSql: fixed QueryCallback and tests

This commit is contained in:
gstamac
2013-08-23 13:43:01 +02:00
parent a8fab63408
commit 844b0298b2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -17,12 +17,12 @@ function test_streaming() {
function test_explicit() {
var conn_str = "Driver={SQL Server Native Client 11.0};Server={(localdb)\\v11.0};Database={DBName};Trusted_Connection={Yes};";
sql.open(conn_str, function (err, conn) {
sql.open(conn_str, function (err?: Error, connection?: sql.Connection) {
if (err) {
console.log("Error opening the connection!");
return;
}
conn.queryRaw("SELECT * FROM TestTable", function (err, results) {
connection.queryRaw("SELECT * FROM TestTable", function (err?: Error, results?: sql.QueryRawResult, more?: boolean) {
if (err) {
console.log("Error running query!");
return;
+1 -1
View File
@@ -20,7 +20,7 @@ declare module "msnodesql" {
}
interface QueryCallback {
(err?: Error, results?: any[], more?: boolean): void;
(err?: Error, results?: QueryRawResult, more?: boolean): void;
}
interface QueryRawCallback {