summaryrefslogtreecommitdiffstats
path: root/dbaccess/qa
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-16 11:30:05 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-16 11:30:05 +0000
commit7ae553787440a8ec61d6a123646b72b4ad5642e1 (patch)
treeb5630ae72a5088d91fb88765fc7a908c7b241770 /dbaccess/qa
parentINTEGRATION: CWS rptchart02 (1.9.30); FILE MERGED (diff)
downloadcore-7ae553787440a8ec61d6a123646b72b4ad5642e1.tar.gz
core-7ae553787440a8ec61d6a123646b72b4ad5642e1.zip
INTEGRATION: CWS rptchart02 (1.7.6); FILE MERGED
2008/05/27 08:57:42 oj 1.7.6.1: i84290 a little advanced error message
Diffstat (limited to 'dbaccess/qa')
-rwxr-xr-xdbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java b/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java
index ca4a42f26212..6e1a2a63b048 100755
--- a/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java
+++ b/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SingleSelectQueryComposer.java,v $
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
* This file is part of OpenOffice.org.
*
@@ -196,15 +196,16 @@ public class SingleSelectQueryComposer extends ComplexTestCase
public void testSubQueries() throws Exception
{
m_composer.setQuery( "SELECT * from \"" + innerProductsQuery + "\"" );
- XTablesSupplier suppTables = (XTablesSupplier)UnoRuntime.queryInterface(
+ final XTablesSupplier suppTables = (XTablesSupplier)UnoRuntime.queryInterface(
XTablesSupplier.class, m_composer );
- XNameAccess tables = suppTables.getTables();
+ final XNameAccess tables = suppTables.getTables();
assure( "a simple SELECT * FROM <query> could not be parsed",
tables != null && tables.hasByName( innerProductsQuery ) );
- String sInnerCommand = m_database.getDatabase().getDataSource().getQueryDefinition( innerProductsQuery ).getCommand();
- String sExecutableQuery = m_composer.getQueryWithSubstitution();
- assure( "simple query containing a sub query improperly parsed to SDBC level statement",
+ final String sInnerCommand = m_database.getDatabase().getDataSource().getQueryDefinition( innerProductsQuery ).getCommand();
+ final String sExecutableQuery = m_composer.getQueryWithSubstitution();
+ assure( "simple query containing a sub query improperly parsed to SDBC level statement: \n1. " + sExecutableQuery
+ + "\n2. " + "SELECT * FROM ( " + sInnerCommand + " ) AS \"" + innerProductsQuery + "\"",
sExecutableQuery.equals( "SELECT * FROM ( " + sInnerCommand + " ) AS \"" + innerProductsQuery + "\"") );
}