linq2db / linq2db.LINQPad

linq2db.LINQPad is a driver for LINQPad.
MIT License
74 stars 24 forks source link

Unhandled error in method 'PreprocessObjectToWrite' for LINQPad8 #98

Closed embix closed 11 months ago

embix commented 11 months ago

LP8 - When the query is set to a linqpad connection, dumping any sequence of items will encounter the following error:

Unhandled error in method 'PreprocessObjectToWrite':
  The type initializer for 'LinqToDB.LlNQPad.ValueFormatter' threw an exception.
    at LinqToDB.LlNQPad.ValueFormatter.Format(Object value)
    at LinqToDB.LlNQPad.LinqToDBDriver.PreprocessObjectToWrite(Object& objectToWrite, ObjectGraphlnfo info)

LINQPad error appears with both versions 5.0.0 and 5.1.0 (for LINQPad versions 8.0.12 and 8.0.13).

viceroypenguin commented 11 months ago

Upon review, this has nothing to do with mariadb, or with any queries. Editing your question to relevant portions.

viceroypenguin commented 11 months ago

This is due to a Linqpad method signature being updated. Requires information from Joe (LP Dev) before fixing.

MaceWindu commented 11 months ago

Well, that's not good. If we address signature change it will break support for LP 5-7 versions

viceroypenguin commented 11 months ago

Per comment from Joe, the signature will be reverted in 8.0.14; as such, there is nothing to do on the linqpad side. @embix please look for 8.0.14, which has been released, and re-open this ticket if the issue persists.