Skip to content

Instantly share code, notes, and snippets.

@benjaminjackman
Created April 22, 2010 17:15
Show Gist options
  • Save benjaminjackman/375501 to your computer and use it in GitHub Desktop.
Save benjaminjackman/375501 to your computer and use it in GitHub Desktop.
Squeryl/src/main/scala/org/squeryl/dsl/QueryDsl.scala:210: type mismatch;
found : org.squeryl.Query[org.squeryl.dsl.Measures[QueryDsl.this.LongType]]
required: org.squeryl.Query[QueryDsl.this.LongType]
Note that implicit conversions are not applicable because they are ambiguous:
both method singleColComputeQuery2ScalarQuery in trait QueryDsl of type [T](org.squeryl.Query[org.squeryl.dsl.Measures[T]])QueryDsl.this.ScalarQuery[T]
and method singleColComputeQuery2Scalar in trait QueryDsl of type [T](org.squeryl.Query[org.squeryl.dsl.Measures[T]])T
are possible conversion functions from org.squeryl.Query[org.squeryl.dsl.Measures[QueryDsl.this.LongType]] to org.squeryl.Query[QueryDsl.this.LongType]
def forUpdate = _inner.forUpdate
^
Squeryl/src/main/scala/org/squeryl/dsl/QueryDsl.scala:224: type mismatch;
found : CountSubQueryableQuery.this.q.type (with underlying type org.squeryl.Queryable[_])
required: org.squeryl.Queryable[_$1] where type _$1
q.invokeYield(rsm, rs)
^
Squeryl/src/main/scala/org/squeryl/dsl/QueryDsl.scala:241: type mismatch;
found : org.squeryl.Query[org.squeryl.dsl.Measures[T]]
required: org.squeryl.Query[T]
Note that implicit conversions are not applicable because they are ambiguous:
both method singleColComputeQuery2ScalarQuery in trait QueryDsl of type [T](org.squeryl.Query[org.squeryl.dsl.Measures[T]])QueryDsl.this.ScalarQuery[T]
and method singleColComputeQuery2Scalar in trait QueryDsl of type [T](org.squeryl.Query[org.squeryl.dsl.Measures[T]])T
are possible conversion functions from org.squeryl.Query[org.squeryl.dsl.Measures[T]] to org.squeryl.Query[T]
def forUpdate = q.forUpdate
^
Squeryl/src/main/scala/org/squeryl/Table.scala:241: value id is not a member of T
a.id
^
Squeryl/src/main/scala/org/squeryl/Table.scala:259: value id is not a member of T
a.id
^
Squeryl/src/main/scala/org/squeryl/Table.scala:266: ambiguous implicit values:
both method __thisDsl in trait QueryDsl of type => org.squeryl.dsl.QueryDsl
and value dsl of type org.squeryl.dsl.QueryDsl
match expected type org.squeryl.dsl.QueryDsl
val deleteCount = this.delete(q)
^
Squeryl/src/main/scala/org/squeryl/Table.scala:267: type mismatch;
found : Int(1)
required: Boolean
assert(deleteCount <= 1, "Query :\n" + q.dumpAst + "\nshould have deleted at most 1 row but has deleted " + deleteCount)
^
7 errors found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment