Skip to content

Commit

Permalink
sql 쿼리 Places 테이블명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
qzzloz committed Aug 22, 2024
1 parent 325ac67 commit 8d8251c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ List<Places> findPlacesInRange(
"(6371 * acos(cos(radians(:latitude)) * cos(radians(latitude)) * " +
"cos(radians(longitude) - radians(:longitude)) + sin(radians(:latitude)) * " +
"sin(radians(latitude)))) AS distance " +
"FROM Places " +
"FROM places " +
"HAVING distance < :radius " +
"ORDER BY distance", nativeQuery = true)
List<Places> findNearbyPlaces(@Param("latitude")double latitude,
Expand Down

0 comments on commit 8d8251c

Please sign in to comment.