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

STRICT_ALL_TABLES #49

Open
nmalcolm opened this issue Jul 10, 2013 · 1 comment
Open

STRICT_ALL_TABLES #49

nmalcolm opened this issue Jul 10, 2013 · 1 comment

Comments

@nmalcolm
Copy link

XHProf.io doesn't work with sql_mode=STRICT_ALL_TABLES. The application is trying to insert invalid data in to the database. This is an issue for me as the software I develop should have STRICT_ALL_TABLES enabled during development.

PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'mu' at row 1' in /var/www/html/xhprof/xhprof/classes/data.php:258

PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1364 Field 'request_caller_id' doesn't have a default value' in /var/www/html/xhprof/xhprof/classes/data.php:185

@gms8994
Copy link

gms8994 commented Aug 26, 2013

Changing request_caller_id to allow null, and changing mu to allow signed integers causes the application to continue to work.

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

2 participants