Skip to content

Commit

Permalink
Adding 2 more custom DataReader methods. Closes #150 #151 (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkWanderer authored Aug 6, 2022
1 parent d2e1e76 commit 4fe2093
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ClickHouse.Client/ADO/Readers/ClickHouseDataReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.IO;
using System.Net;
using System.Net.Http;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -155,6 +156,12 @@ public override bool IsDBNull(int ordinal)
// Custom extension
public ITuple GetTuple(int ordinal) => (ITuple)GetValue(ordinal);

// Custom extension
public sbyte GetSByte(int ordinal) => (sbyte)GetValue(ordinal);

// Custom extension
public BigInteger GetBigInteger(int ordinal) => (BigInteger)GetValue(ordinal);

public override bool Read()
{
if (reader.PeekChar() == -1)
Expand Down

0 comments on commit 4fe2093

Please sign in to comment.