SQLite returned cutted strings
I have a database(SQLite) in application and every time when I use
cursor.getString(position), the return is cutted automatically.
Sample: in database the string of field has a 30 chars used, but when run
the query, the return is 20 chars for the app.
I use cursor.query... instruction... with rawQuery is the same results.
See:
Cursor cursor = db.query(true, "mmvv", new String[]{"Version"},
"factory=?", new String[]{"AUDI"}, null, null, "Version", null);
cursor.moveToFirst();
while (!cursor.isAfterLast()) {
all.add(cursor.getString(0).toString());
cursor.moveToNext();
}
The version of cars has a many chars... in database the chars be ok. Why
the sqlite return cutted strings?
Sorry my trash english...
Thanks!
No comments:
Post a Comment