@@ -107,17 +107,7 @@ namespace {
107107 return result.Defined ();
108108 }
109109
110- template <typename T>
111- bool TryParse (TStringBuf value, T& result, TString& err, void * parseParam) {
112- Y_UNUSED (value);
113- Y_UNUSED (result);
114- Y_UNUSED (err);
115- Y_UNUSED (parseParam);
116- Y_ABORT (" TryParse with parseParam is unimplemented" );
117- }
118-
119- template <>
120- bool TryParse (TStringBuf value, NPg::TConvertResult& result, TString& err, void * typeDesc) {
110+ bool TryParse (TStringBuf value, NPg::TConvertResult& result, TString& err, const NScheme::TTypeDesc* typeDesc) {
121111 TString unescaped;
122112 if (!CheckedUnescape (value, unescaped)) {
123113 err = MakeError<NPg::TConvertResult>();
@@ -233,9 +223,9 @@ namespace {
233223 return Conv (c, v, pool, conv);
234224 }
235225
236- static bool Make (TCell& c, TStringBuf v, TMemoryPool& pool, TString& err, TConverter<T, TStringBuf> conv, void * parseParam) {
226+ static bool Make (TCell& c, TStringBuf v, TMemoryPool& pool, TString& err, TConverter<T, TStringBuf> conv, const NScheme::TTypeDesc * parseParam) {
237227 T t;
238- if (!TryParse<T> (v, t, err, parseParam)) {
228+ if (!TryParse (v, t, err, parseParam)) {
239229 return false ;
240230 }
241231
0 commit comments