Updates
This commit is contained in:
Vendored
+3
-1
@@ -28,7 +28,9 @@ export default function sqlInsertGenerator({ tableName, data, dbFullName, }) {
|
|||||||
: value
|
: value
|
||||||
? value
|
? value
|
||||||
: null;
|
: null;
|
||||||
if (!finalValue) {
|
if (!finalValue &&
|
||||||
|
typeof finalValue !== "number" &&
|
||||||
|
typeof finalValue !== "string") {
|
||||||
queryValues.push(null);
|
queryValues.push(null);
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/bun-sqlite",
|
"name": "@moduletrace/bun-sqlite",
|
||||||
"version": "1.1.12",
|
"version": "1.1.13",
|
||||||
"description": "SQLite manager for Bun",
|
"description": "SQLite manager for Bun",
|
||||||
"author": "Benjamin Toby",
|
"author": "Benjamin Toby",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -46,7 +46,11 @@ export default function sqlInsertGenerator({
|
|||||||
? value
|
? value
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
if (!finalValue) {
|
if (
|
||||||
|
!finalValue &&
|
||||||
|
typeof finalValue !== "number" &&
|
||||||
|
typeof finalValue !== "string"
|
||||||
|
) {
|
||||||
queryValues.push(null);
|
queryValues.push(null);
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user