Commit e8b79891 by Daniel Lee

mysql: adds mapping for int/long

parent 8b11712f
...@@ -194,6 +194,8 @@ func (e MysqlExecutor) getTypedRowData(types []*sql.ColumnType, rows *core.Rows) ...@@ -194,6 +194,8 @@ func (e MysqlExecutor) getTypedRowData(types []*sql.ColumnType, rows *core.Rows)
values[i] = new(string) values[i] = new(string)
case mysql.FieldTypeNameVarChar: case mysql.FieldTypeNameVarChar:
values[i] = new(string) values[i] = new(string)
case mysql.FieldTypeNameLong:
values[i] = new(int)
case mysql.FieldTypeNameLongLong: case mysql.FieldTypeNameLongLong:
values[i] = new(int64) values[i] = new(int64)
case mysql.FieldTypeNameDouble: case mysql.FieldTypeNameDouble:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment