#800 StringIndexOutOfBoundsException in CreateDataScript 3.0.2


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()


  • Rob Manning

    Rob Manning - 2010-02-28


    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 Manning

    Rob Manning - 2010-02-28
    • assigned_to: joco01 --> manningr
    • status: open --> pending
  • SourceForge Robot

    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).

  • SourceForge Robot

    • status: pending --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks