This commit is contained in:
2026-09-20 06:50:40 +01:00
parent 9129593545
commit 991b02d7c1
3 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -28,7 +28,9 @@ export default function sqlInsertGenerator({ tableName, data, dbFullName, }) {
: value
? value
: null;
if (!finalValue) {
if (!finalValue &&
typeof finalValue !== "number" &&
typeof finalValue !== "string") {
queryValues.push(null);
return "?";
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@moduletrace/bun-sqlite",
"version": "1.1.12",
"version": "1.1.13",
"description": "SQLite manager for Bun",
"author": "Benjamin Toby",
"main": "dist/index.js",
+5 -1
View File
@@ -46,7 +46,11 @@ export default function sqlInsertGenerator({
? value
: null;
if (!finalValue) {
if (
!finalValue &&
typeof finalValue !== "number" &&
typeof finalValue !== "string"
) {
queryValues.push(null);
return "?";
}