When copying tables from Axion to another database that doesn't
already have the tables defined I get a "getPrimaryKeys() is not supported" error message :
Copy failed: getImportedKeys() is not supported(SQL Error Code=0)
And the following stack trace in the squirrel-sql.log
637422 [Thread-16] ERROR net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor - handleError: exception=getPrimaryKeys() is not supported
java.sql.SQLException: getPrimaryKeys() is not supported
at org.axiondb.jdbc.AxionDatabaseMetaData.getPrimaryKeys(AxionDatabaseMetaData.java:906)
at net.sourceforge.squirrel_sql.plugins.dbcopy.util.DBUtil.getPKColumnList(DBUtil.java:138)
at net.sourceforge.squirrel_sql.plugins.dbcopy.util.DBUtil.getPKColumnString(DBUtil.java:107)
at net.sourceforge.squirrel_sql.plugins.dbcopy.util.DBUtil.getCreateTableSql(DBUtil.java:882)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor.createTable(CopyExecutor.java:640)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor._execute(CopyExecutor.java:156)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor.access$000(CopyExecutor.java:54)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor$1.run(CopyExecutor.java:117)
at java.lang.Thread.run(Unknown Source)
A: The Axion JDBC driver doesn't support inspecting it's table's primary keys.
Turn off "Copy primary key definitions" in the "Global Preferences : DBCopy" tab.