Closed tperalta82 closed 4 years ago
Also, on your config.sample.php you have servername='myserver'; which doesn't have 3 chars, but has 8.
The config.php
file is used, not config.sample.php
. The config.sample.php
exists only for end user to create config.php
from it once.
Would you please create PR for that. I've counted 6 CREATE TABLE
statements (in xhprof_runs.php
and each of db adapter classes) where length of server_id
column needs to be increased.
As per a previous #97 PR where I changed the table schema because server_id was just too small, here is a sample insert that will fail:
Will throw:
if you change "development" to let's say, dev, it will work.
Also, on your
config.sample.php
you haveservername='myserver';
which doesn't have 3 chars, but has 8.On the previous PR you mentioned that strict comes disabled by default, maybe on previous versions of mysql.
Tested on mysql default package from ubuntu 16.04, as well as the .deb package from mysql.com and they both come with strict_mode on, so it does not truncate the values, it just throws anerror and doesn't insert anything, personally I think it should have a bigger char allowance.
Before mysql 5.7.7 this was not enabled by default: http://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_strict_mode
This is not a bug, anyways.