internal NpgsqlCopyTextReader(NpgsqlRawCopyStream underlying) : base(underlying)
 {
     if (underlying.IsBinary)
     {
         throw new Exception("Can't use a binary copy stream for text reading");
     }
 }
Example #2
0
 internal NpgsqlCopyTextWriter(NpgsqlConnector connector, NpgsqlRawCopyStream underlying) : base(underlying)
 {
     if (underlying.IsBinary)
     {
         throw connector.Break(new Exception("Can't use a binary copy stream for text writing"));
     }
 }