From 08a6181df9417168d7d1f49b574391349e30b61c Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 27 Aug 2019 16:07:48 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/dao/BookDao.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/dao/BookDao.kt b/app/src/main/java/io/legado/app/data/dao/BookDao.kt index b4dc49846..064eb29b2 100644 --- a/app/src/main/java/io/legado/app/data/dao/BookDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/BookDao.kt @@ -27,10 +27,10 @@ interface BookDao { @Query("SELECT * FROM books WHERE `name` in (:names)") fun findByName(vararg names: String): List - @Query("select * from books where bookUrl = :bookUrl") + @Query("SELECT * FROM books WHERE bookUrl = :bookUrl") fun getBook(bookUrl: String): Book? - @get:Query("select * from books order by durChapterTime desc limit 1") + @get:Query("SELECT * FROM books ORDER BY durChapterTime DESC limit 1") val lastReadBook: Book? @get:Query("SELECT bookUrl FROM books")