mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Merge pull request #1473 from sqlitebrowser/filter_strings
Support for operator filters for strings
This commit is contained in:
@@ -612,6 +612,11 @@ void ExtendedTableWidget::useAsFilter(const QString& filterOperator, bool binary
|
||||
else
|
||||
value = data.toString();
|
||||
|
||||
// When Containing filter is requested (empty operator) and the value starts with
|
||||
// an operator character, the character is escaped.
|
||||
if (filterOperator.isEmpty())
|
||||
value.replace(QRegExp("^(<|>|=)"), Settings::getValue("databrowser", "filter_escape").toString() + QString("\\1"));
|
||||
|
||||
// If binary operator, the cell data is used as first value and
|
||||
// the second value must be added by the user.
|
||||
if (binary)
|
||||
|
||||
Reference in New Issue
Block a user