Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Banners Tracks raises an error [PostgreSQL] #24679

Closed
twister65 opened this issue Apr 22, 2019 · 9 comments
Closed

Delete Banners Tracks raises an error [PostgreSQL] #24679

twister65 opened this issue Apr 22, 2019 · 9 comments

Comments

@twister65
Copy link
Contributor

twister65 commented Apr 22, 2019

Steps to reproduce the issue

Generate banner tracks with impression and click.
Go to Components -> Banners -> Tracks.
Click the Delete Tracks button.

Expected result

All tracks are deleted.

Actual result

delete_tracks

System information (as much as possible)

php: Linux pc-salon 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64
dbserver: postgresql
dbversion: 9.5.6
dbcollation: C
dbconnectioncollation: UTF8
phpversion: 7.2.15-0ubuntu0.18.04.2
server: Apache/2.4.29 (Ubuntu)
sapi_name: apache2handler
version: Joomla! 3.9.5 Stable [ Amani ] 9-April-2019 15:00 GMT
platform: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
useragent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/73.0.3683.86 Chrome/73.0.3683.86 Safari/537.36

Additional comments

PostgreSQL does not accept integers for the where clause.
I suggest to replace:


by:
$where = 'true';

@richard67
Copy link
Member

richard67 commented Apr 22, 2019

Or maybe better by $where = '1 = 1';
"1 = 1" resolves to "TRUE" in every kind of SQL database.

@ghost ghost added the J3 Issue label Apr 22, 2019
@richard67
Copy link
Member

It's a good question if we have the same mistake elswhere in code.

@twister65
Copy link
Contributor Author

It's a good question if we have the same mistake elswhere in code.

@richard67
Copy link
Member

It seems those 2 are the only ones I can find, too. Question is how could we test the 2nd one?

@richard67
Copy link
Member

And who will make the PR? If you want I can do it.

@twister65
Copy link
Contributor Author

Good question: How to to purge all maps from the taxonomy ?
Yes, you can make the PR if you want.
Thanks.

@richard67
Copy link
Member

@twister65 Please test PR #24682 .

For the other place I make other PR to be tested by code review, since where clause is not necessary there at all.

@ghost
Copy link

ghost commented Apr 22, 2019

Closed as having Pull Request.

@richard67
Copy link
Member

@twister65 Other PR is #24683 , please test, too, if possible.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants