Comments (2)
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.
Fixed in Tedious 0.2.3 - tediousjs/tedious#147
from node-mssql.
Related Issues (20)
- mssql 6 incompatible with node v12 HOT 1
- IN clause parametrize issue HOT 1
- How to connect to SQL Server using tedious (Windows Authentication) HOT 1
- Issue connecting to MSSQL DB in Linux environment HOT 3
- How to use the user-defined data types?
- you have a typo in your readme sql.query`some query` HOT 1
- ConnectionError: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified HOT 1
- Potential impact of disabling connection validation when released from the pool HOT 1
- RequestError: Incorrect syntax near '='. Unable to query to table when values containing equal sign '=', HOT 7
- The "config.server" property is required and must be of type string. HOT 1
- @azure/core-rest-pipeline breaking support for node.js 14 HOT 2
- Does node-mssql support multiSubnetFailover? HOT 9
- Suspected memory leak when streaming data HOT 4
- arrayRowMode returns a function for the column type HOT 6
- Problem with Persian/Arabic characters when using input() HOT 4
- Testing library-using code in Jest results in SyntaxError: Unexpected token 'export' HOT 1
- Request timeouts in mssql/msnodesqlv8 when using default Pool size HOT 4
- Bulk Insert row lock not supported HOT 1
- Committing a transaction early, within a transaction ? HOT 4
- [Question] Does node-mssql support Kerberos authentication HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-mssql.