Skip to content

Commit

Permalink
Fix: number check in pg type test
Browse files Browse the repository at this point in the history
  • Loading branch information
NobleMajo committed May 14, 2024
1 parent 17209e2 commit dda8830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "al-sql",
"description": "Abstraction_Layer-Structured_Query_Language is a sql abstraction layer that can be used for every sql database to perform DML and simple DLL querys.",
"version": "1.1.18",
"version": "1.1.19",
"main": "dist/index.js",
"author": "majo418",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ export function getPostgresType(type: string): [string, number] {
type = type.slice(0, -1)
type = type.substring(index + 1)
let length = Number(type)
if (length == NaN) {
if (isNaN(length)) {
length = -1
}
return [type2, length]
Expand Down

0 comments on commit dda8830

Please sign in to comment.