You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using SQLAlchemy engine for MySQL connection and DataFrame.to_sql(), MySQLdb throws a DataError as a result of 64 bit integer out-of-range as a 32bit integer was created for the table schema.
Ah, yes, you found the relevant code. I suppose for mysql, the standard integer type is only 32 bit? (http://dev.mysql.com/doc/refman/5.0/en/integer-types.html) so we always should use bigint as we use int64 as the standard int in pandas?
Do you want to do a PR to change this and add a test?
Using SQLAlchemy engine for MySQL connection and DataFrame.to_sql(), MySQLdb throws a DataError as a result of 64 bit integer out-of-range as a 32bit integer was created for the table schema.
yields:
and inspection of the MySQL table schema shows the i64 column has MySQL datatype int(11), which is only 32bits wide. It should be a bigint instead.
The text was updated successfully, but these errors were encountered: