Project

General

Profile

Evolution #11080

Harmony inheritance single table children SQLiteAdapterBase query syntax error

Added by Antoine C. over 3 years ago. Updated 11 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
Start date:
09/13/2017
Due date:
% Done:

0%

Estimated time:
Bdc:

Description

With management project in WorkerSQLiteAdapterBase and ManagerSQLiteAdapterBase query(final int id) method describe request with :

String selection = PersonContract.ALIASED_COL_ID + " = ?";
selection += PersonContract.COL_DISCRIMINATORCOLUMN + " = ?";

instead of

String selection = PersonContract.ALIASED_COL_ID + " = ?";
selection += " AND "
selection += PersonContract.COL_DISCRIMINATORCOLUMN + " = ?";

template code can be extract from update where correct where clause was defined :

final String whereClause = PersonContract.ALIASED_COL_ID
+ " = ?"
+ " AND " + PersonContract.COL_DISCRIMINATORCOLUMN + " = ?";

Recurrences

History

Also available in: Atom PDF

Go to top
Add picture from clipboard (Maximum size: 200 MB)