Kitura / Swift-Kuery-ORM

An ORM for Swift, built on Codable
Apache License 2.0
212 stars 30 forks source link

([SwiftKuery.Column]) columns = <Unable to determine byte size.> #98

Closed mbmshafraz closed 5 years ago

mbmshafraz commented 5 years ago

Context and Description

A description of the issue.

Environment Details

Development Envirement MacOS, MySQL server on Ubuntu, Swift 4.2 and Xcode 10.1.

Steps to Reproduce

Save an object using save function

Expected vs. Actual Behaviour

receiving ([SwiftKuery.Column]) columns =

kilnerm commented 5 years ago

@mbmshafraz, can you add your table definition and code calling the save (including values) to the issue please?

kilnerm commented 5 years ago

I discussed the issue on slack, the root of the problem was that a pre-existing database table had an incorrect name for the model:

struct Visitor: Model {
   var email: String = “test@mail.com”
   var receiveMail = 0
}

The error message should be better in these circumstances so I will use this issue to improve it!

kilnerm commented 5 years ago

I'v not been able to recreate this error, I asked the originator for further assistance on Slack.

kilnerm commented 5 years ago

Marking this as closed. Should further information become available I will re-open.