Warn about deprecation of old config methods instead of breaking existing code
This patch was authored and released by @gwynne.
Previously working code which uses the now-deprecated PostgresConfiguration
type with the .postgres
factory methods (rather than its replacement, SQLPostgresConfiguration
) while specifying neither a data encoder or decoder was throwing compiler errors. Such code now issues the intended deprecation warning instead, while continuing to work as before.
Fixes #211