conversion.cpp 340 B

123456789101112
  1. #include "pg_compat.h"
  2. #include <yql/essentials/parser/pg_catalog/catalog.h>
  3. extern "C" {
  4. #include "catalog/namespace.h"
  5. #include "mb/pg_wchar.h"
  6. }
  7. Oid FindDefaultConversionProc(int32 for_encoding, int32 to_encoding) {
  8. return NYql::NPg::LookupConversion(pg_encoding_to_char(for_encoding), pg_encoding_to_char(to_encoding)).ProcId;
  9. }