You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a similar issue, I tried using %Time{} and Time.new/3 directly but it came back with the same error. The error message may have improved since this was reported, because it also contains the solution:
Please make sure your quoted expressions are made of valid AST nodes. If you would like to introduce a value into the AST, such as a four-element tuple or a map, make sure to call Macro.escape/1 before
Just wrap the time inside of a Macro.escape/1 call and it will work:
Is there any way to specify a default value for a field of type
time
? e..g Set~T[16:30:00]
as a default value?I tried:
But it throws an error:
** (CompileError) nofile: invalid quoted expression: ~T[16:30:00]
The text was updated successfully, but these errors were encountered: