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 strict mode, ugh #4

Open
Windows98FE opened this issue Jan 22, 2019 · 2 comments
Open

mysql strict mode, ugh #4

Windows98FE opened this issue Jan 22, 2019 · 2 comments

Comments

@Windows98FE
Copy link

Not sure if this would work but wouldn't putting this into function.php before any other queries are done, work when strict mode is enforced?

// Strict mode is a pile of trash that should never been enforced -.-
$sql->query('SET SESSION sql_mode = "TRADITIONAL,NO_AUTO_CREATE_USER"');

@Windows98FE
Copy link
Author

k so
$sql->query('SET SESSION sql_mode = "MYSQL40"');

will work, but the thing I had in the original post doesn't

might be nice to look into tbh since strict mode is... a fussy piece of trash

@ghost
Copy link

ghost commented Feb 7, 2021

Please kill yourself @Windows98FE

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

1 participant