Soriento icon indicating copy to clipboard operation
Soriento copied to clipboard

Select simple type value from db

Open dimparf opened this issue 8 years ago • 2 comments

db.asyncQueryBySql[String]("select name from User") is not working. scala.ScalaReflectionException: constructor String encapsulates multiple overloaded alternatives and cannot be treated as a method. Consider invoking <offending symbol>.asTerm.alternatives and manually picking the required method at scala.reflect.api.Symbols$SymbolApi$class.asMethod(Symbols.scala:228) at scala.reflect.internal.Symbols$SymbolContextApiImpl.asMethod(Symbols.scala:84) at com.emotioncity.soriento.ReflectionUtils$.constructor(ReflectionUtils.scala:28) at com.emotioncity.soriento.loadbyname.DocumentFromConstructor.(ClassNameReadersRegistry.scala:36)

dimparf avatar Jun 28 '16 00:06 dimparf

I probably introduced this bug. Is there a test case for it?

allComputableThings avatar Jul 07 '16 00:07 allComputableThings

Never mind -- i'll add one.

allComputableThings avatar Jul 07 '16 00:07 allComputableThings