lower consistency

This commit is contained in:
Karl Mortensen 2015-05-12 11:35:57 -04:00
parent e90f5c7203
commit fd532e68b8
2 changed files with 5 additions and 5 deletions

View File

@ -202,9 +202,9 @@ public class EventDB {
return "1"; return "1";
} }
String strip = StringUtils.strip(filter.getText()); String strip = StringUtils.strip(filter.getText());
return "((" + MED_DESCRIPTION_COLUMN + " LIKE '%" + strip + "%') OR (" // NON-NLS return "((LOWER(" + MED_DESCRIPTION_COLUMN + ") LIKE LOWER('%" + strip + "%')) OR (LOWER(" // NON-NLS
+ FULL_DESCRIPTION_COLUMN + " LIKE '%" + strip + "%') OR (" // NON-NLS + FULL_DESCRIPTION_COLUMN + ") LIKE LOWER('%" + strip + "%')) OR (LOWER(" // NON-NLS
+ SHORT_DESCRIPTION_COLUMN + " LIKE '%" + strip + "%'))"; // NON-NLS + SHORT_DESCRIPTION_COLUMN + ") LIKE LOWER('%" + strip + "%'))"; // NON-NLS
} else { } else {
return "1"; return "1";
} }

View File

@ -677,7 +677,7 @@ public final class ImageGalleryController {
*/ */
class CopyAnalyzedFiles extends InnerTask { class CopyAnalyzedFiles extends InnerTask {
final private String DRAWABLE_QUERY = "LOWER(name) LIKE '%." + StringUtils.join(ImageGalleryModule.getAllSupportedExtensions(), "' or LOWER(name) LIKE '%.") + "'"; final private String DRAWABLE_QUERY = "LOWER(name) LIKE LOWER('%." + StringUtils.join(ImageGalleryModule.getAllSupportedExtensions(), "') or LOWER(name) LIKE LOWER('%.") + "')";
private ProgressHandle progressHandle = ProgressHandleFactory.createHandle("populating analyzed image/video database"); private ProgressHandle progressHandle = ProgressHandleFactory.createHandle("populating analyzed image/video database");
@ -779,7 +779,7 @@ public final class ImageGalleryController {
* check for supported images * check for supported images
*/ */
// (name like '.jpg' or name like '.png' ...) // (name like '.jpg' or name like '.png' ...)
private final String DRAWABLE_QUERY = "(LOWER(name) LIKE LOWER('%." + StringUtils.join(ImageGalleryModule.getAllSupportedExtensions(), "') or LOWER(name) LIKE '%.") + "') "; private final String DRAWABLE_QUERY = "(LOWER(name) LIKE LOWER('%." + StringUtils.join(ImageGalleryModule.getAllSupportedExtensions(), "') or LOWER(name) LIKE LOWER('%.") + "')) ";
private ProgressHandle progressHandle = ProgressHandleFactory.createHandle("prepopulating image/video database"); private ProgressHandle progressHandle = ProgressHandleFactory.createHandle("prepopulating image/video database");