[4.0][com_fields] convert to prepared sql#25657
[4.0][com_fields] convert to prepared sql#25657HLeithner merged 51 commits intojoomla:4.0-devfrom alikon:patch-116
Conversation
Co-Authored-By: SharkyKZ <sharkykz@gmail.com>
Co-Authored-By: SharkyKZ <sharkykz@gmail.com>
Co-Authored-By: SharkyKZ <sharkykz@gmail.com>
Co-Authored-By: Quy <quy@fluxbb.org>
|
I have tested this item ✅ successfully on b1b76f6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25657. |
|
@alikon In a previous review, @SharkyKZ pointed out that you can't use Furthermore, I've just checked the getListQuery There are 2 alternative ways to solve it:
Please @Quy and @SharkyKZ discuss that on Glip, if necessary, so that there is common sense between you both for future reviews. And please @wilsonge take a note of this comment here and the issue it describes. I think we might have this problem in other list queries, where depending on the combination of filter criteria there might be some |
|
part of me have liked too much the "black magic art" like |
|
adding a piece of magic like |
|
@alikon Problem when using the other possible solution, traditional syntax, in a few months someone will come and make a PR to change them all to Sure we can discuss that on Friday. |
Doesn't sound ugly to me if done only one time at the top of the query and not before every |
|
@richard67 Each |
|
@Quy Oh, you are right. In this PR here it's ok. Sorry for the rumor. But I still think we should be aware that it might be a problem elsewhere, or become a problem if someone wants to change "classical" syntax to |
|
Maybe |
|
So or so sorry for rumors. Here in this PR it is ok now. Is too late here now to start, but I have to find time soon to test this PR. I'll try latest on weekend. |
|
I have tested this item ✅ successfully on b1b76f6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25657. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25657. |
|
Thanks |
Co-Authored-By: SharkyKZ <sharkykz@gmail.com> Co-Authored-By: Quy <quy@fluxbb.org> Co-authored-by: George Wilson <georgejameswilson@googlemail.com>
Summary of Changes
use prepared statement for SQL
Testing Instructions
test com_fields
Expected result
works as before
Actual result
N/A