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

Exception: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'message' at row 1 #1215

Open
timhovius opened this issue May 18, 2016 · 2 comments

Comments

@timhovius
Copy link

timhovius commented May 18, 2016

I get the following error when I build a project

Exception: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'message' at row 1

Expected behaviour

Build a job, but it failed.

Actual behaviour

Get an error

Exception: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'message' at row 1

Environment info

Operating System: ubuntu 16.04
PHP Version: 7.0
MySQL Version: 5.6

@timhovius timhovius mentioned this issue May 28, 2016
8 tasks
@Chouchen
Copy link

Chouchen commented Jul 1, 2016

I got exactly the same error

RUNNING PLUGIN: \PHPCI\Plugin\PhpCodeSniffer
Exception: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'message' at row 1

@Chouchen
Copy link

Chouchen commented Jul 1, 2016

Changing phpci.build_error.message from varchar to textdid it.

ALTER TABLEbuild_errorCHANGEmessage message TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;

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