Skip to content

Commit 060a8a6

Browse files
committed
fixed bug:Mongodb run command log
1 parent 205d615 commit 060a8a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/teasoft/beex/mongodb/MongodbSqlLib.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2584,8 +2584,12 @@ private void log(MongoSqlStruct struct) {
25842584
}
25852585
if (!hasId) map.put("_id", -1);
25862586

2587+
if (struct.getFilter() == null) { // fixed 2.4.0
2588+
sql.append("{}");
2589+
}
2590+
25872591
BasicDBObject projection = new BasicDBObject(map);
2588-
sql.append(",");
2592+
sql.append(", ");
25892593
sql.append(projection.toString());
25902594
}
25912595

0 commit comments

Comments
 (0)