We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
create table ... (val decimal(10,2) DEFAULT 4.2)
The text was updated successfully, but these errors were encountered:
use basic types for Column.Default #1032
3c71e5c
Fixing error: gob: type types.MyDecimal...
目前利用gob序列化Table表结构.
Table
Table.OriginalTableColumns.Columns[i].Default有类型interface{}, 可被赋值为各种tidb类型.
Table.OriginalTableColumns.Columns[i].Default
interface{}
// tidb.types func (d *Datum) GetValue() interface{} {
Only types that will be transferred as implementations of interface values need to be registered.
修复: 将赋予Default的值转换为基础类型. 则不需要 gob.Register()
Default
gob.Register()
Sorry, something went wrong.
badb0ef
No branches or pull requests
The text was updated successfully, but these errors were encountered: