Q: I get "Copy Failed" when copying to a FireBird database with the following error message:
A: Firebird needs the table definition transaction committed before it will allow
insert statements to occur. To fix this, make sure that "commit table transaction
before inserts" is checked in the Global Preferences section.
Q: I get an error message stating "Source database table
A: This feature called "keyword-checking" uses the "keywords" reported by the JDBC driver
to find column names in the source table copy set that cannot be used as column names in the destination
database. However, this is too aggressive in some cases as some databases (like DB2)
report keywords that can also be used as column names. So, now this checking can be
disabled. The configuration is available in
Q: How does the DBCopy Plugin determine the column type to create when copying a table to a
database session for a different database type when the table isnt already defined.
A: See the following data-type mapping
table. A future version of DBCopy plugin
will allow these mappings to be customized. Hoewever, currently they are hard-coded.
And the following stack trace in the squirrel-sql.log
A: PostgreSQL doesn't appear to handle table creation and record insertion well if Auto-Commit is disabled - even
when committing after the table is created before records are inserted. However, if the table already exists, it appears
to be safe to disable Auto-Commit. So, ensure that Auto-Commit is enabled when copying to a PostgreSQL database if the table
definitions need to be created as part of the copy operation.
Q: I get the following error message when I attempt to copy to Axion :
And the following stack trace in the squirrel-sql.log
A: The word after "Encountered: " probably indicates a column name that is not a valid name for a
column in an Axion table. Rename the column in the source database and try again. Also, be sure to turn on
"Test column names in copied tables to see if they are valid for the destination database" in the
"Global Preferences : DBCopy" tab
Copy Failed: GDS Exception. 335544569. Dynamic SQL Error
SQL error code = -204
Table unknown
ACCOUNTS
At line 1, column 13.(SQL Error code = 335544569)
How to address this?
How
do I resolve this?
"File" -> "Global Preferences" -> "DBCopy" -> "Column Type Mapping"
Copy Failed: ERROR: current transaction is aborted, command ignored until end of transaction block(SQL Error Code=0)
265625 [Thread-7] ERROR net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor - handleError: exception=ERROR: current transaction is aborted, commands ignored until end of transaction block
java.sql.SQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1471)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1256)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:175)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:389)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:314)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:264)
at net.sourceforge.squirrel_sql.plugins.dbcopy.util.DBUtil.executeUpdate(DBUtil.java:234)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor.createTable(CopyExecutor.java:625)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor._execute(CopyExecutor.java:155)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor.access$000(CopyExecutor.java:53)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor$1.run(CopyExecutor.java:116)
at java.lang.Thread.run(Unknown Source)
Copy Failed: org.axiondb.parser.ParseException: Parse error at line 8, column 9. Encountered: LINK
java.sql.SQLException: org.axiondb.parser.ParseException: Parse error at line 8, column 9. Encountered: LINK
at org.axiondb.util.ExceptionConverter.convert(ExceptionConverter.java:68)
at org.axiondb.jdbc.BaseAxionStatement.parseCommand(BaseAxionStatement.java:153)
at org.axiondb.jdbc.AxionStatement.executeUpdate(AxionStatement.java:137)
at net.sourceforge.squirrel_sql.plugins.dbcopy.util.DBUtil.executeUpdate(DBUtil.java:234)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor.createTable(CopyExecutor.java:629)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor._execute(CopyExecutor.java:155)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor.access$000(CopyExecutor.java:53)
at net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor$1.run(CopyExecutor.java:116)
at java.lang.Thread.run(Unknown Source)