Skip to content

cursor.getInt() method can't return the right value of column that defined as TEXT #244

Closed
@CoconutByte

Description

@CoconutByte

When the column is defined as TEXT,I found that cursor.getInt() method can't return the right value of that column.

I repreduced this issue with the SQLCipher for Android test suite.
Condition: the value of the text should be larger than 10
Procedure:Change the value of the 'a' column from 5 to 500 in the TextAsIntegerTest.java file, then run the Tests,and the Text as integer Test will be failed.
It seems that corsor.getInt() just return the value of the first character in the Text.

Sqlcipher version:3.5.1

screenshot_2016-01-30-15-14-04
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions