On Android, is AbstractWindowedCursor.isBlob () guaranteed to be correct?

I see that it AbstractWindowedCursorhas column type validation methods. This is a great convenience! But when I look at the class CursorWindow, I see that the documentation for isBlob()says:

Checks if the field contains blob or null.

So, does this mean that if I run this check, say a String column containing a NULL value, will it return true? If so, this means that I cannot rely on this method as a guaranteed type check.

+1
source share
1 answer

Checks if the field contains blob or null.

So, does this mean that if I run this check, say, a String column that contains a NULL value, will it return true?

, , "" ( , ).

, isNull() "true", , , ( isXxxx , 'field' 'column').

isNull() "false", isBlob(), true, blob.

+1

Source: https://habr.com/ru/post/1785293/


All Articles