阅读背景:

Rails 4.1 - 在没有类型转换的情况下写入MySQL数据库

来源:互联网 

I have a column in my MySQL database which is of type TINYINT(1). I need to store actual integers in this column. The problem is, because of the column type, Rails 4.1 assumes this column contains only boolean values, so it typecasts all values besides 0 or 1 to be 0 when it writes to the database.I have a column in my MySQL database which is o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: