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