vapor / fluent-mysql-driver

🖋🐬 Swift ORM (queries, models, relations, etc) built on MySQL.
MIT License
77 stars 52 forks source link

It can't be decoded if value is null #182

Closed mohok closed 4 years ago

mohok commented 4 years ago

When I query using raw query, it can't be decoded to optional variable if value is null.

Should I insert IFNULL and default value to query? How to decode as nil?

tanner0101 commented 4 years ago

Hi @mohok, thanks for reporting this issue. Please include the version of the package you are using as well as information to help reproduce like the query string, table schema, and row values. We can reopen once we have this info.