pgsqlclient-checkins Mailing List for PostgreSqlClient (Page 31)
Status: Inactive
Brought to you by:
carlosga_fb
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(120) |
Aug
(95) |
Sep
(95) |
Oct
(213) |
Nov
(114) |
Dec
(64) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(6) |
Feb
(134) |
Mar
(88) |
Apr
(28) |
May
(22) |
Jun
(15) |
Jul
(23) |
Aug
(2) |
Sep
(15) |
Oct
(2) |
Nov
(6) |
Dec
|
| 2005 |
Jan
(8) |
Feb
(6) |
Mar
|
Apr
(42) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(84) |
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
(84) |
Apr
(46) |
May
(40) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <car...@us...> - 2003-11-21 18:04:40
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv15288 Modified Files: changelog.txt Log Message: Updated changelog.txt Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** changelog.txt 20 Nov 2003 17:33:17 -0000 1.77 --- changelog.txt 21 Nov 2003 18:04:37 -0000 1.78 *************** *** 3,6 **** --- 3,28 ---- + 2003-11-21 Carlos Guzmán Álvarez <car...@te...> + + * source/PgConnection.cs: + + - Added event handlers for SSL certificates validation and selection. + + * source/NPgClient/PgDbClient.cs: + + - Make SslClientStream to be public + + * source/NPgClient/PgDbClient.cs: + * source/NPgClient/PgStatement.cs: + + - Added correct processing of Sync and error messages. + + * source/NPgClient/PgOutputPacket.cs: + + - Make conversion of datatime parameters using Convert.ToDateTime() + + - Make conversion of timespan parameters using TimeSpan.Parse() + + 2003-11-20 Carlos Guzmán Álvarez <car...@te...> |
|
From: <car...@us...> - 2003-11-21 18:04:22
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv15209
Modified Files:
PgCommand.cs PgConnection.cs
Log Message:
Minor changes
Index: PgCommand.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** PgCommand.cs 20 Nov 2003 17:34:42 -0000 1.15
--- PgCommand.cs 21 Nov 2003 18:04:19 -0000 1.16
***************
*** 612,616 ****
private string getStmtName()
{
! return GetHashCode().ToString() +
this.connection.GetHashCode().ToString() +
DateTime.Now.Ticks;
--- 612,616 ----
private string getStmtName()
{
! return GetHashCode().ToString() +
this.connection.GetHashCode().ToString() +
DateTime.Now.Ticks;
Index: PgConnection.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgConnection.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** PgConnection.cs 21 Nov 2003 12:20:00 -0000 1.7
--- PgConnection.cs 21 Nov 2003 18:04:19 -0000 1.8
***************
*** 405,418 ****
{
// Server certificate validation
! dbConnection.DB.SslClientStream.ServerCertValidationDelegate =
! new CertificateValidationCallback(OnServerCertificateValidation);
! ServerCertValidation += certificateValidation;
// Client certificate selection
! dbConnection.DB.SslClientStream.ClientCertSelectionDelegate =
! new CertificateSelectionCallback(OnClientCertificateSelection);
! ClientCertSelection += certificateSelectionCallback;
}
-
}
catch (PgClientException ex)
--- 405,415 ----
{
// Server certificate validation
! certificateValidation = new CertificateValidationCallback(OnServerCertificateValidation);
! dbConnection.DB.SslClientStream.ServerCertValidationDelegate = certificateValidation;
// Client certificate selection
! certificateSelectionCallback = new CertificateSelectionCallback(OnClientCertificateSelection);
! dbConnection.DB.SslClientStream.ClientCertSelectionDelegate = certificateSelectionCallback;
}
}
catch (PgClientException ex)
|
|
From: <car...@us...> - 2003-11-21 18:01:08
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient
In directory sc8-pr-cvs1:/tmp/cvs-serv14628
Modified Files:
PgDbClient.cs PgStatement.cs
Log Message:
* source/NPgClient/PgDbClient.cs:
* source/NPgClient/PgStatement.cs:
- Added correct processing of Sync and error messages.
Index: PgDbClient.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgDbClient.cs,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** PgDbClient.cs 21 Nov 2003 12:23:05 -0000 1.34
--- PgDbClient.cs 21 Nov 2003 18:01:04 -0000 1.35
***************
*** 180,183 ****
--- 180,184 ----
packet.Write((byte)0); // Terminator
+ // Handshake protocol will be negotiated here if the connection is using SSL/TLS
SendData(packet.GetSimplePacketBytes());
***************
*** 271,274 ****
--- 272,278 ----
PgClientException ex = processErrorPacket(responsePacket);
+ // Perform a sync
+ Sync();
+
throw ex;
}
***************
*** 543,547 ****
public void RollbackTransction()
{
! PgStatement stmt = CreateStatement("ROLLBACK TRANSACTION");
stmt.Query();
--- 547,551 ----
public void RollbackTransction()
{
! PgStatement stmt = CreateStatement("ROLLBACK TRANSACTION");
stmt.Query();
***************
*** 586,589 ****
--- 590,601 ----
// Send packet to the server
SendData(packet.GetPacketBytes(PgFrontEndCodes.SYNC));
+
+ // Receive response
+ PgResponsePacket response = new PgResponsePacket();
+ while (response.Message != PgBackendCodes.READY_FOR_QUERY)
+ {
+ response = ReceiveResponsePacket();
+ processResponsePacket(response);
+ }
}
catch (Exception ex)
Index: PgStatement.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgStatement.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** PgStatement.cs 20 Nov 2003 17:34:43 -0000 1.11
--- PgStatement.cs 21 Nov 2003 18:01:04 -0000 1.12
***************
*** 195,199 ****
db.SendData(packet.GetPacketBytes(PgFrontEndCodes.PARSE));
! // Sync server and client
db.Flush();
--- 195,199 ----
db.SendData(packet.GetPacketBytes(PgFrontEndCodes.PARSE));
! // Flush pending messages
db.Flush();
***************
*** 249,253 ****
db.SendData(packet.GetPacketBytes(PgFrontEndCodes.DESCRIBE));
! // Sync server and client
db.Flush();
--- 249,253 ----
db.SendData(packet.GetPacketBytes(PgFrontEndCodes.DESCRIBE));
! // Flush pending messages
db.Flush();
***************
*** 317,321 ****
db.SendData(packet.GetPacketBytes(PgFrontEndCodes.BIND));
! // Sync server and client
db.Flush();
--- 317,321 ----
db.SendData(packet.GetPacketBytes(PgFrontEndCodes.BIND));
! // Flush pending messages
db.Flush();
***************
*** 355,364 ****
db.SendData(packet.GetPacketBytes(PgFrontEndCodes.EXECUTE));
! // Sync server and client
db.Flush();
// Receive response
PgResponsePacket response = new PgResponsePacket();
! while (response.Message != PgBackendCodes.READY_FOR_QUERY &&
response.Message != PgBackendCodes.PORTAL_SUSPENDED &&
response.Message != PgBackendCodes.COMMAND_COMPLETE)
--- 355,364 ----
db.SendData(packet.GetPacketBytes(PgFrontEndCodes.EXECUTE));
! // Flush pending messages
db.Flush();
// Receive response
PgResponsePacket response = new PgResponsePacket();
! while (response.Message != PgBackendCodes.READY_FOR_QUERY &&
response.Message != PgBackendCodes.PORTAL_SUSPENDED &&
response.Message != PgBackendCodes.COMMAND_COMPLETE)
***************
*** 385,391 ****
{
db.Sync();
-
- response = db.ReceiveResponsePacket();
- processSqlPacket(response);
}
--- 385,388 ----
|
|
From: <car...@us...> - 2003-11-21 16:59:26
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient In directory sc8-pr-cvs1:/tmp/cvs-serv3351 Modified Files: PgOutputPacket.cs Log Message: * source/NPgClient/PgOutputPacket.cs: - Make conversion of datatime parameters using Convert.ToDateTime() - Make conversion of timespan parameters using TimeSpan.Parse() Index: PgOutputPacket.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgOutputPacket.cs,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** PgOutputPacket.cs 17 Nov 2003 10:56:41 -0000 1.19 --- PgOutputPacket.cs 21 Nov 2003 16:59:23 -0000 1.20 *************** *** 337,341 **** case PgDataType.Interval: packet.WriteInt(size); ! packet.WriteInterval((TimeSpan)value); break; --- 337,341 ---- case PgDataType.Interval: packet.WriteInt(size); ! packet.WriteInterval(TimeSpan.Parse(value.ToString())); break; *************** *** 365,389 **** case PgDataType.Date: packet.WriteInt(size); ! packet.WriteDate((DateTime)value); break; case PgDataType.Time: packet.WriteInt(size); ! packet.WriteTime((DateTime)value); break; case PgDataType.TimeWithTZ: packet.WriteInt(size); ! packet.WriteTimeWithTZ((DateTime)value); break; case PgDataType.Timestamp: packet.WriteInt(size); ! packet.WriteTimestamp((DateTime)value); break; case PgDataType.TimestampWithTZ: packet.WriteInt(size); ! packet.WriteTimestampWithTZ((DateTime)value); break; --- 365,389 ---- case PgDataType.Date: packet.WriteInt(size); ! packet.WriteDate(Convert.ToDateTime(value)); break; case PgDataType.Time: packet.WriteInt(size); ! packet.WriteTime(Convert.ToDateTime(value)); break; case PgDataType.TimeWithTZ: packet.WriteInt(size); ! packet.WriteTimeWithTZ(Convert.ToDateTime(value)); break; case PgDataType.Timestamp: packet.WriteInt(size); ! packet.WriteTimestamp(Convert.ToDateTime(value)); break; case PgDataType.TimestampWithTZ: packet.WriteInt(size); ! packet.WriteTimestampWithTZ(Convert.ToDateTime(value)); break; |
|
From: <car...@us...> - 2003-11-21 12:25:11
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1:/tmp/cvs-serv13808 Modified Files: changelog.txt Log Message: 2003-11-21 Carlos Guzmán Álvarez <car...@te...> * Mono.Security.Protocol.Tls/SslClientStream.cs: - Add correct implementation of RaiseClientCertificateSelection Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/changelog.txt,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** changelog.txt 18 Nov 2003 13:57:51 -0000 1.12 --- changelog.txt 21 Nov 2003 12:25:08 -0000 1.13 *************** *** 2,5 **** --- 2,11 ---- --------------- ----------- ----------------------------------------- + 2003-11-21 Carlos Guzmán Álvarez <car...@te...> + + * Mono.Security.Protocol.Tls/SslClientStream.cs: + + - Add correct implementation of RaiseClientCertificateSelection + 2003-11-17 Carlos Guzmán Álvarez <car...@te...> |
|
From: <car...@us...> - 2003-11-21 12:24:29
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls
In directory sc8-pr-cvs1:/tmp/cvs-serv13668
Modified Files:
SslClientStream.cs
Log Message:
Add correct implementation of RaiseClientCertificateSelection
Index: SslClientStream.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/SslClientStream.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SslClientStream.cs 17 Nov 2003 11:00:20 -0000 1.4
--- SslClientStream.cs 21 Nov 2003 12:24:26 -0000 1.5
***************
*** 56,61 ****
#region INTERNAL_EVENTS
! internal event CertificateValidationCallback ServerCertValidation;
! internal event CertificateSelectionCallback ClientCertSelection;
#endregion
--- 56,61 ----
#region INTERNAL_EVENTS
! internal event CertificateValidationCallback ServerCertValidation;
! internal event CertificateSelectionCallback ClientCertSelection;
#endregion
***************
*** 986,990 ****
}
! internal bool RaiseClientCertificateSelection(
X509CertificateCollection clientCertificates,
X509Certificate serverCertificate,
--- 986,990 ----
}
! internal X509Certificate RaiseClientCertificateSelection(
X509CertificateCollection clientCertificates,
X509Certificate serverCertificate,
***************
*** 992,1000 ****
X509CertificateCollection serverRequestedCertificates)
{
! #warning "Add implementation"
! return true;
}
-
#endregion
--- 992,1006 ----
X509CertificateCollection serverRequestedCertificates)
{
! if (this.ClientCertSelection != null)
! {
! return this.ClientCertSelection(
! clientCertificates,
! serverCertificate,
! targetHost,
! serverRequestedCertificates);
! }
! return null;
}
#endregion
|
|
From: <car...@us...> - 2003-11-21 12:23:08
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient
In directory sc8-pr-cvs1:/tmp/cvs-serv13442
Modified Files:
PgDbClient.cs
Log Message:
2003-11-21 Carlos Guzmán Álvarez <car...@te...>
* source/NPgClient/PgDbClient.cs:
- Make SslClientStream to be public
Index: PgDbClient.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgDbClient.cs,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** PgDbClient.cs 17 Nov 2003 10:56:41 -0000 1.33
--- PgDbClient.cs 21 Nov 2003 12:23:05 -0000 1.34
***************
*** 114,117 ****
--- 114,122 ----
}
+ public SslClientStream SslClientStream
+ {
+ get { return sslStream; }
+ }
+
#endregion
|
|
From: <car...@us...> - 2003-11-21 12:20:03
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv12778
Modified Files:
PgConnection.cs
Log Message:
2003-11-21 Carlos Guzmán Álvarez <car...@te...>
* source/PgConnection.cs:
- Added event handlers for SSL certificates validation and selection.
Index: PgConnection.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgConnection.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** PgConnection.cs 19 Nov 2003 15:19:19 -0000 1.6
--- PgConnection.cs 21 Nov 2003 12:20:00 -0000 1.7
***************
*** 23,26 ****
--- 23,28 ----
using System.Collections;
using System.ComponentModel;
+ using System.Security.Cryptography.X509Certificates;
+ using Mono.Security.Protocol.Tls;
using PostgreSql.Data.NPgClient;
using PostgreSql.Data.PgSqlClient.DbSchema;
***************
*** 35,41 ****
#region EVENTS
! public event StateChangeEventHandler StateChange;
! public event PgInfoMessageEventHandler InfoMessage;
! public event PgNotificationEventHandler Notification;
#endregion
--- 37,46 ----
#region EVENTS
! public event StateChangeEventHandler StateChange;
! public event PgInfoMessageEventHandler InfoMessage;
! public event PgNotificationEventHandler Notification;
! public event CertificateValidationCallback ServerCertValidation;
! public event CertificateSelectionCallback ClientCertSelection;
!
#endregion
***************
*** 53,56 ****
--- 58,63 ----
private PgClientMessageEventHandler infoMessageHandler;
private PgClientNotificationEventHandler notificationHandler;
+ private CertificateValidationCallback certificateValidation;
+ private CertificateSelectionCallback certificateSelectionCallback;
#endregion
***************
*** 393,396 ****
--- 400,418 ----
notificationHandler = new PgClientNotificationEventHandler(OnNotification);
dbConnection.DB.Notification += notificationHandler;
+
+ // If we are working with SSL add event handlers
+ if (this.dbConnection.Settings.SSL)
+ {
+ // Server certificate validation
+ dbConnection.DB.SslClientStream.ServerCertValidationDelegate =
+ new CertificateValidationCallback(OnServerCertificateValidation);
+ ServerCertValidation += certificateValidation;
+
+ // Client certificate selection
+ dbConnection.DB.SslClientStream.ClientCertSelectionDelegate =
+ new CertificateSelectionCallback(OnClientCertificateSelection);
+ ClientCertSelection += certificateSelectionCallback;
+ }
+
}
catch (PgClientException ex)
***************
*** 432,435 ****
--- 454,464 ----
dbConnection.DB.Notification -= notificationHandler;
+ // Remove SSL handlers
+ if (this.dbConnection.Settings.SSL)
+ {
+ ServerCertValidation -= certificateValidation;
+ ClientCertSelection -= certificateSelectionCallback;
+ }
+
// Close connection permanently or send it
// back to the pool
***************
*** 575,578 ****
--- 604,611 ----
}
+ #endregion
+
+ #region EVENT_HANDLERS
+
private void OnInfoMessage(object sender, PgClientMessageEventArgs e)
{
***************
*** 593,596 ****
--- 626,658 ----
e.Aditional));
}
+ }
+
+ private bool OnServerCertificateValidation(
+ X509Certificate certificate, int[] certificateErrors)
+ {
+ if (this.ServerCertValidation != null)
+ {
+ return this.ServerCertValidation(certificate, certificateErrors);
+ }
+
+ return false;
+ }
+
+ private X509Certificate OnClientCertificateSelection(
+ X509CertificateCollection clientCertificates,
+ X509Certificate serverCertificate,
+ string targetHost,
+ X509CertificateCollection serverRequestedCertificates)
+ {
+ if (this.ClientCertSelection != null)
+ {
+ return this.ClientCertSelection(
+ clientCertificates,
+ serverCertificate,
+ targetHost,
+ serverRequestedCertificates);
+ }
+
+ return null;
}
|
|
From: <car...@us...> - 2003-11-20 17:36:32
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/WindowsSetup In directory sc8-pr-cvs1:/tmp/cvs-serv22474 Modified Files: PgSqlClientSetup.gi2 Log Message: Prepare for beta 4 Index: PgSqlClientSetup.gi2 =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/WindowsSetup/PgSqlClientSetup.gi2,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PgSqlClientSetup.gi2 16 Oct 2003 10:35:11 -0000 1.5 --- PgSqlClientSetup.gi2 20 Nov 2003 17:36:12 -0000 1.6 *************** *** 102,106 **** <variables> <var name="AppID" value="PgSqlClient ADO.NET Data Provider 1.0" /> ! <var name="AppName" value="PgSqlClient ADO.NET Data Provider 1.0 Beta 3" /> <var name="OutputPath" value="Output" type="normal"/> <var name="Password" type="normal"/> --- 102,106 ---- <variables> <var name="AppID" value="PgSqlClient ADO.NET Data Provider 1.0" /> ! <var name="AppName" value="PgSqlClient ADO.NET Data Provider 1.0 Beta 4" /> <var name="OutputPath" value="Output" type="normal"/> <var name="Password" type="normal"/> |
|
From: <car...@us...> - 2003-11-20 17:35:56
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source
In directory sc8-pr-cvs1:/tmp/cvs-serv22328
Modified Files:
PgBaseTest.cs PgGeometicTypesTest.cs
Log Message:
Prepare for beta 4
Index: PgBaseTest.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgBaseTest.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** PgBaseTest.cs 13 Nov 2003 09:19:40 -0000 1.7
--- PgBaseTest.cs 20 Nov 2003 17:35:31 -0000 1.8
***************
*** 44,47 ****
--- 44,53 ----
public void SetUp()
{
+ try
+ {
+ dropDatabase();
+ }
+ catch{}
+
createDatabase();
***************
*** 69,73 ****
{
connection.Close();
- dropDatabase();
}
--- 75,78 ----
Index: PgGeometicTypesTest.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgGeometicTypesTest.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PgGeometicTypesTest.cs 13 Nov 2003 09:19:40 -0000 1.3
--- PgGeometicTypesTest.cs 20 Nov 2003 17:35:31 -0000 1.4
***************
*** 192,221 ****
}
! [Test]
public void BoxArrayTest()
{
}
! [Test]
public void PointArrayTest()
{
}
! [Test]
public void LineSegmentArrayTest()
{
}
! [Test]
public void PathArrayTest()
{
}
! [Test]
public void PolygonArrayTest()
{
}
! [Test]
public void CircleArrayTest()
{
--- 192,221 ----
}
! [Ignore("Test not implemented.")]
public void BoxArrayTest()
{
}
! [Ignore("Test not implemented.")]
public void PointArrayTest()
{
}
! [Ignore("Test not implemented.")]
public void LineSegmentArrayTest()
{
}
! [Ignore("Test not implemented.")]
public void PathArrayTest()
{
}
! [Ignore("Test not implemented.")]
public void PolygonArrayTest()
{
}
! [Ignore("Test not implemented.")]
public void CircleArrayTest()
{
|
|
From: <car...@us...> - 2003-11-20 17:35:26
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient
In directory sc8-pr-cvs1:/tmp/cvs-serv22195/NPgClient
Modified Files:
PgStatement.cs
Log Message:
Prepare for beta 4
Index: PgStatement.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgStatement.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** PgStatement.cs 18 Nov 2003 14:19:29 -0000 1.10
--- PgStatement.cs 20 Nov 2003 17:34:43 -0000 1.11
***************
*** 347,353 ****
try
{
- this.rows = new object[fetchSize];
- this.rowIndex = 0;
-
PgOutputPacket packet = new PgOutputPacket(db.Settings.Encoding);
--- 347,350 ----
***************
*** 496,501 ****
object[] row = null;
! if ((!this.allRowsFetched && this.rows.Length == 0) ||
! (!this.allRowsFetched && this.rows.Length >= this.fetchSize))
{
lock (this)
--- 493,499 ----
object[] row = null;
! if ((!this.allRowsFetched && this.rows == null) ||
! (!this.allRowsFetched && this.rows.Length == 0) ||
! (!this.allRowsFetched && this.rowIndex >= this.fetchSize))
{
lock (this)
***************
*** 514,519 ****
}
! if (this.rowIndex >= this.fetchSize ||
! this.rows[this.rowIndex] == null )
{
this.rows = null;
--- 512,518 ----
}
! if (this.rows != null &&
! (this.rowIndex >= this.fetchSize ||
! this.rows[this.rowIndex] == null))
{
this.rows = null;
***************
*** 644,648 ****
case PgBackendCodes.EMPTY_QUERY_RESPONSE:
case PgBackendCodes.NODATA:
! this.hasRows = false;
break;
--- 643,649 ----
case PgBackendCodes.EMPTY_QUERY_RESPONSE:
case PgBackendCodes.NODATA:
! this.hasRows = false;
! this.rows = null;
! this.rowIndex = 0;
break;
***************
*** 732,735 ****
--- 733,742 ----
int fieldCount = packet.ReadShort();
object[] values = new object[fieldCount];
+
+ if (this.rows == null)
+ {
+ this.rows = new object[fetchSize];
+ this.rowIndex = 0;
+ }
for (int i = 0; i < values.Length; i++)
|
|
From: <car...@us...> - 2003-11-20 17:35:23
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv22195
Modified Files:
PgCommand.cs PgDataReader.cs
Log Message:
Prepare for beta 4
Index: PgCommand.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** PgCommand.cs 19 Nov 2003 15:19:18 -0000 1.14
--- PgCommand.cs 20 Nov 2003 17:34:42 -0000 1.15
***************
*** 418,421 ****
--- 418,426 ----
internal void InternalPrepare()
{
+ if (commands == null)
+ {
+ splitBatchCommands(false);
+ }
+
try
{
Index: PgDataReader.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgDataReader.cs,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** PgDataReader.cs 18 Nov 2003 14:19:44 -0000 1.13
--- PgDataReader.cs 20 Nov 2003 17:34:42 -0000 1.14
***************
*** 255,259 ****
// Get Column Information
! if (cInfoCmd.Statement.Rows != null &&
cInfoCmd.Statement.Rows.Length > 0)
{
--- 255,259 ----
// Get Column Information
! if (cInfoCmd.Statement.Rows != null &&
cInfoCmd.Statement.Rows.Length > 0)
{
***************
*** 262,266 ****
// Get Primary Key Info
! if (pKeyCmd.Statement.Rows != null &&
pKeyCmd.Statement.Rows.Length > 0)
{
--- 262,266 ----
// Get Primary Key Info
! if (pKeyCmd.Statement.Rows != null &&
pKeyCmd.Statement.Rows.Length > 0)
{
|
|
From: <car...@us...> - 2003-11-20 17:35:04
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security
In directory sc8-pr-cvs1:/tmp/cvs-serv22146
Modified Files:
ASN1Convert.cs
Log Message:
Prepare for beta 4
Index: ASN1Convert.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security/ASN1Convert.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ASN1Convert.cs 28 Oct 2003 16:10:46 -0000 1.1
--- ASN1Convert.cs 20 Nov 2003 17:34:20 -0000 1.2
***************
*** 12,15 ****
--- 12,16 ----
using System.Security.Cryptography;
using System.Text;
+ using System.Globalization;
namespace Mono.Security {
***************
*** 137,141 ****
break;
}
! return DateTime.ParseExact (t, mask, null);
}
}
--- 138,142 ----
break;
}
! return DateTime.ParseExact (t, mask, CultureInfo.CurrentCulture.DateTimeFormat, DateTimeStyles.AdjustToUniversal);
}
}
|
|
From: <car...@us...> - 2003-11-20 17:33:58
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv21924 Modified Files: changelog.txt changes.txt Log Message: Prepare for beta 4 Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** changelog.txt 19 Nov 2003 23:07:26 -0000 1.76 --- changelog.txt 20 Nov 2003 17:33:17 -0000 1.77 *************** *** 8,12 **** - 2003-11-19 Carlos Guzmán Álvarez <car...@te...> --- 8,11 ---- Index: changes.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changes.txt,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** changes.txt 16 Oct 2003 10:34:25 -0000 1.13 --- changes.txt 20 Nov 2003 17:33:17 -0000 1.14 *************** *** 2,5 **** --- 2,23 ---- ------------------------------------------------------- + Beta 4 ( 20-11-2003 ) + ---- - - -- -- ---- - + + - Bug fixes. + + - Better fit to ADO.NET. + + - Improved handling of command parameters. + + - Restricted batch command execution to PgCommand.ExecuteReader calls. + + - Added correct handling of character sets. + + - Added support for Geometric types. + + - Added some improvements to the SSL/TLS library. + + Beta 3 ( 16-10-2003 ) ---- - - -- -- ---- - |
|
From: <car...@us...> - 2003-11-19 23:09:00
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10
In directory sc8-pr-cvs1:/tmp/cvs-serv7744
Modified Files:
PgSqlClient.build
Log Message:
Updated build file
Index: PgSqlClient.build
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.build,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** PgSqlClient.build 21 Oct 2003 12:17:47 -0000 1.9
--- PgSqlClient.build 19 Nov 2003 23:08:19 -0000 1.10
***************
*** 40,44 ****
<ifnot propertyexists="nunit.framework.dll">
<sysinfo />
! <property name="nunit.framework.dll" value="${sys.os.folder.programfiles}\NUnit V2.0\bin\nunit.framework.dll"
readonly="false" />
</ifnot>
--- 40,44 ----
<ifnot propertyexists="nunit.framework.dll">
<sysinfo />
! <property name="nunit.framework.dll" value="${sys.os.folder.programfiles}\NUnit V2.1\bin\nunit.framework.dll"
readonly="false" />
</ifnot>
***************
*** 71,77 ****
<!-- Build target for all existing platforms -->
<target name="build-all" depends="check-build-config">
! <call target="net-1.0" />
! <call target="net-1.1" />
! <call target="mono-1.0" />
</target>
--- 71,77 ----
<!-- Build target for all existing platforms -->
<target name="build-all" depends="check-build-config">
! <call target="net-1.0" failonerror="false" />
! <call target="net-1.1" failonerror="false" />
! <call target="mono-1.0" failonerror="false" />
</target>
|
|
From: <car...@us...> - 2003-11-19 23:08:09
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv7553 Modified Files: changelog.txt Log Message: 2003-11-20 Carlos Guzmán Álvarez <car...@te...> * Updated build file for use NUnit 2.1. Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** changelog.txt 17 Nov 2003 10:57:07 -0000 1.75 --- changelog.txt 19 Nov 2003 23:07:26 -0000 1.76 *************** *** 2,5 **** --- 2,22 ---- ------------------------------------------------------- + + 2003-11-20 Carlos Guzmán Álvarez <car...@te...> + + * Updated build file for use NUnit 2.1. + + + + 2003-11-19 Carlos Guzmán Álvarez <car...@te...> + + * source/PgCommand.cs: + * source/PgConnection.cs: + * source/PgDataAdapter.cs: + * source/PgCommandBuilder.cs: + + - Added better implementation of constructors and dispose methods. + + 2003-11-17 Carlos Guzmán Álvarez <car...@te...> |
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv17753
Modified Files:
PgCommand.cs PgCommandBuilder.cs PgConnection.cs
PgDataAdapter.cs
Log Message:
2003-11-19 Carlos Guzmán Álvarez <car...@te...>
* source/PgCommand.cs:
* source/PgConnection.cs:
* source/PgDataAdapter.cs:
* source/PgCommandBuilder.cs:
- Added better implementation of constructors and dispose methods.
Index: PgCommand.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** PgCommand.cs 17 Nov 2003 09:12:43 -0000 1.13
--- PgCommand.cs 19 Nov 2003 15:19:18 -0000 1.14
***************
*** 209,213 ****
#region CONSTRUCTORS
! public PgCommand()
{
this.commandText = String.Empty;
--- 209,213 ----
#region CONSTRUCTORS
! public PgCommand() : base()
{
this.commandText = String.Empty;
***************
*** 220,223 ****
--- 220,225 ----
this.parameters = new PgParameterCollection();
this.search = new Regex("(@([a-zA-Z-$][a-zA-Z0-9_$]*))");
+
+ GC.SuppressFinalize(this);
}
***************
*** 239,249 ****
#endregion
! #region DESTRUCTORS
!
! void IDisposable.Dispose()
! {
! this.Dispose(true);
! System.GC.SuppressFinalize(this);
! }
protected override void Dispose(bool disposing)
--- 241,245 ----
#endregion
! #region DISPOSE_METHODS
protected override void Dispose(bool disposing)
Index: PgCommandBuilder.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommandBuilder.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** PgCommandBuilder.cs 17 Oct 2003 18:21:14 -0000 1.12
--- PgCommandBuilder.cs 19 Nov 2003 15:19:19 -0000 1.13
***************
*** 120,124 ****
#region CONSTRUCTORS
! public PgCommandBuilder()
{
sqlInsert = "INSERT INTO {0} ({1}) VALUES ({2})";
--- 120,124 ----
#region CONSTRUCTORS
! public PgCommandBuilder() : base()
{
sqlInsert = "INSERT INTO {0} ({1}) VALUES ({2})";
***************
*** 131,134 ****
--- 131,136 ----
quotePrefix = String.Empty;
quoteSuffix = String.Empty;
+
+ GC.SuppressFinalize(this);
}
***************
*** 140,149 ****
#endregion
! #region DESTRUCTORS
!
! ~PgCommandBuilder()
! {
! Dispose(false);
! }
protected override void Dispose(bool disposing)
--- 142,146 ----
#endregion
! #region DISPOSE_METHODS
protected override void Dispose(bool disposing)
Index: PgConnection.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgConnection.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** PgConnection.cs 8 Nov 2003 12:55:23 -0000 1.5
--- PgConnection.cs 19 Nov 2003 15:19:19 -0000 1.6
***************
*** 190,197 ****
#region CONSTRUCTORS
! public PgConnection()
{
state = ConnectionState.Closed;
connectionString = String.Empty;
}
--- 190,199 ----
#region CONSTRUCTORS
! public PgConnection() : base()
{
state = ConnectionState.Closed;
connectionString = String.Empty;
+
+ GC.SuppressFinalize(this);
}
***************
*** 203,213 ****
#endregion
! #region DESTRUCTORS
!
! void IDisposable.Dispose()
! {
! this.Dispose(true);
! System.GC.SuppressFinalize(this);
! }
protected override void Dispose(bool disposing)
--- 205,209 ----
#endregion
! #region DISPOSE_METHODS
protected override void Dispose(bool disposing)
Index: PgDataAdapter.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgDataAdapter.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PgDataAdapter.cs 8 Nov 2003 12:55:23 -0000 1.2
--- PgDataAdapter.cs 19 Nov 2003 15:19:19 -0000 1.3
***************
*** 113,118 ****
#region CONSTRUCTORS
! public PgDataAdapter()
{
}
--- 113,119 ----
#region CONSTRUCTORS
! public PgDataAdapter() : base()
{
+ GC.SuppressFinalize(this);
}
***************
*** 134,138 ****
#endregion
! #region DESTRUCTORS
protected override void Dispose(bool disposing)
--- 135,139 ----
#endregion
! #region DISPOSE_METHODS
protected override void Dispose(bool disposing)
|
|
From: <car...@us...> - 2003-11-18 14:19:47
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv14249
Modified Files:
PgDataReader.cs
Log Message:
Performance improvement
Index: PgDataReader.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgDataReader.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** PgDataReader.cs 8 Nov 2003 12:55:23 -0000 1.12
--- PgDataReader.cs 18 Nov 2003 14:19:44 -0000 1.13
***************
*** 255,259 ****
// Get Column Information
! if (cInfoCmd.Statement.Rows.Count > 0)
{
columnInfo = (object[])cInfoCmd.Statement.Rows[0];
--- 255,260 ----
// Get Column Information
! if (cInfoCmd.Statement.Rows != null &&
! cInfoCmd.Statement.Rows.Length > 0)
{
columnInfo = (object[])cInfoCmd.Statement.Rows[0];
***************
*** 261,265 ****
// Get Primary Key Info
! if (pKeyCmd.Statement.Rows.Count > 0)
{
object[] temp = (object[])pKeyCmd.Statement.Rows[0];
--- 262,267 ----
// Get Primary Key Info
! if (pKeyCmd.Statement.Rows != null &&
! pKeyCmd.Statement.Rows.Length > 0)
{
object[] temp = (object[])pKeyCmd.Statement.Rows[0];
|
|
From: <car...@us...> - 2003-11-18 14:19:32
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient
In directory sc8-pr-cvs1:/tmp/cvs-serv14193
Modified Files:
PgStatement.cs
Log Message:
Performance improvement
Index: PgStatement.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgStatement.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** PgStatement.cs 1 Nov 2003 10:31:05 -0000 1.9
--- PgStatement.cs 18 Nov 2003 14:19:29 -0000 1.10
***************
*** 52,56 ****
private bool allRowsFetched;
private PgRowDescriptor rowDescriptor;
! private ArrayList rows;
private PgParameter[] parameters;
private PgParameter outParameter;
--- 52,57 ----
private bool allRowsFetched;
private PgRowDescriptor rowDescriptor;
! private object[] rows;
! private int rowIndex;
private PgParameter[] parameters;
private PgParameter outParameter;
***************
*** 102,106 ****
}
! public ArrayList Rows
{
get { return rows; }
--- 103,107 ----
}
! public object[] Rows
{
get { return rows; }
***************
*** 140,144 ****
{
this.outParameter = new PgParameter();
! this.rows = new ArrayList();
this.parseName = String.Empty;
this.portalName = String.Empty;
--- 141,146 ----
{
this.outParameter = new PgParameter();
! this.rows = null;
! this.rowIndex = 0;
this.parseName = String.Empty;
this.portalName = String.Empty;
***************
*** 205,209 ****
// Clear actual row list
! rows.Clear();
// Update status
--- 207,212 ----
// Clear actual row list
! rows = null;
! rowIndex = 0;
// Update status
***************
*** 344,347 ****
--- 347,353 ----
try
{
+ this.rows = new object[fetchSize];
+ this.rowIndex = 0;
+
PgOutputPacket packet = new PgOutputPacket(db.Settings.Encoding);
***************
*** 365,368 ****
--- 371,377 ----
}
+ // reset rowIndex
+ this.rowIndex = 0;
+
// If the command is finished and has returned rows
// set all rows are received
***************
*** 397,401 ****
}
! public void ExecuteFunction()
{
lock (db)
--- 406,410 ----
}
! public void ExecuteFunction(int id)
{
lock (db)
***************
*** 405,410 ****
PgOutputPacket packet = new PgOutputPacket(db.Settings.Encoding);
! // TODO: Send function oid
! packet.WriteInt(0);
// Send parameters format code.
--- 414,419 ----
PgOutputPacket packet = new PgOutputPacket(db.Settings.Encoding);
! // Function id
! packet.WriteInt(id);
// Send parameters format code.
***************
*** 487,491 ****
object[] row = null;
! if (!this.allRowsFetched && this.rows.Count == 0)
{
lock (this)
--- 496,501 ----
object[] row = null;
! if ((!this.allRowsFetched && this.rows.Length == 0) ||
! (!this.allRowsFetched && this.rows.Length >= this.fetchSize))
{
lock (this)
***************
*** 496,506 ****
}
! if (rows.Count > 0)
{
// Return always first row
! row = (object[])this.rows[0];
! // Remove row from the list
! this.rows.RemoveAt(0);
}
--- 506,521 ----
}
! if (this.rows != null &&
! this.rows.Length > 0 &&
! this.rows[this.rowIndex] != null)
{
// Return always first row
! row = (object[])this.rows[this.rowIndex++];
! }
! if (this.rowIndex >= this.fetchSize ||
! this.rows[this.rowIndex] == null )
! {
! this.rows = null;
}
***************
*** 546,550 ****
// Clear rows
! rows.Clear();
// Update Status
--- 561,566 ----
// Clear rows
! rows = null;
! rowIndex = 0;
// Update Status
***************
*** 738,742 ****
}
! this.rows.Add(values);
}
--- 754,758 ----
}
! this.rows[this.rowIndex++] = values;
}
|
|
From: <car...@us...> - 2003-11-18 13:57:54
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1:/tmp/cvs-serv9976 Modified Files: changelog.txt Log Message: Updated changelog.txt Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/changelog.txt,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** changelog.txt 14 Nov 2003 13:43:11 -0000 1.11 --- changelog.txt 18 Nov 2003 13:57:51 -0000 1.12 *************** *** 2,5 **** --- 2,11 ---- --------------- ----------- ----------------------------------------- + 2003-11-17 Carlos Guzmán Álvarez <car...@te...> + + * Mono.Security.Protocol.Tls/SslClientStream.cs: + + Removed ReadByte method, use innerStream.ReadByte() method instead. + 2003-11-13 Carlos Guzmán Álvarez <car...@te...> |
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client
In directory sc8-pr-cvs1:/tmp/cvs-serv9943
Modified Files:
TlsServerCertificate.cs TlsServerHello.cs
Log Message:
Updated files
Index: TlsServerCertificate.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** TlsServerCertificate.cs 14 Nov 2003 13:42:54 -0000 1.11
--- TlsServerCertificate.cs 18 Nov 2003 13:57:27 -0000 1.12
***************
*** 104,109 ****
int[] certificateErrors = new int[0];
- #warning "Check validity of certificates"
-
// 1 step : Validate dates
if (!certificate.IsCurrent)
--- 104,107 ----
Index: TlsServerHello.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerHello.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** TlsServerHello.cs 14 Nov 2003 13:42:54 -0000 1.12
--- TlsServerHello.cs 18 Nov 2003 13:57:27 -0000 1.13
***************
*** 81,85 ****
protected override void ProcessAsSsl3()
{
- #warning "Check that the protocol sent by the server is supported"
// Read protocol version
this.protocol = (SecurityProtocolType)this.ReadInt16();
--- 81,84 ----
|
|
From: <car...@us...> - 2003-11-17 11:01:14
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls
In directory sc8-pr-cvs1:/tmp/cvs-serv5870
Modified Files:
SslClientStream.cs
Log Message:
2003-11-17 Carlos Guzmán Álvarez <car...@te...>
* Mono.Security.Protocol.Tls/SslClientStream.cs:
Removed ReadByte method, use innerStream.ReadByte() method instead.
Index: SslClientStream.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/SslClientStream.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SslClientStream.cs 14 Nov 2003 13:40:40 -0000 1.3
--- SslClientStream.cs 17 Nov 2003 11:00:20 -0000 1.4
***************
*** 514,518 ****
}
! TlsContentType contentType = (TlsContentType)this.ReadByte();
SecurityProtocolType protocol = (SecurityProtocolType)this.ReadShort();
short length = this.ReadShort();
--- 514,518 ----
}
! TlsContentType contentType = (TlsContentType)innerStream.ReadByte();
SecurityProtocolType protocol = (SecurityProtocolType)this.ReadShort();
short length = this.ReadShort();
***************
*** 822,833 ****
this.inputBuffer.SetLength(0);
this.inputBuffer.Position = 0;
- }
-
- private new byte ReadByte()
- {
- byte[] b = new byte[1];
- this.innerStream.Read(b, 0, b.Length);
-
- return b[0];
}
--- 822,825 ----
|
|
From: <car...@us...> - 2003-11-17 10:57:50
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10
In directory sc8-pr-cvs1:/tmp/cvs-serv5334
Modified Files:
changelog.txt
Log Message:
* source/NPgClient/PgOutputPacket.cs:
* source/NPgClient/PgResponsePacket.cs:
* source/NPgClient/PgDbClient.cs:
- Added correct encoding/decoding of string values with the
client_encoding character set.
Index: changelog.txt
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v
retrieving revision 1.74
retrieving revision 1.75
diff -C2 -d -r1.74 -r1.75
*** changelog.txt 17 Nov 2003 09:13:25 -0000 1.74
--- changelog.txt 17 Nov 2003 10:57:07 -0000 1.75
***************
*** 10,13 ****
--- 10,19 ----
the command text as a single SQL command.
+ * source/NPgClient/PgOutputPacket.cs:
+ * source/NPgClient/PgResponsePacket.cs:
+ * source/NPgClient/PgDbClient.cs:
+
+ - Added correct encoding/decoding of string values with the client_encoding character set.
+
2003-11-14 Carlos Guzmán Álvarez <car...@te...>
|
|
From: <car...@us...> - 2003-11-17 10:57:24
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient
In directory sc8-pr-cvs1:/tmp/cvs-serv5275
Modified Files:
PgDbClient.cs PgOutputPacket.cs PgResponsePacket.cs
Log Message:
* source/NPgClient/PgOutputPacket.cs:
* source/NPgClient/PgResponsePacket.cs:
* source/NPgClient/PgDbClient.cs:
- Added correct encoding/decoding of string values with the
client_encoding character set.
Index: PgDbClient.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgDbClient.cs,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** PgDbClient.cs 14 Nov 2003 13:44:23 -0000 1.32
--- PgDbClient.cs 17 Nov 2003 10:56:41 -0000 1.33
***************
*** 355,359 ****
switch (parameterName)
{
! case "server_encoding":
settings.Encoding = charSets[parameterValue].Encoding;
break;
--- 355,359 ----
switch (parameterName)
{
! case "client_encoding":
settings.Encoding = charSets[parameterValue].Encoding;
break;
Index: PgOutputPacket.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgOutputPacket.cs,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** PgOutputPacket.cs 12 Nov 2003 22:38:32 -0000 1.18
--- PgOutputPacket.cs 17 Nov 2003 10:56:41 -0000 1.19
***************
*** 61,65 ****
{
this.encoding = encoding;
! Write(new byte[0]);
}
--- 61,65 ----
{
this.encoding = encoding;
! this.Write(new byte[0]);
}
***************
*** 70,75 ****
public void WriteString(string data)
{
! this.Write(data.ToCharArray());
! this.Write(PgCodes.NULL_TERMINATOR);
}
--- 70,78 ----
public void WriteString(string data)
{
! if (!data.EndsWith(PgCodes.NULL_TERMINATOR.ToString()))
! {
! data += PgCodes.NULL_TERMINATOR;
! }
! this.Write(encoding.GetBytes(data));
}
***************
*** 388,393 ****
case PgDataType.VarChar:
{
! string paramValue = value.ToString();
! packet.WriteInt(encoding.GetByteCount(paramValue + PgCodes.NULL_TERMINATOR));
packet.WriteString(paramValue);
}
--- 391,396 ----
case PgDataType.VarChar:
{
! string paramValue = value.ToString() + PgCodes.NULL_TERMINATOR;
! packet.WriteInt(encoding.GetByteCount(paramValue));
packet.WriteString(paramValue);
}
Index: PgResponsePacket.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgResponsePacket.cs,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** PgResponsePacket.cs 6 Nov 2003 16:37:22 -0000 1.19
--- PgResponsePacket.cs 17 Nov 2003 10:56:41 -0000 1.20
***************
*** 136,140 ****
Read(buffer, 0, length);
! return Encoding.Default.GetString(buffer);
}
--- 136,140 ----
Read(buffer, 0, length);
! return encoding.GetString(buffer);
}
***************
*** 146,150 ****
Read(buffer, 0, length);
! return Encoding.Default.GetString(buffer);
}
--- 146,150 ----
Read(buffer, 0, length);
! return encoding.GetString(buffer);
}
|
|
From: <car...@us...> - 2003-11-17 09:14:08
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv19170 Modified Files: changelog.txt Log Message: Updated CHANGELOG.TXT Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.73 retrieving revision 1.74 diff -C2 -d -r1.73 -r1.74 *** changelog.txt 14 Nov 2003 13:45:06 -0000 1.73 --- changelog.txt 17 Nov 2003 09:13:25 -0000 1.74 *************** *** 2,5 **** --- 2,14 ---- ------------------------------------------------------- + 2003-11-17 Carlos Guzmán Álvarez <car...@te...> + + * source/PgCommand.cs: + + - Restricted batch command execution to ExecuteReader calls. + Prepare, ExecuteNonquery and ExecuteScalar calls will handle + the command text as a single SQL command. + + 2003-11-14 Carlos Guzmán Álvarez <car...@te...> |