Giter Club home page Giter Club logo

Comments (2)

kenleese avatar kenleese commented on May 18, 2024

Using SQL Server 2014 Express:

CREATE TABLE t11s_db.t11s.Test
(
[id] INT NOT NULL,
latitude NUMERIC(8,5),
longitude NUMERIC(8,5),
PRIMARY KEY NONCLUSTERED ([id] ASC)
);

Using node.js 10.23, mssql 0.5.3, default driver (tedious):
INSERT INTO t11s.Test VALUES (@p0,@p1,@p2);
where parameters are:
INTNOTNULL: @p0 = 118583
NUMERIC(8,5): @p1 = 36.13636
NUMERIC(8,5): @p2 = -115.16225

buffer.js:784
throw TypeError('value is out of bounds');
^
TypeError: value is out of bounds
at TypeError ()
at checkInt (buffer.js:784:11)
at Buffer.writeUInt32LE (buffer.js:841:5)
at WritableTrackingBuffer.writeUInt32LE (D:\Trippo\etl\node_modules\mssql\node_modules\tedious\lib\tracking-buffer\writable-tracking-buffer.js:92:17)
at Object.TYPE.writeParameterData (D:\Trippo\etl\node_modules\mssql\node_modules\tedious\lib\data-type.js:332:25)
at new RpcRequestPayload (D:\Trippo\etl\node_modules\mssql\node_modules\tedious\lib\rpcrequest-payload.js:66:22)
at Connection.execSql (D:\Trippo\etl\node_modules\mssql\node_modules\tedious\lib\connection.js:712:56)
at D:\Trippo\etl\node_modules\mssql\lib\tedious.js:563:33
at dispense (D:\Trippo\etl\node_modules\mssql\node_modules\generic-pool\lib\generic-pool.js:247:16)
at Object.me.acquire (D:\Trippo\etl\node_modules\mssql\node_modules\generic-pool\lib\generic-pool.js:316:5)

I suspect the issue may be related to the NUMERIC data type.

from node-mssql.

patriksimek avatar patriksimek commented on May 18, 2024

Fixed in Tedious 0.2.3 - tediousjs/tedious#147

from node-mssql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.