8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00

Fixed bug CORE-3860 : Trace API: Faulty database filter crashes server

This commit is contained in:
hvlad 2012-06-24 09:13:53 +00:00
parent cfe2780375
commit 781d2e322b
2 changed files with 5 additions and 2 deletions

View File

@ -63,6 +63,9 @@ void AdminException::setLocation(const Firebird::PathName& file, int lineNumber)
fileName = file;
Firebird::string buffer;
buffer.printf("%s, line %d: %s", fileName.c_str(), lineNumber, text.c_str());
if (fileName.isEmpty())
buffer.printf("line %d: %s", lineNumber, text.c_str());
else
buffer.printf("%s, line %d: %s", fileName.c_str(), lineNumber, text.c_str());
text = buffer;
}

View File

@ -104,7 +104,7 @@ void InputStream::release()
const char* InputStream::getFileName() const
{
return NULL;
return "";
}
InputFile* InputStream::getInputFile()