This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / class / Npgsql / ChangeLog
1 2004-06-28  Raja R Harinath  <rharinath@novell.com>
2
3         * Makefile (%.resources): Use $(RESGEN).
4
5 2004-06-22  Raja R Harinath  <rharinath@novell.com>
6
7         * Makefile: Use $(PLATFORM_PATH_SEPARATOR) in MONO_PATH.
8
9 2004-06-21  Raja R Harinath  <rharinath@novell.com>
10
11         * Makefile (LIBRARY_SNK): Sign with Npgsql/Npgsql.snk.
12
13 2004-06-18  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
14         * Synchronized files with gborg cvs up to release 0.6.
15
16 2004-05-29  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
17         * Npgsql/NpgsqlConnection.cs: Added workaround for redhat server versions.
18         It returns 7.3.4-RH as its server version. Thanks Jaroslaw Kowalski 
19 (jaak@zd.com.pl) for the patch.
20
21 2004-05-24  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
22         * Npgsql/NpgsqlConnection.cs: Fixed bug when handling Unicode connections.
23         Fixes Gborg bug 752.
24         Thanks stehule@kix.fsv.cvut.cz for the patch.
25
26 2004-05-23  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
27         
28         * Npgsql/NpgsqlConnection.cs: Fixed bug which prevented Npgsql to
29 connect to cvs built servers which had devel in its version string.
30         
31 2004-05-22  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
32
33         Npgsql/NpgsqlCommand.cs,
34         Npgsql/NpgsqlConnection.cs,
35         Npgsql/NpgsqlDataReader.cs,
36         Npgsql/NpgsqlException.cs,
37         Npgsql/NpgsqlTransaction.cs,
38         Npgsql/Design/ConnectionStringEditor.cs,
39         Npgsql/Design/ConnectionStringEditorForm.cs,
40         Npgsql/Design/NpgsqlParameterConverter.cs,
41         Npgsql/Design/NpgsqlParametersEditor.cs,
42         NpgsqlTypes/NpgsqlTypesHelper.cs: Commit log by 
43         Glen Parker (glenebob@nwlink.com): Bug #772 ("Using 
44         Command and Prepare adds single quotes to strings twice")
45         is fixed  :-)   It was broken when running on the version 3
46         protocol (extended query support) on PostgreSQL 7.4. 
47         Some of the files in Design were formatted with macintosh line 
48         terminators. This was screwing up the xmldoc generator in csc, 
49         so I reformatted to make it work.
50         I've added some essential xmldoc comments (<summary> tags).  Much work
51 remains here, but I wanted to get a few in on common functions and
52 properties.
53
54         The .build file will now generate the Npgsql.xml file, next to the .dll
55 file.  I removed the existing Npgsql.xml from CVS.
56
57         Thanks Glen Parker for this patch.
58
59
60 2004-05-20  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
61
62         NpgsqlAsciiRow.cs,
63         NpgsqlBackEndKeyData.cs,
64         NpgsqlBinaryRow.cs,
65         NpgsqlCommand.cs,
66         NpgsqlConnectedState.cs,
67         NpgsqlConnection.cs,
68         NpgsqlConnection.resx,
69         NpgsqlConnector.cs,
70         NpgsqlConnectorPool.cs,
71         NpgsqlError.cs,
72         NpgsqlMediator.cs,
73         NpgsqlMessageTypes.cs,
74         NpgsqlPasswordPacket.cs,
75         NpgsqlQuery.cs,
76         NpgsqlRowDescription.cs,
77         NpgsqlStartupPacket.cs,
78         NpgsqlState.cs,
79         PGUtil.cs,
80         NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
81         - split more protocol handlers between version 2 and version 3
82         - split MessageTypes class on ver2/ver3 and add remaining types for ver3        - removed handlers for deprecated protocol message types
83         - store BackendKeyData in its own member on Mediator
84         - Store ParameterStatus objects in a key map on Mediator
85         - Get backend version now from the Mediator if possible
86         - Rewrite parsers for server version and connection string
87         - Store server version numericially (in a new class ServerVersion)
88         - As usual, lots of code cleanup/commenting/etc.
89
90         Thanks very much Glen Parker (glenebob@nwlink.com) for this patch.
91
92 2004-05-20  Raja R Harinath  <rharinath@novell.com>
93
94         * Makefile (%.resources): Use INTERNAL_RESGEN.
95
96 2004-05-13  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
97
98         * Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception t
99 o InvalidOperationException when calling the Hash property and hash value is nul
100 l. Thanks Gonzalo Paniagua Javier <gonzalo@ximian.com> for catching that.
101
102 2004-05-09  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
103         * HashAlgorithm.cs,
104         NpgsqlAsciiRow.cs,
105         NpgsqlBinaryRow.cs,
106         NpgsqlClosedState.cs,
107         NpgsqlCommand.cs,
108         NpgsqlCommandBuilder.cs,
109         NpgsqlConnection.cs,
110         NpgsqlDataReader.cs,
111         NpgsqlException.cs,
112         NpgsqlParameterCollection.cs,
113         NpgsqlReadyState.cs,
114         NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws mor
115 e meaningful exceptions instead of throw NpgsqlException which are now exclusive
116 ly to sign server errors. Thanks Glen Parker (glenebob@nwlink.com) for the patch.
117
118
119
120 2004-05-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
121
122         * Makefile:
123         * Npgsql.dll.resources: all the resources command line options are now
124         in a separate response file.
125
126 2004-05-04  Jaroslaw Kowalski <jaak@zd.com.pl>
127         * Npgsql/NpgsqlDataReader.cs: Fixed RecordsAffected to properly return -1 after "create table" and similar commands.
128
129 2004-05-01  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
130
131         * Npgsql/NpgsqlCommand.cs,
132         Npgsql/NpgsqlConnection.cs,
133         Npgsql/NpgsqlConnector.cs,
134         Npgsql/NpgsqlConnectorPool.cs,
135         Npgsql/NpgsqlError.cs,
136         Npgsql/NpgsqlException.cs,
137         Npgsql/NpgsqlParameterCollection.cs,
138         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.
139
140 2004-04-30  Todd Berman  <tberman@sevenl.net>
141
142         * Npgsql/AssemblyInfo.cs: use the proper path to the .pub file
143
144 2004-04-30  Duncan Mak  <duncan@ximian.com>
145
146         * Npgsql/AssemblyInfo.cs: Enable delay signing, using Npgsql.pub.
147
148         * Npgsql/Npgsql.pub: Added to CVS.
149
150 2004-04-21  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
151         * Npgsql/NpgsqlDataAdapter.cs: Changed RowUpdated and RowUpdating prefix to Npgsql.
152         * Npgsql/NpgsqlClosedState.cs: Removed dependency in TlsException. Carlos Guzman will change this excpetion to internal.
153
154         * Npgsql/NpgsqlCommand.cs
155         * Npgsql/NpgsqlCommand.resx
156         * Npgsql/NpgsqlConnection.cs
157         * Npgsql/NpgsqlConnection.resx
158         * Npgsql/NpgsqlDataAdapter.cs
159         * Npgsql/NpgsqlError.cs
160         * Npgsql/NpgsqlException.cs
161         * Npgsql/NpgsqlException.resx
162         * Npgsql/NpgsqlMediator.cs
163         * Npgsql/NpgsqlState.cs
164         * Npgsql/NpgsqlState.resx
165         * 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.
166
167
168
169 2004-04-09  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
170         * 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.
171
172 2004-03-28  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
173         * 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.
174
175 2004-03-28  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
176         * Npgsql/NpgsqlConnection.cs: Implemented IClonable interface in NpgsqlConnection class. Thanks Juliano Barbosa for pointing it out.
177
178 2004-03-22  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
179         * Npgsql/NpgsqlAsciiRow.cs
180         * Npgsql/NpgsqlBinaryRow.cs
181         * Npgsql/NpgsqlDataReader.cs: Fixed NpgsqlDataReader.IsDBNull(). It wasn't working for postgresql 7.4+. Thanks Glen Parker (glenebob@nwlink.com) for the patch.
182
183
184 2004-03-13  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
185
186         * Npgsql/NpgsqlConnection.cs:
187         * 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.
188         * NpgsqlTypes/NpgsqlTypesHelper: Applied patch to correctly parse datetimes values with timezone information. Thanks Glen Parker <glenebob@nwlink.com> for the patch.
189         
190
191 2004-03-06  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
192
193         * Npgsql/NpgsqlConnectorPool.cs: Fixed bug 706 in gborg. Now Max timeout will be working correctly. Thanks Sami Kuhmonen <feenix@iqs.fi> for the patch.
194
195 2004-02-29  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
196         * Npgsql/NpgsqlConnection.cs: Better handling of connection encoding. Added support for encoding and connection timeout in connection string.
197         * Npgsql/NpgsqlConnectorPool.cs: Added support for timeout and max connection pool.
198
199 2004-02-28  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
200
201         * Npgsql/NpgsqlConnector.cs: Added support for connection encoding.
202         * Npgsql/NpgsqlConnection.cs: Better handling of connection encoding.
203         * 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.
204
205
206 2004-02-25  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
207
208         * Npgsql/NpgsqlDataReader.cs: Fixed a OutOfBoundsException when trying to access an element after have read all elements. Now it throws an InvalidOperationException.
209
210         * Npgsql/NpgsqlConnection.cs: Fixed Unicode handling. This also fixes bug 695 in gborg. Thanks Sami Kuhmonen <feenix@iqs.fi> for the patch.
211
212  
213 2004-02-16  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
214
215         * Npgsql/NpgsqlDataReader.cs: Removed a log line which reduced the conne
216 ction startup time in 300 milliseconds.
217
218 2004-02-16  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
219
220         * NpgsqlConnection.cs: Added support for Unicode encoding. Fixes feature
221 request 534 on gborg. Thanks Ivar <ivar@lumisoft.ee> for pointing it out.
222
223 2004-02-16 Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
224
225         * Npgsql/NpgsqlStartupPacket.cs: Added code to set datestyle to iso when
226 connecting using protocol 3.0 version. Thanks Sami Kuhmonen <feenix@iqs.fi> for pointing it out.
227
228 2004-02-14  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
229
230         * Npgsql/NpgsqlCommand.cs: Fixed a bug when handling queries which return no data. Thanks Morten Mertner <morten@mertner.com> for the fix.
231
232 2004-02-10  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
233         
234         * NpgsqlTypes/NpgsqlTypesHelper.cs: Added support for datetime and time datatypes with timezone data. Thanks Sami Kuhmonen (sami@iqs.fi).
235
236 2004-01-15  Jackson Harper <jackson@ximian.com>
237
238         * NpgslTypes/NpgsqlTypesHelper.cs: Add StringFixedLength type.
239         
240 2003-11-23  Pedro Martínez Juliá  <yoros@wanadoo.es>
241
242         * Npgsql/HashAlgorithm.cs:
243         * Npgsql/NpgsqlClosedState.cs:
244         * Npgsql/NpgsqlCommand.cs:
245         * Npgsql/NpgsqlConnectedState.cs:
246         * Npgsql/NpgsqlConnection.cs:
247         * Npgsql/NpgsqlReadyState.cs:
248         * Npgsql/NpgsqlStartupState.cs:
249         * Npgsql/NpgsqlState.cs: Apply Disposable pattern, when using
250         ADO.NET we need to call Dispose after using any Component like
251         NpgsqlDataAdapter, NpgsqlConnection, etc... Change a few internal
252         methods to Properties.
253
254 2003-11-22  Pedro Martínez Juliá  <yoros@wanadoo.es>
255
256         * Npgsql/NpgsqlClosedState.cs:
257         * Npgsql/NpgsqlConnectedState.cs:
258         * Npgsql/NpgsqlConnection.cs:
259         * Npgsql/NpgsqlReadyState.cs:
260         * Npgsql/NpgsqlState.cs: Changes related to the last update of SSL
261         implementation. Now we're using TcpClient for the connection and
262         Stream for the abstraction layer to SslClientStream.
263
264 2003-11-11  Pedro Martínez Juliá  <yoros@wanadoo.es>
265
266         * Npgsql/NpgsqlDataReader.cs: GetSchemaTable has nothing to do with
267         CanRead because the schema can be readed with or without result
268         rows.
269
270 2003-11-10  Pedro Martínez Juliá  <yoros@wanadoo.es>
271
272         * Npgsql/NpgsqlDataAdapter.cs: Best use "if" instead of try-catch.
273
274 2003-11-10  Pedro Martínez Juliá  <yoros@wanadoo.es>
275
276         * Npgsql/NpgsqlDataAdapter.cs: Catch the exception thrown by MS.NET
277         when a mapping is not in the collection.
278
279 2003-11-09  Pedro Martínez Juliá  <yoros@wanadoo.es>
280
281         * Npgsql/NpgsqlDataAdapter.cs: Do not assing the result of the
282         CommandBuilder to the local data. Local data should be null if the
283         client doesn't set them.
284
285         * Npgsql/NpgsqlCommandBuilder.cs: Mistake in param name fixed.
286
287 2003-11-09  Pedro Martínez Juliá  <yoros@wanadoo.es>
288
289         * Makefile: Little fix for build the resources.
290
291         * Npgsql/NpgsqlCommandBuilder.cs: Added row version in delete
292         command.
293
294 2003-11-08  Pedro Martínez Juliá  <yoros@wanadoo.es>
295
296         * Npgsql/NpgsqlCommand.cs: Removed try-catch for Resource Manager
297         calls, the problem is fixed.
298
299         * Makefile: Fix one bug in the build of resources.
300
301 2003-11-08  Pedro Martínez Juliá  <yoros@wanadoo.es>
302
303         * Npgsql/NpgsqlCommandBuilder.cs: Added the command builder.
304
305         * Npgsql/NpgsqlDataAdapter.cs: Added the CommandBuilder stuff. When
306         OnRowUpdating is called we create the command necesary for updating,
307         inserting or deleting any row of the DataTable/DataSet.
308
309         * Npgsql/NpgsqlCommand.cs: Temporary try-catch. ResMan still doesn't
310         work. This must be removed when ResMan works.
311
312         * Npgsql/NpgsqlParameter: No more than one call to value.GetType()
313         is more efficient for the deep if structure types.
314
315 2003-11-07  Pedro Martínez Juliá  <yoros@wanadoo.es>
316
317         * Npgsql/NpgsqlDataAdapter.cs: Fixed the mistake I did in the last
318         change. The Command objects must not be created in the constructor.
319         The Commands should be in the overrided method "OnRowUpdating".
320
321         * Npgsql/NpgsqlCommand.cs: Added two try-catch instructions to get
322         the proper exception (not MissingManifestResourceException). It is
323         thrown in MS.NET and in MONO. (Npgsql compiled with MCS).
324
325 2003-11-07  Pedro Martínez Juliá  <yoros@wanadoo.es>
326
327         * Npgsql/NpgsqlDataAdapter.cs: Create new Command classes for the
328         different Insrt / Update / Delete commands.
329
330 2003-10-20  Pedro Martínez Juliá  <yoros@wanadoo.es>
331
332         * Npgsql/NpgsqlClosedState.cs:
333         * Npgsql/NpgsqlConnection.cs:
334         * Npgsql/NpgsqlConnectedState.cs:
335         * Npgsql/NpgsqlReadyState.cs:
336         * Npgsql/NpgsqlState.cs: Changed the namespace for Tls, now the
337         namespace is Mono.System.Protocol.Tls, before was
338         System.Security.Tls.
339
340         * Npgsql/Makefile: Change reference from System.Security.Tls to
341         Mono.Security (now Tls lives there).
342
343 2003-10-16  Pedro Martínez Juliá  <yoros@wanadoo.es>
344
345         * Npgsql/NpgsqlClosedState.cs:
346         * Npgsql/NpgsqlConnectedState.cs:
347         * Npgsql/NpgsqlConnection.cs: Changed TcpClient by TlsSession
348         because now it is used TlsSession and it doesn't work without
349         these changes.
350
351 2003-10-16  Pedro Martínez Juliá  <yoros@wanadoo.es>
352
353         * Makefile: changed reference from Lib/System.Security.Tls.dll to
354         System.Security.Tls because the last will be installed before and
355         separatelly.
356
357         * Lib: Removed Lib directory, moved System.Security.Tls.dll to
358         Mono.Security.Tls library directory.
359
360 2003-10-15  Pedro Martínez Juliá  <yoros@wanadoo.es>
361
362         * Makefile: fix building and the install objectives.
363
364 2003-04-26  Pedro Martínez Juliá  <yoros@wanadoo.es>
365
366         * Npgsql/NpgsqlDataReader.cs: Change GetFloat and GetDouble. Now
367         they works as direct casting from GetValue.
368
369 2003-07-18  Peter Williams  <peter@newton.cx>
370
371         * Npgsql/AssemblyInfo.cs: Don't strongname the assembly, because
372         we can't unless corlib is strongnamed too. Not a wonderful solution,
373         but I don't think this ever worked anyway.
374
375 2003-05-25  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
376         * Npgsql/NpgsqlDataReader.cs: Fixed an invalid index exception when
377         processing 0 rows queries.
378
379 2003-04-26  Pedro Martínez Juliá  <yoros@wanadoo.es>
380
381         * Npgsql/NpgsqlDataReader.cs: Now GetDateTime works for "dd/MM/yyyy"
382         date formats. I think that it's needed support to auto-detect
383         DateTime format through PgSql server configuration.
384
385 2003-01-28  Daniel Morgan <danmorg@sc.rr.com>
386
387         * Npgsql.build: got it to work for Windows build
388         
389         * Npgsql/Npgsql.build
390         * Npgsql/Npgsql.cmbx 
391         * Npgsql/Npgsql.prjx: removed files not needed
392
393 2003-01-28  Daniel Morgan <danmorg@sc.rr.com>
394
395         * added the Npgsql (Npgsql is a .Net Data Provider for PostgreSQL)
396           from http://gborg.postgresql.org/project/npgsql/projdisplay.php
397           by adding the following files and directories to the mcs module
398           in mono-cvs.ximian.com at mcs/class:
399       
400       Npgsql (directory)     
401       ChangeLog    
402       Makefile  
403       Npgsql.build  
404       RELEASENOTES.txt  
405       TODO.txt  
406       makefile.gnu
407       LICENSE.txt  
408       README.txt
409       STATUS.txt
410       list
411           Npgsql/Npgsql (directory)
412           Npgsql/AssemblyInfo.cs
413           Npgsql/NpgsqlAsciiRow.cs
414           Npgsql/NpgsqlBackEndKeyData.cs
415           Npgsql/NpgsqlClosedState.cs
416           Npgsql/NpgsqlCommand.cs
417           Npgsql/NpgsqlConnectedState.cs
418           Npgsql/NpgsqlConnection.cs
419           Npgsql/NpgsqlConnector.cs
420           Npgsql/NpgsqlConnectorPool.cs
421           Npgsql/NpgsqlDataAdapter.cs
422           Npgsql/NpgsqlDataReader.cs
423           Npgsql/NpgsqlEventLog.cs
424           Npgsql/NpgsqlException.cs
425           Npgsql/NpgsqlMediator.cs
426           Npgsql/NpgsqlMessageTypes.cs
427           Npgsql/NpgsqlParameter.cs
428           Npgsql/NpgsqlParameterCollection.cs
429           Npgsql/NpgsqlPasswordPacket.cs
430           Npgsql/NpgsqlQuery.cs
431           Npgsql/NpgsqlReadyState.cs
432           Npgsql/NpgsqlResultSet.cs
433           Npgsql/NpgsqlRowDescription.cs
434           Npgsql/NpgsqlStartupPacket.cs
435           Npgsql/NpgsqlStartupState.cs
436           Npgsql/NpgsqlState.cs
437           Npgsql/NpgsqlTransaction.cs
438           Npgsql/PGUtil.cs
439