You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is need to generate unique aliases to use inside SQL queries.
This issue was created to continue discussion from #56
It would be best if aliases inside each query was starting from constant number (0 or 1). It would make debugging a lot easier. Solutions 1 and 2 don't meet this.
I've edited my post.
In the 2nd option we could make Counter thread static to achieve thread-safety and have numbering starting from 0 at least within thread.
In the 4th we could pass current numbering somehow to subquery's SqlResult, but then we would have to update parent SqlResult numbering as well.
There is need to generate unique aliases to use inside SQL queries.
This issue was created to continue discussion from #56
It would be best if aliases inside each query was starting from constant number (0 or 1). It would make debugging a lot easier. Solutions 1 and 2 don't meet this.
Few solutions:
1. Random Generator:
2. Cyclic Generator:
3. Generator in
Query
class:The problem is that,
Parent
is not copied byCopy
method.4.
SqlResult
classWe can't place generator inside
SqlResult
class, because in nested query scenario it is not shared among all queries.The text was updated successfully, but these errors were encountered: