|
a/src/query/docseqdb.cpp |
|
b/src/query/docseqdb.cpp |
|
... |
|
... |
32 |
m_rescnt(-1),
|
32 |
m_rescnt(-1),
|
33 |
m_queryBuildAbstract(true),
|
33 |
m_queryBuildAbstract(true),
|
34 |
m_queryReplaceAbstract(false),
|
34 |
m_queryReplaceAbstract(false),
|
35 |
m_isFiltered(false),
|
35 |
m_isFiltered(false),
|
36 |
m_isSorted(false),
|
36 |
m_isSorted(false),
|
37 |
m_needSetQuery(false)
|
37 |
m_needSetQuery(false),
|
|
|
38 |
m_lastSQStatus(true)
|
38 |
{
|
39 |
{
|
39 |
}
|
40 |
}
|
40 |
|
41 |
|
41 |
DocSequenceDb::~DocSequenceDb()
|
42 |
DocSequenceDb::~DocSequenceDb()
|
42 |
{
|
43 |
{
|
|
... |
|
... |
225 |
|
226 |
|
226 |
bool DocSequenceDb::setQuery()
|
227 |
bool DocSequenceDb::setQuery()
|
227 |
{
|
228 |
{
|
228 |
if (!m_needSetQuery)
|
229 |
if (!m_needSetQuery)
|
229 |
return true;
|
230 |
return true;
|
|
|
231 |
|
|
|
232 |
m_needSetQuery = false;
|
230 |
m_rescnt = -1;
|
233 |
m_rescnt = -1;
|
231 |
m_needSetQuery = !m_q->setQuery(m_fsdata);
|
234 |
m_lastSQStatus = m_q->setQuery(m_fsdata);
|
232 |
if (m_needSetQuery) {
|
235 |
if (!m_lastSQStatus) {
|
233 |
m_reason = m_q->getReason();
|
236 |
m_reason = m_q->getReason();
|
234 |
LOGERR(("DocSequenceDb::setQuery: rclquery::setQuery failed: %s\n",
|
237 |
LOGERR(("DocSequenceDb::setQuery: rclquery::setQuery failed: %s\n",
|
235 |
m_reason.c_str()));
|
238 |
m_reason.c_str()));
|
236 |
}
|
239 |
}
|
237 |
return !m_needSetQuery;
|
240 |
return m_lastSQStatus;
|
238 |
}
|
241 |
}
|