Tag: cws_src680_dba24c User: fs Date: 2007-10-12 21:21:57+0000 Modified: dba/dbaccess/qa/complex/dbaccess/QueryInQuery.java
Log: OB001 is superseded by css.sdb.ErrorCondition.PARSER_CYCLIC_SUBQUERIES File Changes: Directory: /dba/dbaccess/qa/complex/dbaccess/ ============================================= File [changed]: QueryInQuery.java Url: http://dba.openoffice.org/source/browse/dba/dbaccess/qa/complex/dbaccess/QueryInQuery.java?r1=1.3&r2=1.3.78.1 Delta lines: +5 -4 ------------------- --- QueryInQuery.java 2007-01-15 14:29:35+0000 1.3 +++ QueryInQuery.java 2007-10-12 21:21:55+0000 1.3.78.1 @@ -4,9 +4,9 @@ * * $RCSfile: QueryInQuery.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.3.78.1 $ * - * last change: $Author: vg $ $Date: 2007/01/15 14:29:35 $ + * last change: $Author: fs $ $Date: 2007/10/12 21:21:55 $ * * 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.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 @@ 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 ); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
