User: rt      
Date: 2008-06-16 12:29:56+0000
Modified:
   dba/dbaccess/qa/complex/dbaccess/RowSet.java

Log:
 INTEGRATION: CWS rptchart02 (1.9.30); FILE MERGED
 2008/04/16 06:46:15 oj 1.9.30.2: RESYNC: (1.9-1.10); FILE MERGED
 2008/03/12 09:27:08 oj 1.9.30.1: clear parameter when setting new command

File Changes:

Directory: /dba/dbaccess/qa/complex/dbaccess/
=============================================

File [changed]: RowSet.java
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/qa/complex/dbaccess/RowSet.java?r1=1.10&r2=1.11
Delta lines:  +20 -0
--------------------
--- RowSet.java 2008-04-10 12:16:56+0000        1.10
+++ RowSet.java 2008-06-16 12:29:54+0000        1.11
@@ -812,6 +812,24 @@
             assure( "testing the parameters of a table failed" + 
e.getMessage(), false );
         }
     }
+       // 
--------------------------------------------------------------------------------------------------------
+       private void testParametersAfterNormalExecute()
+       {
+               try
+               {
+                       createRowSet( "SELECT * FROM \"customers\"", 
CommandType.COMMAND, true );
+                       m_rowSetProperties.setPropertyValue( "Command", "SELECT 
* FROM \"customers\" WHERE \"City\" = :city");  
+                       XParameters rowsetParams = 
(XParameters)UnoRuntime.queryInterface( XParameters.class,
+                               m_rowSet );
+                       rowsetParams.setString( 1, "London" );
+                       m_rowSet.execute();
+               }
+               catch( AssureException e ) { throw e; }
+               catch( Exception e )
+               {
+                       assure( "testing the parameters of a table failed" + 
e.getMessage(), false );
+               }
+       }
 
     // 
--------------------------------------------------------------------------------------------------------
     private void verifyParameters( String[] _paramNames, String _context ) 
throws com.sun.star.uno.Exception
@@ -929,6 +947,8 @@
         testParametrizedQuery();
         testParametersInFilter();
 
+               testParametersAfterNormalExecute();
+
         testParametersInteraction();
    }
 }
\ No newline at end of file




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

Reply via email to