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