๊ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค
DB : PostgreSQL. v6.22.0์ ์ฌ์ฉํ์ ๋ ์๋ํ์ต๋๋ค. > v6.22.0์์๋ ์๋ํ์ง ์์ต๋๋ค.
QueryException in Connection.php line 729:
SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "as"
LINE 1: ...st"."created_by" where (LOWER("post"."CAST(title" as "TEXT)"...
^ (SQL: select count(*) as aggregate from (select row_number() OVER (ORDER BY publish_date_start DESC) AS rownum, "post".*, "post_category"."name" as "category_name", "post_channel"."name" as "channel_name", "users"."name" from "post" inner join "post_category" on "post_category"."id" = "post"."post_category_id" inner join "post_channel" on "post_channel"."id" = "post_category"."post_channel_id" inner join "users" on "users"."id" = "post"."created_by" where (LOWER("post"."CAST(title" as "TEXT)") LIKE %b% or LOWER("CAST(users"."name" as "TEXT)") LIKE %b%) and "post"."deleted_at" is null and "post"."deleted_at" is null order by "publish_date_start" desc) count_row_table)
์ ๊ณ ํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. PR # 849์ ๊ด๋ จ์ด์๋ ๊ฒ ๊ฐ์ต๋๋ค. PostgreSQL์ ์ฌ์ฉํ์ง ์์์ผ๋ฏ๋ก ๋๊ตฐ๊ฐ ๊ฐ๋ฅํ ์์ ์ ์ํด PR์ ์ ์ถํ ์ ์์ต๋๊น? ๊ธฐํ๊ฐ์์ ๋ postrgeSQL ์ฑ์ ์ค์ ํ๋ ค๊ณ ํฉ๋๋ค. ๋ถํธ์ ๋๋ ค ์ฃ์กํฉ๋๋ค.
์ฌ๋ฌ๋ถ, ์์ PR์ด์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋์ง ํ์ธํด ์ฃผ์๊ฒ ์ต๋๊น? ๊ฐ์ฌ!
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ ๊ณ ํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. PR # 849์ ๊ด๋ จ์ด์๋ ๊ฒ ๊ฐ์ต๋๋ค. PostgreSQL์ ์ฌ์ฉํ์ง ์์์ผ๋ฏ๋ก ๋๊ตฐ๊ฐ ๊ฐ๋ฅํ ์์ ์ ์ํด PR์ ์ ์ถํ ์ ์์ต๋๊น? ๊ธฐํ๊ฐ์์ ๋ postrgeSQL ์ฑ์ ์ค์ ํ๋ ค๊ณ ํฉ๋๋ค. ๋ถํธ์ ๋๋ ค ์ฃ์กํฉ๋๋ค.