Update of /cvsroot/pgsqlclient/pgsqlclient/PostgreSql.Data.PGSqlClient/source/NPGClient
In directory sc8-pr-cvs1:/tmp/cvs-serv2003
Modified Files:
PGResponsePacket.cs
Added Files:
PGDecodeType.cs PGEncodeType.cs
Log Message:
* Added two new files for encode/decode datatype values.
* source/NPGClient/PGResponsePAcket.cs:
- Removed test code.
- Added call to PGEncodeType.EncodeNumeric.
--- NEW FILE: PGDecodeType.cs ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: PGEncodeType.cs ---
(This appears to be a binary file; contents omitted.)
Index: PGResponsePacket.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient/PostgreSql.Data.PGSqlClient/source/NPGClient/PGResponsePacket.cs,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** PGResponsePacket.cs 12 Jul 2003 08:11:23 -0000 1.1.1.1
--- PGResponsePacket.cs 17 Jul 2003 09:50:40 -0000 1.2
***************
*** 138,148 ****
{
digits[i] = ReadShort();
- if (i == 0)
- {
- digits[i] *= (short)(100*weight);
- }
}
! return 0;
}
--- 138,144 ----
{
digits[i] = ReadShort();
}
! return PGEncodeType.EncodeNumeric(ndigits, weight, sign, dscale, digits);
}
|