@balena/abstract-sql-compiler
Advanced tools
Comparing version 9.1.1 to 9.1.2-build-joshbwlng-big-serial-cast-a1f883be6d8e4f7098937ea27df29bba92df43aa-1
@@ -7,2 +7,6 @@ # Change Log | ||
## 9.1.2 - 2024-04-08 | ||
* Cast Big Serial to integer [Josh Bowling] | ||
## 9.1.1 - 2024-03-26 | ||
@@ -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.1", | ||
"version": "9.1.2-build-joshbwlng-big-serial-cast-a1f883be6d8e4f7098937ea27df29bba92df43aa-1", | ||
"description": "A translator for abstract sql into sql.", | ||
@@ -64,4 +64,4 @@ "main": "out/AbstractSQLCompiler.js", | ||
"versionist": { | ||
"publishedAt": "2024-03-26T09:58:53.324Z" | ||
"publishedAt": "2024-04-08T04:40:59.406Z" | ||
} | ||
} |
@@ -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
847697
2