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
And when I am trying to save model with not empty array:
SomeModel(someArray:[1,2]).save(on: req)
It is works.
But when I am trying to save same model with empty array (not nil):
SomeModel(someArray:[]).save(on: req)
Then I get crash in MySQLDataEncoder.swift file, at 11 line, with error message: "Unexpectedly found nil while unwrapping an Optional value".
And I found that the same issue was in postgresql: vapor/postgres-kit#80
The text was updated successfully, but these errors were encountered:
I have a Fluent MySQL model:
And when I am trying to save model with not empty array:
It is works.
But when I am trying to save same model with empty array (not nil):
Then I get crash in MySQLDataEncoder.swift file, at 11 line, with error message: "Unexpectedly found nil while unwrapping an Optional value".
And I found that the same issue was in postgresql: vapor/postgres-kit#80
The text was updated successfully, but these errors were encountered: