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