2016-11-24 3 views
0

複雑なWHERE節が必要です。Droidpartsの複雑なWHERE節は機能しません

final Where where1 = new Where("col_1", Is.IN, "1, 2, 3"); 
final Where where2 = new Where("col_2", Is.IN, "a, b, c"); 
final Where where = where1.and(where2); 

いますが、すべての引数が一緒に入れているとの結果が失敗した見るように、結果に私は

SELECT on table 'table', selection: 'col_1 IN (?) AND (col_2 IN (?))', 
selectionArgs: '[1, 2, 3, a, b, c]', columns: 'null', orderBy: 'null', 
groupBy: 'null', having: 'null', distinct: 'false', limit: 'null'. 

を得ました。

答えて

0

であるべき

final Where where1 = new Where("col_1", Is.IN, 1, 2, 3); 
final Where where2 = new Where("col_2", Is.IN, "a", "b", "c"); 
関連する問題