sql-typechecker 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/cli.js +2 -0
- package/out/cli.js.map +2 -2
- package/package.json +1 -1
package/out/cli.js
CHANGED
|
@@ -243414,6 +243414,8 @@ function genDeserializeSimpleT(t, literalVar) {
|
|
|
243414
243414
|
return `Instant.parse(${literalVar})`;
|
|
243415
243415
|
} else if (t.name.name === "timestamp without time zone" || t.name.name === "timestamp") {
|
|
243416
243416
|
return `LocalDateTime.parse(${literalVar}.replace(" ", "T"))`;
|
|
243417
|
+
} else if (t.name.name === "bigint" || t.name.name === "smallint" || t.name.name.startsWith("int")) {
|
|
243418
|
+
return `parseInt(${literalVar})`;
|
|
243417
243419
|
} else {
|
|
243418
243420
|
return literalVar;
|
|
243419
243421
|
}
|