Improving limit method using LIMIT,OFFSET#393
Conversation
|
@ushiday Thank you for posting these fixes. I prefer the LIMIT and OFFSET approach as a more modern one that is easier to understand.
|
|
Any possibility to add DB version check, please? Any not backward compatible changes are a bit harder to approve. |
|
We should find out when LIMIT+OFFET were added to LUW (Linux/Unix/Windows) Db2 as well. |
|
If it is necessary to take into account the DB2 old version, Improving limit method using OVER() #392 |
|
Still thinking about this one. I have no idea about DB2, but still. I can feel the pain of some older corporate (hi banks) DB system admins, trying to upgrade and start to fail DB stuff. That's why I'm asking, if there is any possibility to split codebase, based on the connection/driver/etc. If not, I would most probably suggest to go forward with older approach. |
To improve #391 , I would like to suggest a code that uses LIMIT,OFFSET. This method is supported in recent DB2 versions, is consistent with other database software, and is simple.
However, this method is not available to older version DB2 users. (I think I'm in the minority now...)