diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-08-06 06:34:54 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-08-06 06:34:54 +0000 |
commit | 3bacb997db0f636830442bc7ad61ae4269056e41 (patch) | |
tree | c07390900030eac789f5e63d3fbedb88dee77d4a /connectivity/source/simpledbt | |
parent | d8bf71bb51b1390ac7c220cdc304d712d0b89753 (diff) |
#90560# no OSimpleParseNode if we do not have a OSQLParseNode
Diffstat (limited to 'connectivity/source/simpledbt')
-rw-r--r-- | connectivity/source/simpledbt/parser_s.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/connectivity/source/simpledbt/parser_s.cxx b/connectivity/source/simpledbt/parser_s.cxx index fa8eb8a7ae32..5270f7085d92 100644 --- a/connectivity/source/simpledbt/parser_s.cxx +++ b/connectivity/source/simpledbt/parser_s.cxx @@ -2,9 +2,9 @@ * * $RCSfile: parser_s.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: fs $ $Date: 2001-07-25 13:28:40 $ + * last change: $Author: fs $ $Date: 2001-08-06 07:34:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -110,8 +110,11 @@ namespace connectivity ::rtl::Reference< simple::ISQLParseNode > OSimpleSQLParser::predicateTree(::rtl::OUString& rErrorMessage, const ::rtl::OUString& rStatement, const Reference< XNumberFormatter >& _rxFormatter, const Reference< XPropertySet >& _rxField) const { + OSimpleParseNode* pReturn = NULL; OSQLParseNode* pFullNode = const_cast<OSimpleSQLParser*>(this)->m_aFullParser.predicateTree(rErrorMessage, rStatement, _rxFormatter, _rxField); - return new OSimpleParseNode(pFullNode, sal_True); + if (pFullNode) + pReturn = new OSimpleParseNode(pFullNode, sal_True); + return pReturn; } //........................................................................ @@ -121,6 +124,9 @@ namespace connectivity /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.1 2001/07/25 13:28:40 fs + * initial checkin - main factory for load-on-demand usage of OSQLParser + * * * Revision 1.0 24.07.01 16:32:42 fs ************************************************************************/ |