rado 0.1.15 → 0.1.16
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/dist/lib/Formatter.js +1 -1
- package/package.json +1 -1
package/dist/lib/Formatter.js
CHANGED
|
@@ -205,7 +205,7 @@ var Formatter = class {
|
|
|
205
205
|
}
|
|
206
206
|
formatColumnValue(column, columnValue) {
|
|
207
207
|
const isNull = columnValue === void 0 || columnValue === null;
|
|
208
|
-
const isOptional = column.nullable || column.autoIncrement || column.primaryKey || column.defaultValue;
|
|
208
|
+
const isOptional = column.nullable || column.autoIncrement || column.primaryKey || column.defaultValue !== void 0;
|
|
209
209
|
if (isNull) {
|
|
210
210
|
if (!isOptional)
|
|
211
211
|
throw new TypeError(`Expected value for column ${column.name}`);
|