-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify inet/cidr array type conversion
In spg__col_value, allow overridding of inet/cidr type conversion using conversion procs. Use goto to jump to the default case if a conversion proc is set for the array type. In spg__array_col_value, use convertor argument, and fallthrough to keep things simpler and avoid encoding issues. The fallthrough will probably not happen in the typical case due to changes in spg__col_value, but if parse_pg_array is called directly, it probably could be reached.
- Loading branch information
1 parent
9034693
commit 9266a26
Showing
1 changed file
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters