Skip to content

Commit

Permalink
asdfoo2
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Jul 18, 2024
1 parent 6c0f474 commit d3d93c2
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private String createMultiCategorySQLWithSearch(Map<String, List<Facet>> facets,
return """
(
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id
Expand All @@ -125,7 +125,7 @@ fcn.concept_node_id IN (%s)
UNION
(
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet_category fc on fc.facet_category_id = facet.facet_category_id
Expand Down Expand Up @@ -192,7 +192,7 @@ private String createMultiCategorySQLNoSearch(Map<String, List<Facet>> facets, M
return """
(
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id
Expand All @@ -216,7 +216,7 @@ fcn.concept_node_id IN (%s)
UNION
(
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet_category fc on fc.facet_category_id = facet.facet_category_id
Expand Down Expand Up @@ -247,7 +247,7 @@ private String createSingleCategorySQLWithSearch(List<Facet> facets, String sear
return """
(
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id
Expand Down Expand Up @@ -290,7 +290,7 @@ AND facet.name IN (:facets)
)
)
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id
Expand All @@ -313,7 +313,7 @@ private String createSingleCategorySQLNoSearch(List<Facet> facets, MapSqlParamet
return """
(
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id
Expand Down Expand Up @@ -355,7 +355,7 @@ AND facet.name IN (:facets)
)
)
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id
Expand All @@ -376,7 +376,7 @@ private String createNoFacetSQLWithSearch(String search, MapSqlParameterSource p
params.addValue("search", search);
return """
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id
Expand All @@ -403,7 +403,7 @@ private String createNoFacetSQLNoSearch(MapSqlParameterSource params) {
// this is the easy one!
return """
SELECT
facet.facet_id, count(*)
facet.facet_id, count(*) as facet_count
FROM
facet
JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id
Expand Down

0 comments on commit d3d93c2

Please sign in to comment.