Skip to content

Commit 7fb9eab

Browse files
committed
Merge pull request #1 from sarbyn/sarbyn-patch-1
Fix wrong string comparison
2 parents 9815d85 + f933faa commit 7fb9eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/sqlcipher/database/SQLiteDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,7 @@ public void rawExecSQL(String sql){
18631863
// Log commit statements along with the most recently executed
18641864
// SQL statement for disambiguation. Note that instance
18651865
// equality to COMMIT_SQL is safe here.
1866-
if (sql == COMMIT_SQL) {
1866+
if (sql.equals(COMMIT_SQL)) {
18671867
logTimeStat(mLastSqlStatement, timeStart, COMMIT_SQL);
18681868
} else {
18691869
logTimeStat(sql, timeStart, null);

0 commit comments

Comments
 (0)