Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
fix: change double to float (#9)
Browse files Browse the repository at this point in the history
SQL Server "double" is called "float"
Resolve Issue #6
  • Loading branch information
davepreston authored Nov 20, 2019
1 parent a279bbd commit dbbcf64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ function sqlTypeCast(type) {
case '_string':
return 'VARCHAR(max)';
case '_number':
return 'DOUBLE';
return 'FLOAT';
case '_boolean':
return 'TINYINT';
case '_json':
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sails-mssql",
"version": "2.0.1",
"version": "2.0.2",
"description": "SQL Server Adapter for Sails / Waterline",
"main": "lib/adapter.js",
"scripts": {
Expand Down

0 comments on commit dbbcf64

Please sign in to comment.