1 2004-09-12 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
3 * NpgsqlTypes/NpgsqlTypesHelper:
4 ConvertToBackend: Fixed code to handle null values properly when using extended query mode.
7 2004-09-11 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
9 * Npgsql/NpgsqlConnection.cs:
10 Dispose: Improved implementation. Also added warning logging for
11 NpgsqlConnection leakings.
12 Close: Fixed code to allow calling many times even when being disposed.
13 * Npgsql/NpgsqlConnection.resx:
14 Added new warning logging message for NpgsqlConnection leakings.
15 * Npgsql/NpgsqlConnector.cs:
16 IsValid: new method to check if Connector is still valid.
17 * Npgsql/NpgsqlConnectorPool.cs:
18 GetPooledConnector: Improved to check validity of Connector.
19 FixPoolCountBecauseOfConnectionDisposeFalse: new method to fix the connection pool count
20 because NpgsqlConnection leaking. This way, uses doesn't run out of connections from pool.
22 2004-09-07 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
24 * NpgsqlException.cs: Added support for deserialization of NpgsqlException.
26 * NpgsqlState.cs: Added missing handling of NoData message.
29 2004-07-02 Raja R Harinath <rharinath@novell.com>
31 * Makefile (OVERRIDE_BARE_TARGETS): Remove.
32 ($(the_lib)): Make dependency explicit.
34 2004-06-28 Raja R Harinath <rharinath@novell.com>
36 * Makefile (%.resources): Use $(RESGEN).
38 2004-06-22 Raja R Harinath <rharinath@novell.com>
40 * Makefile: Use $(PLATFORM_PATH_SEPARATOR) in MONO_PATH.
42 2004-06-21 Raja R Harinath <rharinath@novell.com>
44 * Makefile (LIBRARY_SNK): Sign with Npgsql/Npgsql.snk.
46 2004-06-18 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
47 * Synchronized files with gborg cvs up to release 0.6.
49 2004-05-29 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
50 * Npgsql/NpgsqlConnection.cs: Added workaround for redhat server versions.
51 It returns 7.3.4-RH as its server version. Thanks Jaroslaw Kowalski
52 (jaak@zd.com.pl) for the patch.
54 2004-05-24 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
55 * Npgsql/NpgsqlConnection.cs: Fixed bug when handling Unicode connections.
57 Thanks stehule@kix.fsv.cvut.cz for the patch.
59 2004-05-23 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
61 * Npgsql/NpgsqlConnection.cs: Fixed bug which prevented Npgsql to
62 connect to cvs built servers which had devel in its version string.
64 2004-05-22 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
66 Npgsql/NpgsqlCommand.cs,
67 Npgsql/NpgsqlConnection.cs,
68 Npgsql/NpgsqlDataReader.cs,
69 Npgsql/NpgsqlException.cs,
70 Npgsql/NpgsqlTransaction.cs,
71 Npgsql/Design/ConnectionStringEditor.cs,
72 Npgsql/Design/ConnectionStringEditorForm.cs,
73 Npgsql/Design/NpgsqlParameterConverter.cs,
74 Npgsql/Design/NpgsqlParametersEditor.cs,
75 NpgsqlTypes/NpgsqlTypesHelper.cs: Commit log by
76 Glen Parker (glenebob@nwlink.com): Bug #772 ("Using
77 Command and Prepare adds single quotes to strings twice")
78 is fixed :-) It was broken when running on the version 3
79 protocol (extended query support) on PostgreSQL 7.4.
80 Some of the files in Design were formatted with macintosh line
81 terminators. This was screwing up the xmldoc generator in csc,
82 so I reformatted to make it work.
83 I've added some essential xmldoc comments (<summary> tags). Much work
84 remains here, but I wanted to get a few in on common functions and
87 The .build file will now generate the Npgsql.xml file, next to the .dll
88 file. I removed the existing Npgsql.xml from CVS.
90 Thanks Glen Parker for this patch.
93 2004-05-20 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
96 NpgsqlBackEndKeyData.cs,
99 NpgsqlConnectedState.cs,
101 NpgsqlConnection.resx,
103 NpgsqlConnectorPool.cs,
106 NpgsqlMessageTypes.cs,
107 NpgsqlPasswordPacket.cs,
109 NpgsqlRowDescription.cs,
110 NpgsqlStartupPacket.cs,
113 NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
114 - split more protocol handlers between version 2 and version 3
115 - split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
116 - store BackendKeyData in its own member on Mediator
117 - Store ParameterStatus objects in a key map on Mediator
118 - Get backend version now from the Mediator if possible
119 - Rewrite parsers for server version and connection string
120 - Store server version numericially (in a new class ServerVersion)
121 - As usual, lots of code cleanup/commenting/etc.
123 Thanks very much Glen Parker (glenebob@nwlink.com) for this patch.
125 2004-05-20 Raja R Harinath <rharinath@novell.com>
127 * Makefile (%.resources): Use INTERNAL_RESGEN.
129 2004-05-13 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
131 * Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception t
132 o InvalidOperationException when calling the Hash property and hash value is nul
133 l. Thanks Gonzalo Paniagua Javier <gonzalo@ximian.com> for catching that.
135 2004-05-09 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
139 NpgsqlClosedState.cs,
141 NpgsqlCommandBuilder.cs,
145 NpgsqlParameterCollection.cs,
147 NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws mor
148 e meaningful exceptions instead of throw NpgsqlException which are now exclusive
149 ly to sign server errors. Thanks Glen Parker (glenebob@nwlink.com) for the patch.
153 2004-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
156 * Npgsql.dll.resources: all the resources command line options are now
157 in a separate response file.
159 2004-05-04 Jaroslaw Kowalski <jaak@zd.com.pl>
160 * Npgsql/NpgsqlDataReader.cs: Fixed RecordsAffected to properly return -1 after "create table" and similar commands.
162 2004-05-01 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
164 * Npgsql/NpgsqlCommand.cs,
165 Npgsql/NpgsqlConnection.cs,
166 Npgsql/NpgsqlConnector.cs,
167 Npgsql/NpgsqlConnectorPool.cs,
168 Npgsql/NpgsqlError.cs,
169 Npgsql/NpgsqlException.cs,
170 Npgsql/NpgsqlParameterCollection.cs,
171 NpgsqlTypes/NpgsqlTypesHelper.cs: Improved exception support. Now NpgsqlException as well as NpgsqlError provide much more information. Thanks Glen Parker (glenebob@nwlink.com) for the patch.
173 2004-04-30 Todd Berman <tberman@sevenl.net>
175 * Npgsql/AssemblyInfo.cs: use the proper path to the .pub file
177 2004-04-30 Duncan Mak <duncan@ximian.com>
179 * Npgsql/AssemblyInfo.cs: Enable delay signing, using Npgsql.pub.
181 * Npgsql/Npgsql.pub: Added to CVS.
183 2004-04-21 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
184 * Npgsql/NpgsqlDataAdapter.cs: Changed RowUpdated and RowUpdating prefix to Npgsql.
185 * Npgsql/NpgsqlClosedState.cs: Removed dependency in TlsException. Carlos Guzman will change this excpetion to internal.
187 * Npgsql/NpgsqlCommand.cs
188 * Npgsql/NpgsqlCommand.resx
189 * Npgsql/NpgsqlConnection.cs
190 * Npgsql/NpgsqlConnection.resx
191 * Npgsql/NpgsqlDataAdapter.cs
192 * Npgsql/NpgsqlError.cs
193 * Npgsql/NpgsqlException.cs
194 * Npgsql/NpgsqlException.resx
195 * Npgsql/NpgsqlMediator.cs
196 * Npgsql/NpgsqlState.cs
197 * Npgsql/NpgsqlState.resx
198 * Npgsql/PGUtil.cs : Added initial error handling code improvements. Thanks Glen Parker (glenebob@nwlink.com) for the patch. NpgsqlException now gives aceess to error collection through the Errors property. This property return a collection of NpgsqlErrors objects. Also it gives access to error message, hint, severity and code. This fixes the feature request 689 in gborg.
202 2004-04-09 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
203 * Npgsql/NpgsqlDataAdapter.cs: Fixed DataAdapter to raise the RowUpdating and RowUpdated events. This also fixes some issues in gborg 710 bug. This modification may have broken CommandBuilder support. Working on that.
205 2004-03-28 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
206 * Npgsql/NpgsqlTransaction.cs: Fixed a bug where rollback was being called when disposing NpgsqlTransaction objects even when transaction was sucessfully commited. Fixes bug 725 in gborg. Thanks melkor (melkor@adinet.com.uy) for spotting that.
208 2004-03-28 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
209 * Npgsql/NpgsqlConnection.cs: Implemented IClonable interface in NpgsqlConnection class. Thanks Juliano Barbosa for pointing it out.
211 2004-03-22 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
212 * Npgsql/NpgsqlAsciiRow.cs
213 * Npgsql/NpgsqlBinaryRow.cs
214 * Npgsql/NpgsqlDataReader.cs: Fixed NpgsqlDataReader.IsDBNull(). It wasn't working for postgresql 7.4+. Thanks Glen Parker (glenebob@nwlink.com) for the patch.
217 2004-03-13 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
219 * Npgsql/NpgsqlConnection.cs:
220 * Npgsql/NpgsqlClosedState.cs: Added support for SSL callbacks points. Now, client applications can provide the callbacks. Npgsql provide a default callback implementation which always assumes the certificate is ok. This allows easy use as client don't need to provide callback to use ssl connections. This also fixes bug 705 in gborg.
221 * NpgsqlTypes/NpgsqlTypesHelper: Applied patch to correctly parse datetimes values with timezone information. Thanks Glen Parker <glenebob@nwlink.com> for the patch.
224 2004-03-06 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
226 * Npgsql/NpgsqlConnectorPool.cs: Fixed bug 706 in gborg. Now Max timeout will be working correctly. Thanks Sami Kuhmonen <feenix@iqs.fi> for the patch.
228 2004-02-29 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
229 * Npgsql/NpgsqlConnection.cs: Better handling of connection encoding. Added support for encoding and connection timeout in connection string.
230 * Npgsql/NpgsqlConnectorPool.cs: Added support for timeout and max connection pool.
232 2004-02-28 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
234 * Npgsql/NpgsqlConnector.cs: Added support for connection encoding.
235 * Npgsql/NpgsqlConnection.cs: Better handling of connection encoding.
236 * Npgsql/NpgsqlCommand.cs: Fixed an Invalid Index error when executing ExecuteScalar() method with an empty resultset. Thanks Lynn A. Roth for the fix. This fixes bug 687 in gborg.
239 2004-02-25 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
241 * Npgsql/NpgsqlDataReader.cs: Fixed a OutOfBoundsException when trying to access an element after have read all elements. Now it throws an InvalidOperationException.
243 * Npgsql/NpgsqlConnection.cs: Fixed Unicode handling. This also fixes bug 695 in gborg. Thanks Sami Kuhmonen <feenix@iqs.fi> for the patch.
246 2004-02-16 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
248 * Npgsql/NpgsqlDataReader.cs: Removed a log line which reduced the conne
249 ction startup time in 300 milliseconds.
251 2004-02-16 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
253 * NpgsqlConnection.cs: Added support for Unicode encoding. Fixes feature
254 request 534 on gborg. Thanks Ivar <ivar@lumisoft.ee> for pointing it out.
256 2004-02-16 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
258 * Npgsql/NpgsqlStartupPacket.cs: Added code to set datestyle to iso when
259 connecting using protocol 3.0 version. Thanks Sami Kuhmonen <feenix@iqs.fi> for pointing it out.
261 2004-02-14 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
263 * Npgsql/NpgsqlCommand.cs: Fixed a bug when handling queries which return no data. Thanks Morten Mertner <morten@mertner.com> for the fix.
265 2004-02-10 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
267 * NpgsqlTypes/NpgsqlTypesHelper.cs: Added support for datetime and time datatypes with timezone data. Thanks Sami Kuhmonen (sami@iqs.fi).
269 2004-01-15 Jackson Harper <jackson@ximian.com>
271 * NpgslTypes/NpgsqlTypesHelper.cs: Add StringFixedLength type.
273 2003-11-23 Pedro Mart�ez Juli� <yoros@wanadoo.es>
275 * Npgsql/HashAlgorithm.cs:
276 * Npgsql/NpgsqlClosedState.cs:
277 * Npgsql/NpgsqlCommand.cs:
278 * Npgsql/NpgsqlConnectedState.cs:
279 * Npgsql/NpgsqlConnection.cs:
280 * Npgsql/NpgsqlReadyState.cs:
281 * Npgsql/NpgsqlStartupState.cs:
282 * Npgsql/NpgsqlState.cs: Apply Disposable pattern, when using
283 ADO.NET we need to call Dispose after using any Component like
284 NpgsqlDataAdapter, NpgsqlConnection, etc... Change a few internal
285 methods to Properties.
287 2003-11-22 Pedro Mart�ez Juli� <yoros@wanadoo.es>
289 * Npgsql/NpgsqlClosedState.cs:
290 * Npgsql/NpgsqlConnectedState.cs:
291 * Npgsql/NpgsqlConnection.cs:
292 * Npgsql/NpgsqlReadyState.cs:
293 * Npgsql/NpgsqlState.cs: Changes related to the last update of SSL
294 implementation. Now we're using TcpClient for the connection and
295 Stream for the abstraction layer to SslClientStream.
297 2003-11-11 Pedro Mart�ez Juli� <yoros@wanadoo.es>
299 * Npgsql/NpgsqlDataReader.cs: GetSchemaTable has nothing to do with
300 CanRead because the schema can be readed with or without result
303 2003-11-10 Pedro Mart�ez Juli� <yoros@wanadoo.es>
305 * Npgsql/NpgsqlDataAdapter.cs: Best use "if" instead of try-catch.
307 2003-11-10 Pedro Mart�ez Juli� <yoros@wanadoo.es>
309 * Npgsql/NpgsqlDataAdapter.cs: Catch the exception thrown by MS.NET
310 when a mapping is not in the collection.
312 2003-11-09 Pedro Mart�ez Juli� <yoros@wanadoo.es>
314 * Npgsql/NpgsqlDataAdapter.cs: Do not assing the result of the
315 CommandBuilder to the local data. Local data should be null if the
316 client doesn't set them.
318 * Npgsql/NpgsqlCommandBuilder.cs: Mistake in param name fixed.
320 2003-11-09 Pedro Mart�ez Juli� <yoros@wanadoo.es>
322 * Makefile: Little fix for build the resources.
324 * Npgsql/NpgsqlCommandBuilder.cs: Added row version in delete
327 2003-11-08 Pedro Mart�ez Juli� <yoros@wanadoo.es>
329 * Npgsql/NpgsqlCommand.cs: Removed try-catch for Resource Manager
330 calls, the problem is fixed.
332 * Makefile: Fix one bug in the build of resources.
334 2003-11-08 Pedro Mart�ez Juli� <yoros@wanadoo.es>
336 * Npgsql/NpgsqlCommandBuilder.cs: Added the command builder.
338 * Npgsql/NpgsqlDataAdapter.cs: Added the CommandBuilder stuff. When
339 OnRowUpdating is called we create the command necesary for updating,
340 inserting or deleting any row of the DataTable/DataSet.
342 * Npgsql/NpgsqlCommand.cs: Temporary try-catch. ResMan still doesn't
343 work. This must be removed when ResMan works.
345 * Npgsql/NpgsqlParameter: No more than one call to value.GetType()
346 is more efficient for the deep if structure types.
348 2003-11-07 Pedro Mart�ez Juli� <yoros@wanadoo.es>
350 * Npgsql/NpgsqlDataAdapter.cs: Fixed the mistake I did in the last
351 change. The Command objects must not be created in the constructor.
352 The Commands should be in the overrided method "OnRowUpdating".
354 * Npgsql/NpgsqlCommand.cs: Added two try-catch instructions to get
355 the proper exception (not MissingManifestResourceException). It is
356 thrown in MS.NET and in MONO. (Npgsql compiled with MCS).
358 2003-11-07 Pedro Mart�ez Juli� <yoros@wanadoo.es>
360 * Npgsql/NpgsqlDataAdapter.cs: Create new Command classes for the
361 different Insrt / Update / Delete commands.
363 2003-10-20 Pedro Mart�ez Juli� <yoros@wanadoo.es>
365 * Npgsql/NpgsqlClosedState.cs:
366 * Npgsql/NpgsqlConnection.cs:
367 * Npgsql/NpgsqlConnectedState.cs:
368 * Npgsql/NpgsqlReadyState.cs:
369 * Npgsql/NpgsqlState.cs: Changed the namespace for Tls, now the
370 namespace is Mono.System.Protocol.Tls, before was
373 * Npgsql/Makefile: Change reference from System.Security.Tls to
374 Mono.Security (now Tls lives there).
376 2003-10-16 Pedro Mart�ez Juli� <yoros@wanadoo.es>
378 * Npgsql/NpgsqlClosedState.cs:
379 * Npgsql/NpgsqlConnectedState.cs:
380 * Npgsql/NpgsqlConnection.cs: Changed TcpClient by TlsSession
381 because now it is used TlsSession and it doesn't work without
384 2003-10-16 Pedro Mart�ez Juli� <yoros@wanadoo.es>
386 * Makefile: changed reference from Lib/System.Security.Tls.dll to
387 System.Security.Tls because the last will be installed before and
390 * Lib: Removed Lib directory, moved System.Security.Tls.dll to
391 Mono.Security.Tls library directory.
393 2003-10-15 Pedro Mart�ez Juli� <yoros@wanadoo.es>
395 * Makefile: fix building and the install objectives.
397 2003-04-26 Pedro Mart�ez Juli� <yoros@wanadoo.es>
399 * Npgsql/NpgsqlDataReader.cs: Change GetFloat and GetDouble. Now
400 they works as direct casting from GetValue.
402 2003-07-18 Peter Williams <peter@newton.cx>
404 * Npgsql/AssemblyInfo.cs: Don't strongname the assembly, because
405 we can't unless corlib is strongnamed too. Not a wonderful solution,
406 but I don't think this ever worked anyway.
408 2003-05-25 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
409 * Npgsql/NpgsqlDataReader.cs: Fixed an invalid index exception when
410 processing 0 rows queries.
412 2003-04-26 Pedro Mart�ez Juli� <yoros@wanadoo.es>
414 * Npgsql/NpgsqlDataReader.cs: Now GetDateTime works for "dd/MM/yyyy"
415 date formats. I think that it's needed support to auto-detect
416 DateTime format through PgSql server configuration.
418 2003-01-28 Daniel Morgan <danmorg@sc.rr.com>
420 * Npgsql.build: got it to work for Windows build
422 * Npgsql/Npgsql.build
424 * Npgsql/Npgsql.prjx: removed files not needed
426 2003-01-28 Daniel Morgan <danmorg@sc.rr.com>
428 * added the Npgsql (Npgsql is a .Net Data Provider for PostgreSQL)
429 from http://gborg.postgresql.org/project/npgsql/projdisplay.php
430 by adding the following files and directories to the mcs module
431 in mono-cvs.ximian.com at mcs/class:
444 Npgsql/Npgsql (directory)
445 Npgsql/AssemblyInfo.cs
446 Npgsql/NpgsqlAsciiRow.cs
447 Npgsql/NpgsqlBackEndKeyData.cs
448 Npgsql/NpgsqlClosedState.cs
449 Npgsql/NpgsqlCommand.cs
450 Npgsql/NpgsqlConnectedState.cs
451 Npgsql/NpgsqlConnection.cs
452 Npgsql/NpgsqlConnector.cs
453 Npgsql/NpgsqlConnectorPool.cs
454 Npgsql/NpgsqlDataAdapter.cs
455 Npgsql/NpgsqlDataReader.cs
456 Npgsql/NpgsqlEventLog.cs
457 Npgsql/NpgsqlException.cs
458 Npgsql/NpgsqlMediator.cs
459 Npgsql/NpgsqlMessageTypes.cs
460 Npgsql/NpgsqlParameter.cs
461 Npgsql/NpgsqlParameterCollection.cs
462 Npgsql/NpgsqlPasswordPacket.cs
463 Npgsql/NpgsqlQuery.cs
464 Npgsql/NpgsqlReadyState.cs
465 Npgsql/NpgsqlResultSet.cs
466 Npgsql/NpgsqlRowDescription.cs
467 Npgsql/NpgsqlStartupPacket.cs
468 Npgsql/NpgsqlStartupState.cs
469 Npgsql/NpgsqlState.cs
470 Npgsql/NpgsqlTransaction.cs