diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-23 18:17:57 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-23 18:17:57 +0100 |
commit | 912ff43e9f59946fa304e0220070e04079bf2414 (patch) | |
tree | a7d9440ee0dab906ef58d324bcfaa2511cb823eb /core/src/ch/asynk/rustanddust/util | |
parent | 18db2f47e4808eda33f24e1a8571f62344524f71 (diff) | |
download | RustAndDust-912ff43e9f59946fa304e0220070e04079bf2414.zip RustAndDust-912ff43e9f59946fa304e0220070e04079bf2414.tar.gz |
DB.NO_RECORDS -> DB.NO_RECORD
Diffstat (limited to 'core/src/ch/asynk/rustanddust/util')
-rw-r--r-- | core/src/ch/asynk/rustanddust/util/DB.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/util/DB.java b/core/src/ch/asynk/rustanddust/util/DB.java index a55b682..cef1e52 100644 --- a/core/src/ch/asynk/rustanddust/util/DB.java +++ b/core/src/ch/asynk/rustanddust/util/DB.java @@ -17,7 +17,7 @@ public class DB { private static final int DB_SCHEMA_VERSION = 1; - public static final int NO_RECORDS = -1; + public static final int NO_RECORD = -1; private static final String DIGEST = "SHA-256"; private static final SimpleDateFormat df = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss"); @@ -160,7 +160,7 @@ public class DB public int getPlayerId(boolean hash, String s) { - int ret = NO_RECORDS; + int ret = NO_RECORD; String sql = (hash ? GET_PLAYER_ID_FROM_HASH : GET_PLAYER_ID_FROM_GMAIL); try { DatabaseCursor cursor = query(String.format(sql, s)); @@ -194,7 +194,7 @@ public class DB public int getGameId(int you, int opponent, int battle, int mode) { - int ret = NO_RECORDS; + int ret = NO_RECORD; try { DatabaseCursor cursor = query(String.format(GET_GAME_ID, you, opponent, battle, mode)); if (cursor.getCount() > 0) { |