aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-16 23:03:37 +0300
committerGravatar Vitaly Takmazov2022-12-16 23:03:37 +0300
commit528bc9cfd98489d59ed2cf4764c84c1805215c54 (patch)
treeb3d2b6c398d0a55d548011afc4fbe789e86f8323 /src
parent1534365e1d6ab23b1c31b27de74b8cd8e5176b48 (diff)
Make tag query SQL-compatible
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/service/TagServiceImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/service/TagServiceImpl.java b/src/main/java/com/juick/service/TagServiceImpl.java
index 1ae98c0f..07dffc23 100644
--- a/src/main/java/com/juick/service/TagServiceImpl.java
+++ b/src/main/java/com/juick/service/TagServiceImpl.java
@@ -106,10 +106,10 @@ public class TagServiceImpl extends BaseJdbcService implements TagService {
@Transactional(readOnly = true)
@Override
public boolean getTagNoIndex(final int tagId) {
- List<Integer> list = getJdbcTemplate().queryForList(
- "SELECT noindex FROM tags WHERE tag_id=?", Integer.class, tagId);
+ List<Boolean> list = getJdbcTemplate().queryForList(
+ "SELECT noindex FROM tags WHERE tag_id=?", Boolean.class, tagId);
- return !list.isEmpty() && list.get(0) == 1;
+ return !list.isEmpty() && list.get(0);
}
@Transactional