Skip to content

Commit e257c8c

Browse files
committed
Support for long types in @Where.Condition
1 parent 0c42c0c commit e257c8c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

asql-api/src/main/java/me/zort/sqllib/api/ObjectMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Object obtainValue(SQLConnection connection,
2424
Type type);
2525
}
2626

27-
interface TypeAdapter<T> {
27+
interface TypeAdapter<T> { // TODO: Tests
2828
/**
2929
* Deserializes value from database to Java value.
3030
* This value is commonly set to field value in corresponding

asql-core/src/main/java/me/zort/sqllib/mapping/annotation/Where.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static WhereStatement<?> build(Conditional<?> parent, Where annotation, P
4242
case BT:
4343
case LT:
4444
try {
45-
int number = Integer.parseInt(value);
45+
long number = Long.parseLong(value);
4646
if (condition.type().equals(Condition.Type.BT)) {
4747
where.bt(condition.column(), number);
4848
} else {

0 commit comments

Comments
 (0)