首页 > 代码库 > Data too long for column 'pay_channel' at row 1

Data too long for column 'pay_channel' at row 1

 

报错日志:

08:42:12|Possible DeadLoop: 502|1.3438185|b7faf7a5-a229-4230-811d-017e4d3f13d3|b7faf7a5-a229-4230-811d-017e4d3f13d3

08:53:40|ReceiveData_WebProxy exp:MySql.Data.MySqlClient.MySqlException (0x80004005): Data too long for column ‘pay_channel‘ at row 1

   在 MySql.Data.MySqlClient.MySqlStream.ReadPacket()

   在 MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)

   在 MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)

   在 MySql.Data.MySqlClient.MySqlDataReader.NextResult()

   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)

   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()



从日志里可以得知是pay_channel字段长度不够引起的

解决方法:  增加这个字段长度就可以解决


 



本文出自 “Holy” 博客,请务必保留此出处http://holy2010.blog.51cto.com/1086044/1950429

Data too long for column 'pay_channel' at row 1