fxied conflicts.

This commit is contained in:
wenshao
2017-09-28 09:40:16 +08:00
6 changed files with 33 additions and 11 deletions
@@ -453,7 +453,7 @@ public class StatFilter extends FilterEventAdapter implements StatFilterMBean {
sqlStat.decrementRunningCount();
sqlStat.addExecuteTime(statement.getLastExecuteType(), firstResult, nanos);
statement.setLastExecuteTimeNano(nanos);
if ((!statement.isFirstResultSet()) && statement.getLastExecuteType() == StatementExecuteType.Execute) {
if ((!firstResult) && statement.getLastExecuteType() == StatementExecuteType.Execute) {
try {
int updateCount = statement.getUpdateCount();
sqlStat.addUpdateCount(updateCount);
@@ -18,7 +18,7 @@ package com.alibaba.druid.sql.ast.expr;
import com.alibaba.druid.sql.ast.SQLExprImpl;
import com.alibaba.druid.sql.ast.SQLObject;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
git
import java.util.Collections;
import java.util.List;
@@ -584,11 +584,11 @@ public class SQLEvalVisitorUtils {
String text = x.getValue();
long[] words = new long[text.length() / 64 + 1];
for (int i = 0; i < text.length(); ++i) {
for (int i = text.length()-1; i >= 0 ; --i) {
char ch = text.charAt(i);
if (ch == '1') {
int wordIndex = i >> 6;
words[wordIndex] |= (1L << i);
words[wordIndex] |= (1L << (text.length() - 1 - i));
}
}
@@ -600,7 +600,7 @@ public class SQLEvalVisitorUtils {
byte[] bytes = new byte[words.length * 8];
for (int i = 0; i < words.length; ++i) {
Utils.putLong(bytes, i * 8, words[i]);
Utils.putLong(bytes, (words.length-1-i) * 8, words[i]);
}
val = new BigInteger(bytes);