Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select simple type value from db #27

Open
dimparf opened this issue Jun 28, 2016 · 2 comments
Open

Select simple type value from db #27

dimparf opened this issue Jun 28, 2016 · 2 comments
Labels

Comments

@dimparf
Copy link
Owner

dimparf commented Jun 28, 2016

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 dimparf added the bug label Jun 28, 2016
@allComputableThings
Copy link

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

@allComputableThings
Copy link

Never mind -- i'll add one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants