title: Query with parameter in Node js return null record set
body: <p>I have this query in Node JS with MSSQL driver for sql server:</p>
  
  <pre><code>public getDataParameterFirst(SerialNumber, Sid, OreDa, OreA, MinutiDa, MinutiA)
  {
  
      return runDb(cnn =&gt; cnn.query `SELECT * FROM activeTelemetry.tbl_EHStage WHERE SerialNumber = ${SerialNumber} AND Sid = ${Sid}
                                                      AND Day = DATEPART(day, getutcdate()) AND Month = DATEPART(month, getutcdate()) 
                                                      AND Year = DATEPART(year, getutcdate()) AND Hour &gt;= ${OreDa} AND Hour &lt; ${OreA} AND Minute &gt;= ${MinutiA} AND Minute &lt; ${MinutiDa}`
          .then( result =&gt; { console.dir(result); return result.recordset})
  
      );
  }
  </code></pre>
  
  <p>The query return:</p>
  
  <pre><code> { recordsets: [ [] ],
   recordset: [],
   output: {},
   rowsAffected: [ 0 ] }
  </code></pre>
  
  <p>If a delete</p>
  
  <pre><code>AND Minute &gt;= ${MinutiA} AND Minute &lt; ${MinutiDa}
  </code></pre>
  
  <p>The query works.</p>
  
  <p>Can someone help me?</p>