Skip to content

Commit b73e88d

Browse files
authored
Merge pull request #55 from blobcity/develop
Issue #53 resolution
2 parents e47dafe + 4bc058d commit b73e88d

File tree

15 files changed

+41
-12
lines changed

15 files changed

+41
-12
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
FROM blobcity/java8-ubuntu
1919

20-
ENV DB_VER=1.7.9-alpha
20+
ENV DB_VER=1.7.10-alpha
2121

2222
RUN cd / && mkdir data
2323

bean-manager/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
<parent>
2323
<groupId>com.blobcity.pom</groupId>
2424
<artifactId>database</artifactId>
25-
<version>1.7.9-alpha</version>
25+
<version>1.7.10-alpha</version>
2626
</parent>
2727

2828
<groupId>com.blobcity.lib</groupId>

console-end-point/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
<parent>
2323
<groupId>com.blobcity.pom</groupId>
2424
<artifactId>database</artifactId>
25-
<version>1.7.9-alpha</version>
25+
<version>1.7.10-alpha</version>
2626
</parent>
2727

2828
<groupId>com.blobcity.lib</groupId>

distribution/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2121
<parent>
2222
<groupId>com.blobcity.pom</groupId>
2323
<artifactId>database</artifactId>
24-
<version>1.7.9-alpha</version>
24+
<version>1.7.10-alpha</version>
2525
</parent>
2626
<artifactId>blobcity-db</artifactId>
2727
<name>BlobCityDB Distribution</name>

engine/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
<parent>
2323
<groupId>com.blobcity.pom</groupId>
2424
<artifactId>database</artifactId>
25-
<version>1.7.9-alpha</version>
25+
<version>1.7.10-alpha</version>
2626
</parent>
2727

2828
<groupId>com.blobcity.lib.database</groupId>

engine/src/main/java/com/blobcity/db/sql/statements/DeleteExecutor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ private Set<String> filter(final String appId, final String tableName, ValueNod
142142
refValue = ((NumericConstantNode) rightOperand).getValue();
143143
} else if (rightOperand instanceof CharConstantNode) {
144144
refValue = ((CharConstantNode) rightOperand).getValue();
145+
} else if (rightOperand instanceof BooleanConstantNode) {
146+
refValue = ((BooleanConstantNode) rightOperand).getBooleanValue();
147+
} else if (rightOperand instanceof BitConstantNode) {
148+
refValue = ((BitConstantNode) rightOperand).getValue();
145149
}
146150

147151
logger.debug("selectKeysWithPattern({}, {}, {}, {}, {})",

engine/src/main/java/com/blobcity/db/sql/statements/SelectExecutor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ else if(whereClause == null && aggOperations.isEmpty() && resultColumns.size() >
285285
if(selectNode.isDistinct()) {
286286
keepDistinct(resultMap);
287287
}
288+
if(orderByList != null) {
289+
orderResult(appId, tableName, orderByList, resultMap);
290+
}
288291
return produceResult(appId, tableName, sqlString, resultMap, limit, startTime);
289292
}
290293

engine/src/main/java/com/blobcity/db/sql/statements/UpdateExecutor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ private Set<String> filter(final String appId, final String tableName, final Res
156156
refValue = ((NumericConstantNode) rightOperand).getValue();
157157
} else if (rightOperand instanceof CharConstantNode) {
158158
refValue = ((CharConstantNode) rightOperand).getValue();
159+
} else if (rightOperand instanceof BooleanConstantNode) {
160+
refValue = ((BooleanConstantNode) rightOperand).getBooleanValue();
161+
} else if (rightOperand instanceof BitConstantNode) {
162+
refValue = ((BitConstantNode) rightOperand).getValue();
159163
}
160164
int numResultCols = columns.size();
161165
List<String> resultColList = new ArrayList<>();

launcher/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2121
<parent>
2222
<groupId>com.blobcity.pom</groupId>
2323
<artifactId>database</artifactId>
24-
<version>1.7.9-alpha</version>
24+
<version>1.7.10-alpha</version>
2525
</parent>
2626

2727
<groupId>com.blobcity.lib.database</groupId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.blobcity.pom</groupId>
66
<artifactId>database</artifactId>
7-
<version>1.7.9-alpha</version>
7+
<version>1.7.10-alpha</version>
88
<packaging>pom</packaging>
99

1010
<name>Kraken [POM]</name>

0 commit comments

Comments
 (0)