From 1a29ecde02ff0fadf280fbaefd58a3c54629883b Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Wed, 14 Feb 2024 10:20:42 +0100 Subject: [PATCH] fix(SQLParser): remove fwd header #4453 --- Data/include/Poco/Data/SQLParser.h | 42 ---------------------------- Data/testsuite/src/SQLParserTest.cpp | 16 ++++++++--- 2 files changed, 12 insertions(+), 46 deletions(-) delete mode 100644 Data/include/Poco/Data/SQLParser.h diff --git a/Data/include/Poco/Data/SQLParser.h b/Data/include/Poco/Data/SQLParser.h deleted file mode 100644 index 5d4fd42d6..000000000 --- a/Data/include/Poco/Data/SQLParser.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// SQLParser.h -// -// Library: Data -// Package: SQLParser -// Module: SQLParser -// -// Forward header for the SQLParser class. -// -// Copyright (c) 2006, Applied Informatics Software Engineering GmbH. -// and Contributors. -// -// SPDX-License-Identifier: BSL-1.0 -// - - -#ifndef Data_SQLParser_INCLUDED -#define Data_SQLParser_INCLUDED - -#include "Poco/Config.h" - - -#ifndef POCO_DATA_NO_SQL_PARSER - - -#include "src/SQLParser.h" -#include "SQLParserResult.h" -#include "util/sqlhelper.h" - - -namespace Poco { -namespace Data { - - namespace Parser = hsql; // namespace Poco::Data::Parser - -} } // namespace Poco::Data - - -#endif // POCO_DATA_NO_SQL_PARSER - - -#endif // Data_SQLParser_INCLUDED diff --git a/Data/testsuite/src/SQLParserTest.cpp b/Data/testsuite/src/SQLParserTest.cpp index 8914826a8..49416ad20 100644 --- a/Data/testsuite/src/SQLParserTest.cpp +++ b/Data/testsuite/src/SQLParserTest.cpp @@ -9,13 +9,21 @@ #include "SQLParserTest.h" -#include "CppUnit/TestCaller.h" -#include "CppUnit/TestSuite.h" -#include #ifndef POCO_DATA_NO_SQL_PARSER -#include "Poco/Data/SQLParser.h" +#include "CppUnit/TestCaller.h" +#include "CppUnit/TestSuite.h" +#include +#include "SQLParser.h" + + +namespace Poco { +namespace Data { + +namespace Parser = hsql; // namespace Poco::Data::Parser + +}} using namespace Poco::Data::Parser;