0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 08:34:38 +03:00

CallbackDatasource has been fixed

This commit is contained in:
Arin Alexander 2016-03-09 15:48:26 +03:00
parent 5de7c36c8f
commit 16727fef18
2 changed files with 2 additions and 4 deletions

View File

@ -594,7 +594,7 @@ bool CallbackDatasource::next(){
m_currentRow++;
bool result = false;
emit changePos(CallbackInfo::Next,result);
m_eof = !checkNextRecord(m_currentRow);
m_eof = !result; // !checkNextRecord(m_currentRow);
return result;
} else return false;
}

View File

@ -145,8 +145,6 @@ class IConnectionController{
public:
virtual void addConnectionDesc(ConnectionDesc* connection) = 0;
virtual void changeConnectionDesc(ConnectionDesc* connection) = 0;
virtual bool checkConnectionDesc(ConnectionDesc* connection) = 0;
virtual QString lastError() const = 0;
};
class QueryDesc : public QObject{
@ -367,7 +365,7 @@ class CallbackDatasource :public ICallbackDatasource, public IDataSource {
public:
CallbackDatasource(): m_currentRow(-1), m_eof(false){}
bool next();
bool hasNext(){ return !m_eof;}
bool hasNext(){ if (!m_eof) return checkNextRecord(m_currentRow);}
bool prior(){ if (m_currentRow !=-1) {m_currentRow--; return true;} else return false;}
void first();
void last(){}