NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker (glenebob@nwlink.com) for this patch.
svn path=/trunk/mcs/; revision=27787
private static readonly DateTime postgresEpoch = new DateTime(2000, 1, 1);
private static readonly string[] DateFormats = new String[]
- {
+ {
"yyyy-MM-dd",
- };
+ };
private static readonly string[] TimeFormats = new String[]
- {
+ {
"HH:mm:ss.ffffff",
"HH:mm:ss.fffff",
"HH:mm:ss.ffff",
"HH:mm:ss.ffzz",
"HH:mm:ss.fzz",
"HH:mm:sszz"
- };
+ };
private static readonly string[] DateTimeFormats = new String[]
- {
+ {
"yyyy-MM-dd HH:mm:ss.ffffff",
"yyyy-MM-dd HH:mm:ss.fffff",
"yyyy-MM-dd HH:mm:ss.ffff",
"yyyy-MM-dd HH:mm:ss.ffzz",
"yyyy-MM-dd HH:mm:ss.fzz",
"yyyy-MM-dd HH:mm:sszz"
- };
+ };
public static String GetBackendTypeNameFromDbType(DbType dbType)
{