-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed incorrect saving of UInt128 if >Int128.Max #142
- Loading branch information
1 parent
c94153e
commit 283d0d0
Showing
5 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
{ | ||
internal abstract class IntegerType : ClickHouseType | ||
{ | ||
public virtual bool Signed => true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
namespace ClickHouse.Client.Types | ||
using System.Numerics; | ||
using ClickHouse.Client.Formats; | ||
|
||
namespace ClickHouse.Client.Types | ||
{ | ||
internal class UInt128Type : AbstractBigIntegerType | ||
{ | ||
public override int Size => 16; | ||
|
||
public override string ToString() => "UInt128"; | ||
|
||
public override bool Signed => false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
namespace ClickHouse.Client.Types | ||
using System.Numerics; | ||
using ClickHouse.Client.Formats; | ||
|
||
namespace ClickHouse.Client.Types | ||
{ | ||
internal class UInt256Type : AbstractBigIntegerType | ||
{ | ||
public override int Size => 32; | ||
|
||
public override string ToString() => "UInt256"; | ||
|
||
public override bool Signed => false; | ||
} | ||
} |