B4A:
ExecQuery2 (QueryAsString, StringArgs() AsString) As android.database.Cursor
B4i:
ExecQuery2 (Query As String, Args As Object) As ResultSet
B4J:
ExecQuery2 (Query As String, Args As List) As ResultSet
After SQL 1.3 android.database.Cursor casts to ResultSet, but StringArgs is still
and we have to have separate code resolved in common source with help of #If ...
B4A:
#If B4A
sql1.ExecQuery2("SELECT col1 FROM table1 WHERE col3 = ?", Array As String(22))
#Else
sql1.ExecQuery2("SELECT col1 FROM table1 WHERE col3 = ?", Array(22))
#End If
I propose to make Args As Object in B4J, B4A for ExecQuery2, ExecNonQuery2, ExecQueryAsync, ExecQuerySingleResult2, ...
It will provide back compatibility with existing code, and allow to eliminate #If ...