Correct check on SQLiteRawStatement.getColumnName
The function sqlite3_column_name() can be called on any prepared statement; it is not a function of the data row that may have been retrieved. Therefore, the bounds check for getColumnName() should use sqlite3_column_count() and not sqlite3_data_count() (which requires a row of data in the prepared statement). Two test cases have been added. Flag: EXEMPT bug-fix Bug: 359676342 Test: atest * FrameworksCoreTests:android.database * CtsDatabaseTestCases Change-Id: Id3908af9a43c1580ecaa3cf2b85f8c2e50204489
Loading
Please register or sign in to comment