summaryrefslogtreecommitdiff
path: root/dbaccess/qa/complex
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-21 14:31:18 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-21 14:31:18 +0000
commite53ff7142d9f99e61bc0ff6015b77a79090a2352 (patch)
tree970913daafe2dfc07bd30b79b163de03b56826ef /dbaccess/qa/complex
parentf63664b93dea8fcee7c57cfb7fa3d23f175c8cb4 (diff)
INTEGRATION: CWS dba24c (1.3.78); FILE MERGED
2007/10/12 21:21:55 fs 1.3.78.1: OB001 is superseded by css.sdb.ErrorCondition.PARSER_CYCLIC_SUBQUERIES
Diffstat (limited to 'dbaccess/qa/complex')
-rw-r--r--dbaccess/qa/complex/dbaccess/QueryInQuery.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/dbaccess/qa/complex/dbaccess/QueryInQuery.java b/dbaccess/qa/complex/dbaccess/QueryInQuery.java
index 4159bc3d5fd0..b9f1daf0e8de 100644
--- a/dbaccess/qa/complex/dbaccess/QueryInQuery.java
+++ b/dbaccess/qa/complex/dbaccess/QueryInQuery.java
@@ -4,9 +4,9 @@
*
* $RCSfile: QueryInQuery.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: vg $ $Date: 2007-01-15 14:29:35 $
+ * last change: $Author: ihi $ $Date: 2007-11-21 15:31:18 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -39,6 +39,7 @@ import com.sun.star.lang.IllegalArgumentException;
import com.sun.star.lang.WrappedTargetException;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.sdb.CommandType;
+import com.sun.star.sdb.ErrorCondition;
import com.sun.star.sdb.XSingleSelectQueryComposer;
import com.sun.star.sdbc.SQLException;
import com.sun.star.uno.UnoRuntime;
@@ -208,7 +209,7 @@ public class QueryInQuery extends complexlib.ComplexTestCase
boolean caughtExpected = false;
try { rowSet.execute(); }
- catch ( SQLException e ) { caughtExpected = e.SQLState.equals( "OB001" ); }
+ catch ( SQLException e ) { caughtExpected = ( e.ErrorCode == -com.sun.star.sdb.ErrorCondition.PARSER_CYCLIC_SUB_QUERIES ); }
assure( "executing a query with cyclic nested sub queries should fail!", caughtExpected );
}