Tag: cws_src680_qiq
User: fs      
Date: 06/05/12 07:11:35

Modified:
 /dba/connectivity/inc/connectivity/
  sqlnode.hxx

Log:
 #i51143# parseNodeToExecutableStatement now also taking a SQLParser - this 
allows nested sub queries

File Changes:

Directory: /dba/connectivity/inc/connectivity/
==============================================

File [changed]: sqlnode.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/sqlnode.hxx?r1=1.17.104.1&r2=1.17.104.2
Delta lines:  +15 -7
--------------------
--- sqlnode.hxx 10 May 2006 10:18:36 -0000      1.17.104.1
+++ sqlnode.hxx 12 May 2006 14:11:33 -0000      1.17.104.2
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: sqlnode.hxx,v $
  *
- *  $Revision: 1.17.104.1 $
+ *  $Revision: 1.17.104.2 $
  *
- *  last change: $Author: fs $ $Date: 2006/05/10 10:18:36 $
+ *  last change: $Author: fs $ $Date: 2006/05/12 14:11:33 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -79,7 +79,7 @@
 
 namespace connectivity
 {
-
+    class OSQLParser;
        class OSQLParseNode;
        class IParseContext;
 
@@ -99,6 +99,7 @@
            const ::com::sun::star::lang::Locale&       rLocale;
            const ::rtl::OUString                                       
aIdentifierQuote;
            const ::rtl::OUString                                       
aCatalogSeparator;
+        OSQLParser*                             pParser;
            ::com::sun::star::uno::Reference< 
::com::sun::star::util::XNumberFormatter > xFormatter;
            ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySet >    xField;
            ::com::sun::star::uno::Reference< 
::com::sun::star::container::XNameAccess > xQueries;  // see bParseToSDBCLevel
@@ -278,13 +279,20 @@
 
             @param  _out_rString
                 is an output parameter taking the resulting SQL statement
+
             @param  _rxConnection
                 the connection relative to which to parse. This must be an 
SDB-level connection (e.g.
                 support the XQueriesSupplier interface) for the method to be 
able to do all necessary
                 substitutions.
+
+            @param _rParser
+                the SQLParser used to create the node. This is needed in case 
we need to parse
+                sub queries which are present in the SQL statement - those sub 
queries need to be parsed,
+                too, to check whether they contain nested sub queries.
         */
         void parseNodeToExecutableStatement( ::rtl::OUString& _out_rString,
-            const ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection >& _rxConnection ) const;
+            const ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection >& _rxConnection,
+            OSQLParser& _rParser ) const;
 
                void parseNodeToStr(::rtl::OUString& rString,
                                                        const 
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > & 
xMeta,




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to