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

[2.10.0RC1] rank is still an issue with MySQL 8 #1068

Closed
plegall opened this issue Aug 30, 2019 · 3 comments
Closed

[2.10.0RC1] rank is still an issue with MySQL 8 #1068

plegall opened this issue Aug 30, 2019 · 3 comments

Comments

@plegall
Copy link
Member

plegall commented Aug 30, 2019

As reported on topic 29518

[mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 16

SELECT
    c.*,
    user_representative_picture_id,
    nb_images,
    date_last,
    max_date_last,
    count_images,
    nb_categories,
    count_categories
  FROM piwigo_categories c
    INNER JOIN piwigo_user_cache_categories ucc
    ON id = cat_id
    AND user_id = 1
  WHERE id_uppercat is NULL
     
  ORDER BY rank

#1    my_error include\dblayer\functions_mysqli.inc.php(132)
#2    pwg_query include\category_cats.inc.php(55)
#3    include index.php(301)
@plegall
Copy link
Member Author

plegall commented Aug 30, 2019

As opposed to 8e9cb6d I have added generic code in pwg_query to escape the rank word in any SQL query.

That's not perfect, but less impact on code.

@eallion
Copy link

eallion commented Sep 28, 2019

i have this issues too

@VolkerBoedker
Copy link

VolkerBoedker commented Nov 7, 2019

I had an issue with the key word 'groups' and fixed is as described in my comment Piwigo/AMenuManager#5 (comment)

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

No branches or pull requests

3 participants