summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/util
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/util')
-rw-r--r--core/src/ch/asynk/rustanddust/util/DB.java6
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) {