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

MySQL 8.0 pacman case sensitivity issue reading information_schema #7626

Closed
sbulen opened this issue Nov 22, 2022 · 1 comment
Closed

MySQL 8.0 pacman case sensitivity issue reading information_schema #7626

sbulen opened this issue Nov 22, 2022 · 1 comment

Comments

@sbulen
Copy link
Contributor

sbulen commented Nov 22, 2022

Description

Upon reinstalling a mod, you may get errors:

Database Error: 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 ',,,,,,)
			SELECT ,,,,,,
			FROM smf_message_bookmarks_old' at line 1

But the root cause is earlier in the error log:
2: Undefined array key "column_name"

In DbPackages-mysql.php, line 257:

$same_col[] = $row['column_name'];

Steps to reproduce

  1. Mysql 8 - attempt to reinstall a mod, keeping the data from the prior installation

Environment (complete as necessary)

  • Version/Git revision: 2.1.3
  • Database Type: mysql
  • Database Version: 8
  • PHP Version: 8.1

Additional information/references

From the forum:
https://www.simplemachines.org/community/index.php?msg=4131633

In this pic, you can see that DbPackages-mysql.php is looking for 'column_name', but what is returned from a query to INFORMATION_SCHEMA is 'COLUMN_NAME':
pacman_issue

@live627
Copy link
Contributor

live627 commented Dec 20, 2022

Steps to reproduce

  1. Mysql 8 - attempt to reinstall a mod, keeping the data from the prior installation
  1. It must db_create_table with mode update

@sbulen sbulen modified the milestones: 2.1.4, 2.1.5 Mar 12, 2023
Sesquipedalian added a commit to Sesquipedalian/SMF that referenced this issue May 10, 2024
Sesquipedalian added a commit to Sesquipedalian/SMF that referenced this issue Jun 26, 2024
Fixes SimpleMachines#7626

Signed-off-by: Jon Stovell <jonstovell@gmail.com>

# Conflicts:
#	Sources/DbPackages-mysql.php
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