@balena/abstract-sql-compiler
Advanced tools
Comparing version 7.12.2 to 7.12.3-remove-serial-hack-187bc075d237a2ced731d0a026ca25aa3e0f5540
@@ -7,2 +7,6 @@ # Change Log | ||
## 7.12.3 - 2021-05-03 | ||
* Remove now unnecessary hack for casting SERIAL types [Pagan Gazzard] | ||
## 7.12.2 - 2021-03-22 | ||
@@ -9,0 +13,0 @@ |
@@ -646,5 +646,2 @@ "use strict"; | ||
} | ||
else if (dbType.toUpperCase() === 'SERIAL') { | ||
type = 'INTEGER'; | ||
} | ||
else { | ||
@@ -651,0 +648,0 @@ type = dbType; |
{ | ||
"name": "@balena/abstract-sql-compiler", | ||
"version": "7.12.2", | ||
"version": "7.12.3-remove-serial-hack-187bc075d237a2ced731d0a026ca25aa3e0f5540", | ||
"description": "A translator for abstract sql into sql.", | ||
@@ -20,3 +20,3 @@ "main": "out/AbstractSQLCompiler.js", | ||
"@types/lodash": "^4.14.168", | ||
"@types/node": "^10.17.55", | ||
"@types/node": "^10.17.59", | ||
"lodash": "^4.17.21" | ||
@@ -26,7 +26,7 @@ }, | ||
"@balena/lf-to-abstract-sql": "^4.2.1", | ||
"@balena/lint": "^5.4.1", | ||
"@balena/lint": "^5.4.2", | ||
"@balena/odata-parser": "^2.2.3", | ||
"@balena/sbvr-parser": "^1.2.2", | ||
"@resin/odata-to-abstract-sql": "^3.3.0", | ||
"@types/chai": "^4.2.15", | ||
"@types/chai": "^4.2.17", | ||
"@types/common-tags": "^1.8.0", | ||
@@ -41,3 +41,3 @@ "@types/mocha": "^8.2.2", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.2.3" | ||
"typescript": "^4.2.4" | ||
}, | ||
@@ -44,0 +44,0 @@ "husky": { |
@@ -747,6 +747,2 @@ import * as _ from 'lodash'; | ||
type = dbType.castType; | ||
} else if (dbType.toUpperCase() === 'SERIAL') { | ||
// HACK: SERIAL type in postgres is really an INTEGER with automatic sequence, | ||
// so it's not actually possible to cast to SERIAL, instead you have to cast to INTEGER. | ||
type = 'INTEGER'; | ||
} else { | ||
@@ -753,0 +749,0 @@ type = dbType; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
607350
13350
2
Updated@types/node@^10.17.59