0
Squeryl今天沒有。我有一個令人討厭的錯誤,至今我都沒有成功解決。Squeryl ORM使用Long,bigints和運算符失敗?
Postgres所引發的錯誤:
Caused by: java.lang.RuntimeException: Exception while executing statement : ERR
OR: operator does not exist: character varying = bigint
Hint: No operator matches the given name and argument type(s). You might need
to add explicit type casts.
Position: 722
不知道爲什麼這個錯誤被拋出,但我在一個BIGINT字段,存儲斯卡拉長,然後在其上運行的查詢。難道我做錯了什麼?
所有這些都運行在Squeryl ORM上,所以我90%確信我的類型是正確的。我的代碼也在編譯。
編輯
這實際上是我用來查詢的代碼。不多...
from(DB.relays)(r =>
where((r.userId === userId))
select (r))
當你做了一件很糟糕的事情時,需要真正的性格承認。有一個upvote。 – 2012-07-10 23:23:18
謝謝你,我的眼淚不再那麼鹹了。 – crockpotveggies 2012-07-11 00:51:23