New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@balena/abstract-sql-compiler

Package Overview
Dependencies
Maintainers
3
Versions
481
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/abstract-sql-compiler - npm Package Compare versions

Comparing version

to
9.1.4-build-joshbwlng-big-serial-cast-792c508e2f60d1d9820a18497e0192e6941545f4-1

4

CHANGELOG.md

@@ -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 @@

2

out/AbstractSQLRules2SQL.js

@@ -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