textAssignment registers all assignment casts. This comprises only the source types.
(builtInCasts map[id.Cast]casts.Cast)
| 32 | |
| 33 | // textAssignment registers all assignment casts. This comprises only the source types. |
| 34 | func textAssignment(builtInCasts map[id.Cast]casts.Cast) { |
| 35 | framework.MustAddAssignmentTypeCast(builtInCasts, framework.TypeCast{ |
| 36 | FromType: pgtypes.Text, |
| 37 | ToType: pgtypes.InternalChar, |
| 38 | Function: func(ctx *sql.Context, val any, _, targetType *pgtypes.DoltgresType) (any, error) { |
| 39 | return handleStringCast(val.(string), targetType) |
| 40 | }, |
| 41 | }) |
| 42 | } |
| 43 | |
| 44 | // textImplicit registers all implicit casts. This comprises only the source types. |
| 45 | func textImplicit(builtInCasts map[id.Cast]casts.Cast) { |
no test coverage detected