From b2f54a81c495d2554e6a63379afbb298d1baf273 Mon Sep 17 00:00:00 2001 From: jacques Date: Thu, 17 Mar 2022 18:27:01 +0100 Subject: [PATCH] Use drugs tablename --- .../main/java/net/foucry/pilldroid/dao/MedicinesDAO.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/dao/MedicinesDAO.java b/app/src/main/java/net/foucry/pilldroid/dao/MedicinesDAO.java index 7bd987e..97d8ff9 100644 --- a/app/src/main/java/net/foucry/pilldroid/dao/MedicinesDAO.java +++ b/app/src/main/java/net/foucry/pilldroid/dao/MedicinesDAO.java @@ -9,12 +9,12 @@ import java.util.List; @Dao public interface MedicinesDAO { - @Query("SELECT * FROM medicines") + @Query("SELECT * FROM drugs") List getAllMedicines(); - @Query("SELECT * FROM medicines WHERE cip13 = :cip13") + @Query("SELECT * FROM drugs WHERE cip13 = :cip13") Medicine getMedicineByCIP13(String cip13); - @Query("SELECT count(*) FROM medicines") + @Query("SELECT count(*) FROM drugs") int getMedicineCount(); }