Created
July 30, 2018 09:23
-
-
Save freaksgit/839a6060eb529739d0a550d1e6554fbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Query("SELECT * FROM " + RoomCard.TABLE_NAME + " WHERE " + RoomCard.COLUMN_TYPE + " = " + Card.TYPE_QUEST) | |
Maybe<List<RoomQuestCardEmbedded>> getAllQuestCards(); | |
public class RoomCard { | |
public static final String COLUMN_TYPE = "card_type"; | |
... | |
} | |
public class Card{ | |
public static final String TYPE_QUEST = "quest"; | |
... | |
} | |
error: There is a problem with the query: [SQLITE_ERROR] SQL error or missing database (no such column: quest) | |
Maybe<List<RoomQuestCardEmbedded>> getAllQuestCards(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SOLVED:
...RoomCard.COLUMN_TYPE + " = \'" + Card.TYPE_QUEST + "\'")