× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
NielsGron reported 2012-10-18T16:44:54Z  · tariqrahiman last modified 2012-10-24T23:53:26Z

sqlimport command needs to display warnings as the import is occuring


Dev
Fun Fun
funfun
QA
Niels Gron
NielsGron
Priority Low
Complexity Unknown
Component App - FluidShell - Command
Version 12.0

If I run an sqlimport, and the INSERTS are faiing, the errors and warnings are not logged to the console as they happen, instead they are queued and displayed at the end.  List is what the stack trace in the logs looks like :

10/18 07:33:07.753 CoreLibImportThread.process
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'registration_date' cannot be null
    ....
    at com.aquafold.aquacore.close.rdbms.tool.CoreLibImportThread.process(CoreLibImportThread.java:261)
    at com.aquafold.aquacore.close.rdbms.tool.CoreLibImportThread.run(CoreLibImportThread.java:104)
    at com.aquafold.aquacore.close.rdbms.tool.CoreLibImport.execute(CoreLibImport.java:43)
    at com.aquafold.datastudio.tools.shell.cmd.SQLImportCommand.execute(SQLImportCommand.java:263)

You can see CoreLibImportThread._warningErrorObjects for the queued list of warnings and exception.  CoreLibImport.execute() will run the thread and then print the warnings.  Also, for the exceptions, we should just print the e.getMessage() to console, and not the stacktrace to the log file.

Issue #7818

Closed
Fixed
Resolved 2012-10-21T00:57:12Z
 
 
Completion
No due date
Fixed Build trunk/29841, 29863
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017