vapor / fluent-postgres-driver

🐘 PostgreSQL driver for Fluent.
MIT License
149 stars 53 forks source link

unsupported jsonb version number 123 #48

Closed Sorix closed 6 years ago

Sorix commented 6 years ago

I have a one class and another one inside as a property. I don't want to create a new table for another simple class, make relationships etc for simple models. I tried that way:

final class Person: PostgreSQLUUIDModel {
  var id: UUID?
  var mails: [Mail]?
}

final class Mail: PostgreSQLJSONType {
  var name: String?
  var address: String?
}

But when I try to create object with that model I receive such error:

[ DEBUG ] Possible causes for PostgreSQLDiagnosticResponse.jsonb_recv: unsupported jsonb version number 123 (Logger+LogError.swift:23)

My PostgreSQL version is 10.3.

Sorix commented 6 years ago

I think #38 is related issue.

hjuraev commented 6 years ago

⚠️ PostgreSQL Diagnostic: ERROR: unsupported jsonb version number 123

Here are some possible causes: