Skip to content

Commit

Permalink
fix COMMIT string equality
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Osheroff committed Sep 3, 2015
1 parent c63c8f0 commit 5ad6f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/zendesk/maxwell/MaxwellParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private LinkedList<MaxwellAbstractRowsEvent> getTransactionEvents() throws Excep
case MySQLConstants.QUERY_EVENT:
QueryEvent qe = (QueryEvent) v4Event;

if ( qe.getSql().toString() == "COMMIT" ) {
if ( qe.getSql().toString().equals("COMMIT") ) {
// some storage engines(?) will output a "COMMIT" QUERY_EVENT instead of a XID_EVENT.
// not sure exactly how to trigger this.
if ( !list.isEmpty() )
Expand Down

0 comments on commit 5ad6f5c

Please sign in to comment.