mypipe icon indicating copy to clipboard operation
mypipe copied to clipboard

VAR_STRING / STRING handling in ColumnType.scala

Open rdegraafwhizzkit opened this issue 8 years ago • 0 comments

ColumnType.scala gives us some errors on VAR_STRING and STRING values. Data stored in these kinds of columns seems to be typically byte[]. Implicit conversion using

column.valueOption[String].getOrElse("")

fails. We now use a (imperfect) patched version which is attached. Imperfect by means that it assumes UTF-8 as encoding, something that should be read from the database column definition in the future.

ColumnType.scala.zip

rdegraafwhizzkit avatar Jun 30 '16 15:06 rdegraafwhizzkit