Tag: cws_src680_qiq
User: fs      
Date: 2006/06/27 13:22:12

Modified:
   dba/connectivity/qa/connectivity/tools/HsqlTableDescriptor.java

Log:
 creating a primary key via SDBCX not yet implementeed

File Changes:

Directory: /dba/connectivity/qa/connectivity/tools/
===================================================

File [changed]: HsqlTableDescriptor.java
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/qa/connectivity/tools/HsqlTableDescriptor.java?r1=1.2.54.1&r2=1.2.54.2
Delta lines:  +6 -3
-------------------
--- HsqlTableDescriptor.java    27 Jun 2006 20:13:51 -0000      1.2.54.1
+++ HsqlTableDescriptor.java    27 Jun 2006 20:22:10 -0000      1.2.54.2
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: HsqlTableDescriptor.java,v $
  *
- *  $Revision: 1.2.54.1 $
+ *  $Revision: 1.2.54.2 $
  *
- *  last change: $Author: fs $ $Date: 2006/06/27 20:13:51 $
+ *  last change: $Author: fs $ $Date: 2006/06/27 20:22:10 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -102,8 +102,11 @@
                 columnDesc.setPropertyValue( "Name", myColumns[i].Name );
                 columnDesc.setPropertyValue( "IsNullable", new Integer( 
myColumns[i].NotNull ? ColumnValue.NO_NULLS : ColumnValue.NULLABLE) );
                 columnDesc.setPropertyValue( "TypeName", myColumns[i].TypeName 
);
+                if ( myColumns[i].PrimaryKey )
+                    // not yet implemented
+                    throw new 
java.lang.UnsupportedOperationException("creating a primary key via SDBCX not 
yet implemented" );
             }
-            catch( Exception e ) { e.printStackTrace( System.err ); }
+            catch( com.sun.star.uno.Exception e ) { e.printStackTrace( 
System.err ); }
         }
 
         return tableDesc;




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

Reply via email to