Skip to content

Commit

Permalink
Version 1.03
Browse files Browse the repository at this point in the history
Fixed missing information in ERROR lines (not PARSE ERROR mind you, they
are different.)
  • Loading branch information
NormanDunbar committed Aug 31, 2018
1 parent 18432bc commit 1542264
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion TraceMiner2/TraceMiner2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
#include "favicon.h"

// Version number.
const float version = 1.02;
const float version = 1.03;

// Various flags set according to the passed parameters.
tmOptions options;
Expand Down
19 changes: 13 additions & 6 deletions TraceMiner2/parseError.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,27 @@ bool tmTraceFile::parseERROR(const string &thisLine) {
string oraError = "ORA-" + std::to_string(errorCode);

if (i != mCursors.end()) {
unsigned temp = i->second->bindsLine();
string bindsLine = std::to_string(temp);
if (temp == 0) {
bindsLine = "No binds";
}

// Report the error in the report file.
if (!mOptions->html()) {
*mOfs << setw(MAXLINENUMBER) << mLineNumber << ' '
<< setw(MAXLINENUMBER) << ' ' << ' '
<< setw(MAXLINENUMBER) << ' ' << ' '
<< setw(MAXLINENUMBER) << ' ' << ' '
<< setw(MAXLINENUMBER) << i->second->sqlParseLine() << ' '
<< setw(MAXLINENUMBER) << bindsLine << ' '
<< setw(MAXLINENUMBER) << i->second->sqlLineNumber() << ' '
<< setw(MAXLINENUMBER) << ' ' << ' '
<< " ERROR: " << oraError << endl;
} else {
*mOfs << "<tr><td class=\"number\">" << mLineNumber << "</td>"
<< "<td>" << i->second->sqlParseLine() << "</td>"
<< "<td>" << bindsLine << "</td>"
<< "<td>" << i->second->sqlLineNumber() << "</td>"
<< "<td>" << "&nbsp;" << "</td>"
<< "<td>" << "&nbsp;" << "</td>"
<< "<td>" << "&nbsp;" << "</td>"
<< "<td>" << "&nbsp;" << "</td><td class=\"error_text\">"
<< "<td class=\"error_text\">"
<< " ERROR: " << oraError
<< "</td></tr>" << endl;

Expand Down

0 comments on commit 1542264

Please sign in to comment.