Issue #48 resolved

org.h2.jdbc.JdbcSQLException: Value too long for column FILENAM

gubatron avatargubatron created an issue

Need to see if this error affects in any way the outcome of that search.

We need to either make the filename column a bit longer, or truncate the original filename before inserting it.

org.h2.jdbc.JdbcSQLException: Value too long for column "FILENAME VARCHAR_IGNORECASE(256) SELECTIVITY 95": "CAST('... (260)"; SQL statement: INSERT INTO Files (torrentId, fileName, json) VALUES (40, '...', '{"size":216052,"relativePath":"...long file name..."}') [22001-159] at org.h2.message.DbException.getJdbcSQLException( at org.h2.message.DbException.get( at org.h2.table.Column.validateConvertUpdateSequence( at org.h2.table.Table.validateConvertUpdateSequence( at org.h2.command.dml.Insert.insertRows( at org.h2.command.dml.Insert.update( at org.h2.command.CommandContainer.update( at org.h2.command.Command.executeUpdate( at org.h2.jdbc.JdbcStatement.executeUpdateInternal( at org.h2.jdbc.JdbcStatement.executeUpdate( at Source) at Source) at Source) at Source) at$LocalSearchTorrentDownloaderListener.TorrentDownloaderEvent(Unknown Source) at org.gudy.azureus2.core3.torrentdownloader.TorrentDownloaderFactory$TorrentDownloadRetrier$1.TorrentDownloaderEvent(Unknown Source) at org.gudy.azureus2.core3.torrentdownloader.impl.TorrentDownloaderImpl.notifyListener(Unknown Source) at org.gudy.azureus2.core3.torrentdownloader.impl.TorrentDownloaderImpl.runSupport(Unknown Source) at Source)

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.