Skip to content

Commit

Permalink
[ticket/11438] Move backslash to concatenate the query strings correctly
Browse files Browse the repository at this point in the history
Was broken in 03d2c64

PHPBB3-11438
  • Loading branch information
nickvergessen committed Mar 15, 2013
1 parent dc7afd0 commit 8fe776d
Showing 1 changed file with 30 additions and 60 deletions.
90 changes: 30 additions & 60 deletions phpBB/docs/sphinx.sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,21 @@ source source_phpbb_{SPHINX_ID}_main
sql_query_pre = UPDATE phpbb_sphinx SET max_doc_id = (SELECT MAX(post_id) FROM phpbb_posts) WHERE counter_id = 1
sql_query_range = SELECT MIN(post_id), MAX(post_id) FROM phpbb_posts
sql_range_step = 5000
sql_query = SELECT
\
p.post_id AS id,
\
p.forum_id,
\
p.topic_id,
\
p.poster_id,
\
CASE WHEN p.post_id = t.topic_first_post_id THEN 1 ELSE 0 END as topic_first_post,
\
p.post_time,
\
p.post_subject,
\
p.post_subject as title,
\
p.post_text as data,
\
t.topic_last_post_time,
\
0 as deleted
\
FROM phpbb_posts p, phpbb_topics t
\
WHERE
\
p.topic_id = t.topic_id
\
sql_query = SELECT\
p.post_id AS id,\
p.forum_id,\
p.topic_id,\
p.poster_id,\
CASE WHEN p.post_id = t.topic_first_post_id THEN 1 ELSE 0 END as topic_first_post,\
p.post_time,\
p.post_subject,\
p.post_subject as title,\
p.post_text as data,\
t.topic_last_post_time,\
0 as deleted\
FROM phpbb_posts p, phpbb_topics t\
WHERE\
p.topic_id = t.topic_id\
AND p.post_id >= $start AND p.post_id <= $end
sql_query_post =
sql_query_post_index = UPDATE phpbb_sphinx SET max_doc_id = $maxid WHERE counter_id = 1
Expand All @@ -57,36 +42,21 @@ source source_phpbb_{SPHINX_ID}_delta : source_phpbb_{SPHINX_ID}_main
{
sql_query_range =
sql_range_step =
sql_query = SELECT
\
p.post_id AS id,
\
p.forum_id,
\
p.topic_id,
\
p.poster_id,
\
CASE WHEN p.post_id = t.topic_first_post_id THEN 1 ELSE 0 END as topic_first_post,
\
p.post_time,
\
p.post_subject,
\
p.post_subject as title,
\
p.post_text as data,
\
t.topic_last_post_time,
\
0 as deleted
\
FROM phpbb_posts p, phpbb_topics t
\
WHERE
\
p.topic_id = t.topic_id
\
sql_query = SELECT\
p.post_id AS id,\
p.forum_id,\
p.topic_id,\
p.poster_id,\
CASE WHEN p.post_id = t.topic_first_post_id THEN 1 ELSE 0 END as topic_first_post,\
p.post_time,\
p.post_subject,\
p.post_subject as title,\
p.post_text as data,\
t.topic_last_post_time,\
0 as deleted\
FROM phpbb_posts p, phpbb_topics t\
WHERE\
p.topic_id = t.topic_id\
AND p.post_id >= ( SELECT max_doc_id FROM phpbb_sphinx WHERE counter_id=1 )
sql_query_pre =
}
Expand Down

0 comments on commit 8fe776d

Please sign in to comment.