If we execute a JOIN (cross join or join with a ON clause) SQL statement:
SELECT person.name, student.name, age, specialized FROM person CROSS JOIN student;
We will get two columns those named "name". Now in NativeCursor, the index of second "name" will replace index of first "name" in columnNames, and users can never get the index of first "name" in columnNames. So, I provide a solution that if columnNames contains the "name", the second "name" will be rename to "name&JOIN1", and If we have three "name", the third will be named to "name&JOIN2", etc..
If we execute a JOIN (cross join or join with a
ON
clause) SQL statement:We will get two columns those named "name". Now in NativeCursor, the index of second "name" will replace index of first "name" in
columnNames
, and users can never get the index of first "name" incolumnNames
. So, I provide a solution that ifcolumnNames
contains the "name", the second "name" will be rename to "name&JOIN1", and If we have three "name", the third will be named to "name&JOIN2", etc..