diff options
author | Justin Clarke Casey | 2009-07-24 20:39:46 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-07-24 20:39:46 +0000 |
commit | 98687df56b00c252cae4aacafd364c8dd8c4fe17 (patch) | |
tree | b4d65009e086b9a254df12653457176e51719347 /OpenSim/Data/NHibernate/SByteType.cs | |
parent | * minor: spacing adjustment to retrigger panda (diff) | |
download | opensim-SC_OLD-98687df56b00c252cae4aacafd364c8dd8c4fe17.zip opensim-SC_OLD-98687df56b00c252cae4aacafd364c8dd8c4fe17.tar.gz opensim-SC_OLD-98687df56b00c252cae4aacafd364c8dd8c4fe17.tar.bz2 opensim-SC_OLD-98687df56b00c252cae4aacafd364c8dd8c4fe17.tar.xz |
* Apply http://opensimulator.org/mantis/view.php?id=3586
* Make MSSQL current in NHibernate
* Thanks mpallari
Diffstat (limited to 'OpenSim/Data/NHibernate/SByteType.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/SByteType.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Data/NHibernate/SByteType.cs b/OpenSim/Data/NHibernate/SByteType.cs index b2bbe74..92ab0ba 100644 --- a/OpenSim/Data/NHibernate/SByteType.cs +++ b/OpenSim/Data/NHibernate/SByteType.cs | |||
@@ -73,7 +73,16 @@ namespace OpenSim.Data.NHibernate | |||
73 | int ord = rs.GetOrdinal(names[0]); | 73 | int ord = rs.GetOrdinal(names[0]); |
74 | if (!rs.IsDBNull(ord)) | 74 | if (!rs.IsDBNull(ord)) |
75 | { | 75 | { |
76 | sbyte1 = Convert.ToSByte(rs.GetInt16(ord)); | 76 | object tempO = rs.GetValue(ord); |
77 | if (tempO is Byte) | ||
78 | { | ||
79 | sbyte1 = Convert.ToSByte(((byte)tempO)); | ||
80 | } | ||
81 | else | ||
82 | { | ||
83 | short temp = rs.GetInt16(ord); | ||
84 | sbyte1 = Convert.ToSByte(temp); | ||
85 | } | ||
77 | } | 86 | } |
78 | return sbyte1; | 87 | return sbyte1; |
79 | } | 88 | } |