@balena/abstract-sql-compiler
Advanced tools
Comparing version
@@ -7,2 +7,6 @@ # Change Log | ||
## 9.1.4 - 2024-04-09 | ||
* Cast Big Serial to integer [Josh Bowling] | ||
## 9.1.3 - 2024-04-09 | ||
@@ -9,0 +13,0 @@ |
@@ -767,3 +767,3 @@ "use strict"; | ||
} | ||
else if (dbType.toUpperCase() === 'SERIAL') { | ||
else if (['SERIAL', 'BIGSERIAL'].includes(dbType.toUpperCase())) { | ||
type = 'INTEGER'; | ||
@@ -770,0 +770,0 @@ } |
{ | ||
"name": "@balena/abstract-sql-compiler", | ||
"version": "9.1.3", | ||
"version": "9.1.4-build-joshbwlng-big-serial-cast-792c508e2f60d1d9820a18497e0192e6941545f4-1", | ||
"description": "A translator for abstract sql into sql.", | ||
@@ -64,4 +64,4 @@ "main": "out/AbstractSQLCompiler.js", | ||
"versionist": { | ||
"publishedAt": "2024-04-09T01:35:54.336Z" | ||
"publishedAt": "2024-04-09T04:03:43.379Z" | ||
} | ||
} |
@@ -879,5 +879,5 @@ 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. | ||
} else if (['SERIAL', 'BIGSERIAL'].includes(dbType.toUpperCase())) { | ||
// HACK: SERIAL and BIGSERIAL types in postgres are really an INTEGER with automatic sequence, | ||
// so it's not actually possible to cast to SERIAL or BIGSERIAL, instead you have to cast to INTEGER. | ||
type = 'INTEGER'; | ||
@@ -884,0 +884,0 @@ } else { |
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
848849
0.06%2
100%