#800 StringIndexOutOfBoundsException in CreateDataScript 3.0.2

3.0.2
closed
Rob Manning
5
2010-03-15
2009-11-02
Luzifer42
No

2009-11-02 15:07:39,657 [Thread-5] ERROR net.sourceforge.squirrel_sql.client.session.MessagePanel - privateShowMessage: Exception was String index out of range: 3
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.substring(Unknown Source)
at net.sourceforge.squirrel_sql.plugins.sqlscript.table_script.CreateDataScriptCommand.getNanos(CreateDataScriptCommand.java:447)
at net.sourceforge.squirrel_sql.plugins.sqlscript.table_script.CreateDataScriptCommand.genInserts(CreateDataScriptCommand.java:288)
at net.sourceforge.squirrel_sql.plugins.sqlscript.table_script.CreateDataScriptCommand$1.run(CreateDataScriptCommand.java:138)
at net.sourceforge.squirrel_sql.fw.util.TaskExecuter.run(TaskExecuter.java:82)
at java.lang.Thread.run(Unknown Source)

The problem might occur if the length of the String from ts.getNanos() is shorter than dialect.getTimestampMaximumFractionalDigits()

Discussion

  • Rob Manning
    Rob Manning
    2010-02-28

    Hello,

    It appears that this was fixed. Can you give it another try using the latest snapshot or version 3.0.3 and let us know. If it still appears to be broken, please let us know what database and driver version you are using, along with a script to create the table and populate it with enough data to trigger the exception. If we don't hear from you in two weeks this issue will be automatically closed.

    Rob

    Rob

     
  • Rob Manning
    Rob Manning
    2010-02-28

    • assigned_to: joco01 --> manningr
    • status: open --> pending
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed