Skip to content

Commit

Permalink
This is the reason search cards were not fully initialized for tabula…
Browse files Browse the repository at this point in the history
…r files. (#7312)
  • Loading branch information
landreev committed Jan 11, 2021
1 parent d039784 commit d16b6ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ public DataFile findCheapAndEasy(Long id) {
// If content type indicates it's tabular data, spend 2 extra queries
// looking up the data table and tabular tags objects:

if (MIME_TYPE_TSV.equalsIgnoreCase(contentType)) {
if (MIME_TYPE_TSV.equalsIgnoreCase(contentType) || MIME_TYPE_TSV_ALT.equalsIgnoreCase(contentType)) {
Object[] dtResult;
try {
dtResult = (Object[]) em.createNativeQuery("SELECT ID, UNF, CASEQUANTITY, VARQUANTITY, ORIGINALFILEFORMAT, ORIGINALFILESIZE FROM dataTable WHERE DATAFILE_ID = " + id).getSingleResult();
Expand Down

0 comments on commit d16b6ee

Please sign in to comment.