Skip to content

Commit

Permalink
Merge pull request #23 from rlaiola/datefix
Browse files Browse the repository at this point in the history
Fix wrong date format crash
  • Loading branch information
rlaiola authored Apr 10, 2024
2 parents ae16bec + 1c26f77 commit 27a6261
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/db/exec/ValueExpr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ export class ValueExprGeneric extends ValueExpr {
return true;

case 'date':
// Check wether the date format is valid
this._parseIsoDate(this._args[0]._args[0]);
return this._checkArgsDataType(schemaA, schemaB, ['string']);

case 'adddate':
Expand Down

0 comments on commit 27a6261

Please sign in to comment.