- cond_tags = ['tags LIKE ? OR tags LIKE ? OR tags LIKE ? OR tags LIKE ?',
- ''+type+'='+value+'',
- ''+type+'='+value+';%',
- '%;'+type+'='+value+';%',
- '%;'+type+'='+value+'' ]
- elsif type
- cond_tags = ['tags LIKE ? OR tags LIKE ?',
- ''+type+'=%',
- '%;'+type+'=%' ]
- elsif value
- cond_tags = ['tags LIKE ? OR tags LIKE ?',
- '%='+value+';%',
- '%='+value+'' ]
+ cond_tags = ['tags LIKE ? OR tags LIKE ? OR tags LIKE ? OR tags LIKE ?',
+ ''+type+'='+value+'',
+ ''+type+'='+value+';%',
+ '%;'+type+'='+value+';%',
+ '%;'+type+'='+value+'' ]
+ elsif type
+ cond_tags = ['tags LIKE ? OR tags LIKE ?',
+ ''+type+'=%',
+ '%;'+type+'=%' ]
+ elsif value
+ cond_tags = ['tags LIKE ? OR tags LIKE ?',
+ '%='+value+';%',
+ '%='+value+'' ]