merge from trunk revisions 58933, 58935, 58936
[mono.git] / mcs / class / Npgsql / ChangeLog
1
2 2005-08-27  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
3     * NpgsqlParameter.cs: Applied patch to fix a NullReferenceException when using Design Time support. Thanks Josh Cooley ( jbnpgsql at tuxinthebox dot net ) for patch.
4     * NpgsqlDataReader.cs: Updated ProviderType metadata from NpgsqlDataReader.GetResultsetSchema to be the string for the type rather than the oid.  Fixed ColumnSize, NumericPrecision, NumericScale, BaseColumnName, AllowDBNull, and IsAliased. Also integrated patch from (rlp at bamafolks dot com), gborg 751. Thanks Josh Cooley (jbnpgsql at tuxinthebox dot net) for patches!
5     * NpgsqlConnection.cs,
6     NpgsqlSchema.cs: Josh Cooley (jbnpgsql at tuxinthebox dot net) improved Metadata support in Npgsql. Added support for the following collections through NpgsqlConnection.GetSchema() methods: MetaDataCollections, Restrictions, Databases, Tables, Columns, Views and Users. Also added support for restrictions when getting info about these collections.
7     * NpgsqlCommand.cs: Fixed problem with stored procedure command texts which finished with a ";". Npgsql was adding incorrectly a trailing "()" when calling this command text.
8     * NpgsqlDbType.cs,
9     NpgsqlTypesHelper.cs: Added refcursor parameter support. Now, refcursors can be passed as arguments for functions. Thanks Jon Asher for heads up and tests.
10     * Npgsql.dll.sources: Added helper metadata class. Thanks Josh Cooley (jbnpgsql at tuxinthebox dot net).
11     * NpgsqlDataAdapter: Updated constructor documentation.
12     * NpgsqlConnectorPool: Fixed concurrent problem when using MinPoolSize > 1. Thanks Josh Cooley (jbnpgsql at tuxinthebox dot net) for patch.
13     * NpgsqlParameterCollection.cs: Fixed problems with parameters with "@" prefix. They weren't correctly recognized. Thanks Pejvan Beigui ( pejvan at gmail dot com) for heads up.
14     * NpgsqlCommandBuilder.cs: Updated documentation.
15     
16 2005-08-21  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
17         * Makefile,
18         Npgsql.dll.resources: Removed references to design time support. This is not needed when compiling Npgsql with mono.
19
20 2005-08-06  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
21
22         * NpgsqlCommand.cs: Fixed problem when using commandtype.storedprocedure with command texts which have parameters with ' or any other value which needed to be escaped. Now they are properly handled. Thanks Dalibor (dalxxx at email dot com) for heads up and tests.
23
24         
25 2005-08-05  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
26
27         * NpgsqlConnection.cs:  Fixed documentation about User Id connection string key. Thanks peyn at tlen dot pl for heads up. Fixes gborg 1388
28
29 2005-07-29  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
30
31         * NpgsqlCommand.cs: Fixed problem with query strings with newlines. Regexp used to parse parameters were removing new line bytes creating query strings with errors. Thanks Jaroslaw Kowalski (jaak at jkowalski dot net) for fix.
32         
33
34 2005-07-19  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
35
36         * NpgsqlTypes/NpgsqlTypeConverters.cs:  Gborg 1370. Fixed problems with Money type when using a culture which doesn't use dot as decimal separator. Also fixed problem where only Decimal types (i.e.: 7.4M) could be used as Money type values. Now Float values can be used too.
37         
38 2005-07-08  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
39
40     * Npgsql/NpgsqlCommand.cs: Npgsql now can handle functions which return refcursor and setof refcursor. Now, results are returned as NpgsqlDataReader resultsets. There is no need to explicitly call "fetch all ..."
41
42 2005-07-05 Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
43    
44     * NpgsqlTypes/NpgsqlDbType.cs,
45       NpgsqlTypes/NpgsqlTypesHelper.cs,
46       Npgsql/NpgsqlParameter.cs,
47       Npgsql/NpgsqlConnectionString.cs,
48       Npgsql/NpgsqlState.resx,
49       Npgsql/NpgsqlConnection.cs,
50       Npgsql/NpgsqlClosedState.cs,
51       Npgsql/NpgsqlCommand.cs,
52       Npgsql/NpgsqlConnector.cs,
53       Npgsql/NpgsqlParameterCollection.cs,
54       Npgsql/NpgsqlDataReader.cs,
55       Npgsql/NpgsqlException.cs: Updated to Npgsql 0.7beta6 gborg code.
56
57 2005-02-20 Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
58
59     * Npgsql/NpgsqlCommand.cs: Fixed a problem when using prepare commands inside a transaction. Portal wasn't being released. We use the unnamed portal now. Thanks Marcin (marcin at floryan dot neostrada dot pl) for the heads up.
60
61 2005-02-13 Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
62
63     * NpgsqlTypes/NpgsqlTypesHelper.cs: gborg 1121: Fixed another culture variant representation problem when handling floating numbers. Thanks Sergey (sergey dot p dot k dot no dot spam at gmail dot com) for patch.
64     gborg 1167: Added support for writing null chars in text fields. Now they are escaped with \\0.
65     Thanks Sergey (sergey dot p dot k dot no dot spam at gmail dot com) for patch.
66     
67 2005-02-08 Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
68
69     * NpgsqlTypes/NpgsqlTypesHelper.cs: Fixed float precision rounding. Now all float values are sent with 15 precision scale.
70     * Npgsql/NpgsqlCommand.cs: Fixed problem when setting a new connection and a running transaction existed. Now, the transaction can be removed and later the connection can be replaced. Thanks Mike Griffin (mike.griffin at mygenerationsoftware dot com) for heads up.
71
72 2005-02-06  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
73
74     * NpgsqlTypes/NpgsqlTypeConverters.cs: Fixed datetime precision when sending values to backend. It was sending just the first 3 decimal values of time. Now it sends all the 6 digits. Thanks Martin Susil (spam at susil dot net) for heads up.
75
76 2005-01-29  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
77
78     * Npgsql/NpgsqlCommand.cs: Added support for updating output parameters when calling executereader().
79     Thanks Mike Griffin (mike dot griffin at mygenerationsoftware dot com) for heads up. 
80     Fixed internal constructor to initialize Parameters collection and timeout.
81
82 2005-01-27  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
83
84     * Npgsql/NpgsqlParameter.cs,
85     Npgsql/NpgsqlConnection.cs,
86     Npgsql/NpgsqlCommand.cs,
87     Npgsql/NpgsqlParameterCollection.cs,
88     Makefile: Fixed problem when compiling Npgsql with Mono on windows with cygwin. Thanks Atsushi Enomoto(atsushi at ximian dot com) for heads up and Rafael Teixeira(monoman at gmail dot com) for fix.
89
90 2005-01-24  Atsushi Enomoto  <atsushi@ximian.com>
91
92         * Makefile : quick csc build fix (tested on mcs as well).
93
94 2005-01-23  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com>
95         * NpgsqlTypes/NpgsqlTypes.cs,
96         Npgsql.dll.sources,
97         Npgsql/NpgsqlParameter.cs,
98         Npgsql/NpgsqlConnection.cs,
99         Npgsql/NpgsqlCommand.cs,
100         Npgsql/NpgsqlParameterCollection.cs,
101         Makefile: Removed System.Drawing, System.Windows.Forms and System.Design dependency.
102         * NpgsqlTypes/NpgsqlTypesHelper.cs: Added patch for gborg 1121. Thanks regmaster (regmaster at gmx dot li) and torben (torben-spam-npsql at nehmer dot net) for patch.
103
104 2005-01-21  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com>
105         * NpgsqlTypes/NpgsqlDbType.cs,
106         NpgsqlTypes/NpgsqlTypesHelper.cs: Added support for Varchar datatype. Removed Internal data type enum. It is not supported yet.
107         * Npgsql/PGUtil.cs,
108         Npgsql/PGUtil.resx: (WriteString) Added support for logging what string is being written to database server.
109         * Npgsql/NpgsqlCommand.cs: Added SingleRow behavior support. 
110         gborg 1099. Added support for record return type functions. Thanks neri and Michel for heads up and tests.
111         Fixed record function bug when function had many parameters. Thanks Neri (neri at gborg dot postgresql dot org) for heads up.
112         * Npgsql/NpgsqlCommandBuilder.cs,
113         NpgsqlDataAdapter.cs: Applied patch to fix gborg 1095. Thanks Eric van der Gutten (ericvdg at ananzi dot co dot za).
114         * Npgsql/NpgsqlDataReader.cs: Removed type conversions for GetXXX() methods.
115         
116         
117
118 2004-12-20  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com>
119         * Npgsql/NpgsqlCommand.cs: gborg 1099. Added support for record return type functions. Thanks neri and Michel for heads up and tests.
120         * Npgsql/NpgsqlDataReader.cs: Removed type conversions for GetXXX() methods.
121         * Npgsql/NpgsqlCommand.cs: Added IClonable implementation. Also added strong type NpgsqlTransaction property and converted previous interface implementation to implicit interface implementation. Thanks Christopher Gersbo-Møller (cgm at knowledgelab dot sdu dot dk) for heads up.
122         
123 2004-12-19  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com>
124         * Npgsql/NpgsqlCommand.cs: Fixed gborg 1088 and 1080. Thanks Neri (neri at gborg dot postgresql dot org) for help. Now mapped output parameters are correctly updated regardless their position in Parameters collection.
125
126 2004-12-16  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com>
127         * Npgsql/NpgsqlConnector.cs: Changed name of portal and prepare prefixes to be all lower case in order to not have case problems when deallocating them.
128         * Npgsql/NpgsqlCommand.cs: Fixed gborg 1082. Added support to implicit parameters when calling stored procedures. 
129
130 2004-12-05  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com>
131         * Npgsql/NpgsqlConnector (IsValid): Clean mediator after get a connection from pool and test it for validity. This fix a bug which some times occured which made available this test resultset to user when it shouldn't. 
132
133 2004-12-07  Raja R Harinath  <rharinath@novell.com>
134
135         * Makefile (CLEAN_FILES): Add $(RESX_RES).
136         ($(the_lib)): Depend on $(OTHER_RES) too.
137         ($(RESX_RES)): Pass argument of RESGEN through
138         PLATFORM_CHANGE_SEPARATOR_CMD.
139
140 2004-12-05  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com>
141
142         * Npgsql/NpgsqlCommand.cs: gborg 971 & 1068: Added support for ParameterDirection.Output and ParameterDirection.InputOutput parameters. Now you can use these types of parameters to get results. Thanks Ivan (ivan-sun1 at mail dot ru) and (teste at aslls dot ss) for heads up.
143
144 2004-11-26  Raja R Harinath  <rharinath@novell.com>
145
146         * Makefile (OTHER_RES): New.  List of .bmp files.
147         (EXTRA_DISTFILES): Distribute them.
148
149 2004-11-25  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com>
150     
151     Updated to 0.7beta3 release.
152     * NpgsqlBind.cs:  Minor code cleanup.
153     * NpgsqlClosedState.cs: Code formatting.
154     * NpgsqlCommand.cs: Code cleanup and updating for new Plan and Portal name generation code.
155     * NpgsqlConnection.cs: Fixed contructor log message.
156     * NpgsqlConnectionString.cs: Code formatting.
157     * NpgsqlConnector.cs:
158         ReleasePlansPortals: Added method to release used plans and portals.
159         NextPortalName, NextPlanName: Added methods to handle name generation.
160     * NpgsqlConnectorPool.cs:
161         UngetPooledConnector: Added call to release plans and portals in connector.
162     * NpgsqlError.cs: New constructor which takes ProtocolVersion and String parameters.
163     * NpgsqlQuery.cs: Changed constructor to take an NpgsqlCommand instead of just the command string.
164     * NpgsqlReadyState.cs: Changed code to reflect NpgsqlQuery change.
165     * NpgsqlState.cs: 
166         ProcessBackendResponses_Ver_(2,3): Fixed handling of invalid authentication methods. Thanks Magnus Hagander (mha at sollentuna dot net) for the heads up.
167     * NpgsqlState.resx: Fixed resource key typo.
168     * NpgsqlTransaction.cs: Fixed IDisposable pattern implementation of NpgsqlTransaction. Now it doesn't incorrectly raise InvalidOperation exceptions. Thanks Ivan Radovanovic ( rivan at sezampro dot yu ) for heads up.
169      * NpgsqlDbType.cs: Code cleanup.
170      * NpgsqlTypeConverters.cs : Removed method to handle string. String quoting is handled prevously as it depends in the type of query: simple or extended.
171      * NpgsqlTypes.cs: Code cleanup.
172      * NpgsqlTypesHelper.cs: 
173         (CreateAndLoadInitialTypesMapping): Removed delegate handler of String types. It's not necessary anymore.
174         (ConvertToBackend): Refactorying. Fixed gborg 1035. Thanks Magnus Hagander (mha at sollentuna dot net) for the heads up.
175
176 2004-11-25  Raja R Harinath  <rharinath@novell.com>
177
178         * Makefile (EXTRA_DISTFILES): Add Npgsql.dll.resources.
179
180 2004-11-04  Raja R Harinath  <rharinath@novell.com>
181
182         * Makefile (EXTRA_DISTFILES): Fix for 'make dist'.
183
184 2004-09-30  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
185     * NpgsqlTypes/FastPath.cs,
186     NpgsqlTypes/FastPathArg.cs,
187     NpgsqlTypes/LargeObject.cs,
188     NpgsqlTypes/LargeObjectManager.cs,
189     Npgsql.dll.sources: Added large object support. Thanks Emiliano Necciari (e dot necciari at blogic dot it) for the patch.
190     
191
192 2004-09-26  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
193
194     * Npgsql/NpgsqlDataReader.cs:
195         GetBytes: Added a little fix for proper handling of getbytes with current Npgsql semantics in mind. For while, we just support offset value of 0 as we
196         read all the bytes field value at a time. So there is no copy when offset is not 0.
197         
198 2004-09-25  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
199
200     * Npgsql/NpgsqlCommand.cs:
201         GetParseCommandText: Fixed an incorrect patch. Thanks Martin ( martijn at boland dot org) for heads up.
202
203 2004-09-25  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
204
205     * Npgsql/NpgsqlCommand.cs:
206         ReplaceParameterValue: Fixed parameter replace when next byte after parameter name is '\\r'. Thanks Ivan Radovanovic rivan at sezampro dot yu for the fix.
207         GetParseCommandText: Added a workaround to have some queries which are giving parameter type problems. Thanks Martin ( martijn at boland dot org) for bug report.
208
209 2004-09-23  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
210
211     * NpgsqlTypes/NpgsqlTypesHelper.cs:
212         ConvertToBackend: Added support for System.Enum types. Now enumerated types can be used correctly as a paramater value. Thanks Martin ( martijn at boland dot org) for the heads up.
213
214 2004-09-18  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
215
216     * Npgsql/NpgsqlCommand.cs:
217         GetClearCommandText: Fixed an infinite loop when trying to use a parameter whose name is equals to same type name.
218         i.e.: parameter name :text which would conflict with :text parameter name which was being added in the replacement string.
219     * NpgsqlTypes/NpgsqlTypeConverters.cs:
220         BasicNativeToBackendTypeConverter.ToString: Fixed handling of strings with backslashes. Now they are properly escaped.
221         
222 2004-09-18  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
223
224         * NpgsqlCommand.cs,
225         NpgsqlConnector.cs:  Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.
226
227 2004-09-15  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
228     * Npgsql/NpgsqlRowDescription.cs:
229         FieldIndex: Really added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)
230
231 2004-09-14  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
232
233     * Npgsql/NpgsqlRowDescription.cs:
234         FieldIndex: Added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)
235         
236 2004-09-12  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
237
238         * NpgsqlTypes/NpgsqlTypesHelper:
239                 VerifyDefaultTypesMap: Added DbType.Byte support. Thanks Martin ( martijn at boland dot org)
240                 for heads up.
241                 
242 2004-09-12  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
243
244         * NpgsqlTypes/NpgsqlTypesHelper:
245                 ConvertToBackend: Fixed code to handle null values properly when using extended query mode.
246                 Fix bug 955 in gborg.
247
248 2004-09-11  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
249
250         * Npgsql/NpgsqlConnection.cs: 
251                 Dispose: Improved implementation. Also added warning logging for 
252                 NpgsqlConnection leakings.
253                 Close: Fixed code to allow calling many times even when being disposed.
254         * Npgsql/NpgsqlConnection.resx:
255                 Added new warning logging message for NpgsqlConnection leakings.
256         * Npgsql/NpgsqlConnector.cs:
257                 IsValid: new method to check if Connector is still valid.
258         * Npgsql/NpgsqlConnectorPool.cs:
259                 GetPooledConnector: Improved to check validity of Connector.
260                 FixPoolCountBecauseOfConnectionDisposeFalse: new method to fix the connection pool count
261                 because NpgsqlConnection leaking. This way, uses doesn't run out of connections from pool.
262
263 2004-09-07  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
264
265         * NpgsqlException.cs:  Added support for deserialization of NpgsqlException.
266
267         * NpgsqlState.cs: Added missing handling of NoData message.
268         
269
270 2004-07-02  Raja R Harinath  <rharinath@novell.com>
271
272         * Makefile (OVERRIDE_BARE_TARGETS): Remove.
273         ($(the_lib)): Make dependency explicit.
274
275 2004-06-28  Raja R Harinath  <rharinath@novell.com>
276
277         * Makefile (%.resources): Use $(RESGEN).
278
279 2004-06-22  Raja R Harinath  <rharinath@novell.com>
280
281         * Makefile: Use $(PLATFORM_PATH_SEPARATOR) in MONO_PATH.
282
283 2004-06-21  Raja R Harinath  <rharinath@novell.com>
284
285         * Makefile (LIBRARY_SNK): Sign with Npgsql/Npgsql.snk.
286
287 2004-06-18  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
288         * Synchronized files with gborg cvs up to release 0.6.
289
290 2004-05-29  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
291         * Npgsql/NpgsqlConnection.cs: Added workaround for redhat server versions.
292         It returns 7.3.4-RH as its server version. Thanks Jaroslaw Kowalski 
293 (jaak@zd.com.pl) for the patch.
294
295 2004-05-24  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
296         * Npgsql/NpgsqlConnection.cs: Fixed bug when handling Unicode connections.
297         Fixes Gborg bug 752.
298         Thanks stehule@kix.fsv.cvut.cz for the patch.
299
300 2004-05-23  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
301         
302         * Npgsql/NpgsqlConnection.cs: Fixed bug which prevented Npgsql to
303 connect to cvs built servers which had devel in its version string.
304         
305 2004-05-22  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
306
307         Npgsql/NpgsqlCommand.cs,
308         Npgsql/NpgsqlConnection.cs,
309         Npgsql/NpgsqlDataReader.cs,
310         Npgsql/NpgsqlException.cs,
311         Npgsql/NpgsqlTransaction.cs,
312         Npgsql/Design/ConnectionStringEditor.cs,
313         Npgsql/Design/ConnectionStringEditorForm.cs,
314         Npgsql/Design/NpgsqlParameterConverter.cs,
315         Npgsql/Design/NpgsqlParametersEditor.cs,
316         NpgsqlTypes/NpgsqlTypesHelper.cs: Commit log by 
317         Glen Parker (glenebob@nwlink.com): Bug #772 ("Using 
318         Command and Prepare adds single quotes to strings twice")
319         is fixed  :-)   It was broken when running on the version 3
320         protocol (extended query support) on PostgreSQL 7.4. 
321         Some of the files in Design were formatted with macintosh line 
322         terminators. This was screwing up the xmldoc generator in csc, 
323         so I reformatted to make it work.
324         I've added some essential xmldoc comments (<summary> tags).  Much work
325 remains here, but I wanted to get a few in on common functions and
326 properties.
327
328         The .build file will now generate the Npgsql.xml file, next to the .dll
329 file.  I removed the existing Npgsql.xml from CVS.
330
331         Thanks Glen Parker for this patch.
332
333
334 2004-05-20  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
335
336         NpgsqlAsciiRow.cs,
337         NpgsqlBackEndKeyData.cs,
338         NpgsqlBinaryRow.cs,
339         NpgsqlCommand.cs,
340         NpgsqlConnectedState.cs,
341         NpgsqlConnection.cs,
342         NpgsqlConnection.resx,
343         NpgsqlConnector.cs,
344         NpgsqlConnectorPool.cs,
345         NpgsqlError.cs,
346         NpgsqlMediator.cs,
347         NpgsqlMessageTypes.cs,
348         NpgsqlPasswordPacket.cs,
349         NpgsqlQuery.cs,
350         NpgsqlRowDescription.cs,
351         NpgsqlStartupPacket.cs,
352         NpgsqlState.cs,
353         PGUtil.cs,
354         NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
355         - split more protocol handlers between version 2 and version 3
356         - split MessageTypes class on ver2/ver3 and add remaining types for ver3        - removed handlers for deprecated protocol message types
357         - store BackendKeyData in its own member on Mediator
358         - Store ParameterStatus objects in a key map on Mediator
359         - Get backend version now from the Mediator if possible
360         - Rewrite parsers for server version and connection string
361         - Store server version numericially (in a new class ServerVersion)
362         - As usual, lots of code cleanup/commenting/etc.
363
364         Thanks very much Glen Parker (glenebob@nwlink.com) for this patch.
365
366 2004-05-20  Raja R Harinath  <rharinath@novell.com>
367
368         * Makefile (%.resources): Use INTERNAL_RESGEN.
369
370 2004-05-13  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
371
372         * Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception t
373 o InvalidOperationException when calling the Hash property and hash value is nul
374 l. Thanks Gonzalo Paniagua Javier <gonzalo@ximian.com> for catching that.
375
376 2004-05-09  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
377         * HashAlgorithm.cs,
378         NpgsqlAsciiRow.cs,
379         NpgsqlBinaryRow.cs,
380         NpgsqlClosedState.cs,
381         NpgsqlCommand.cs,
382         NpgsqlCommandBuilder.cs,
383         NpgsqlConnection.cs,
384         NpgsqlDataReader.cs,
385         NpgsqlException.cs,
386         NpgsqlParameterCollection.cs,
387         NpgsqlReadyState.cs,
388         NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws mor
389 e meaningful exceptions instead of throw NpgsqlException which are now exclusive
390 ly to sign server errors. Thanks Glen Parker (glenebob@nwlink.com) for the patch.
391
392
393
394 2004-05-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
395
396         * Makefile:
397         * Npgsql.dll.resources: all the resources command line options are now
398         in a separate response file.
399
400 2004-05-04  Jaroslaw Kowalski <jaak@zd.com.pl>
401         * Npgsql/NpgsqlDataReader.cs: Fixed RecordsAffected to properly return -1 after "create table" and similar commands.
402
403 2004-05-01  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
404
405         * Npgsql/NpgsqlCommand.cs,
406         Npgsql/NpgsqlConnection.cs,
407         Npgsql/NpgsqlConnector.cs,
408         Npgsql/NpgsqlConnectorPool.cs,
409         Npgsql/NpgsqlError.cs,
410         Npgsql/NpgsqlException.cs,
411         Npgsql/NpgsqlParameterCollection.cs,
412         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.
413
414 2004-04-30  Todd Berman  <tberman@sevenl.net>
415
416         * Npgsql/AssemblyInfo.cs: use the proper path to the .pub file
417
418 2004-04-30  Duncan Mak  <duncan@ximian.com>
419
420         * Npgsql/AssemblyInfo.cs: Enable delay signing, using Npgsql.pub.
421
422         * Npgsql/Npgsql.pub: Added to CVS.
423
424 2004-04-21  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
425         * Npgsql/NpgsqlDataAdapter.cs: Changed RowUpdated and RowUpdating prefix to Npgsql.
426         * Npgsql/NpgsqlClosedState.cs: Removed dependency in TlsException. Carlos Guzman will change this excpetion to internal.
427
428         * Npgsql/NpgsqlCommand.cs
429         * Npgsql/NpgsqlCommand.resx
430         * Npgsql/NpgsqlConnection.cs
431         * Npgsql/NpgsqlConnection.resx
432         * Npgsql/NpgsqlDataAdapter.cs
433         * Npgsql/NpgsqlError.cs
434         * Npgsql/NpgsqlException.cs
435         * Npgsql/NpgsqlException.resx
436         * Npgsql/NpgsqlMediator.cs
437         * Npgsql/NpgsqlState.cs
438         * Npgsql/NpgsqlState.resx
439         * 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.
440
441
442
443 2004-04-09  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
444         * 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.
445
446 2004-03-28  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
447         * 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.
448
449 2004-03-28  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
450         * Npgsql/NpgsqlConnection.cs: Implemented IClonable interface in NpgsqlConnection class. Thanks Juliano Barbosa for pointing it out.
451
452 2004-03-22  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
453         * Npgsql/NpgsqlAsciiRow.cs
454         * Npgsql/NpgsqlBinaryRow.cs
455         * Npgsql/NpgsqlDataReader.cs: Fixed NpgsqlDataReader.IsDBNull(). It wasn't working for postgresql 7.4+. Thanks Glen Parker (glenebob@nwlink.com) for the patch.
456
457
458 2004-03-13  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
459
460         * Npgsql/NpgsqlConnection.cs:
461         * 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.
462         * NpgsqlTypes/NpgsqlTypesHelper: Applied patch to correctly parse datetimes values with timezone information. Thanks Glen Parker <glenebob@nwlink.com> for the patch.
463         
464
465 2004-03-06  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
466
467         * Npgsql/NpgsqlConnectorPool.cs: Fixed bug 706 in gborg. Now Max timeout will be working correctly. Thanks Sami Kuhmonen <feenix@iqs.fi> for the patch.
468
469 2004-02-29  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
470         * Npgsql/NpgsqlConnection.cs: Better handling of connection encoding. Added support for encoding and connection timeout in connection string.
471         * Npgsql/NpgsqlConnectorPool.cs: Added support for timeout and max connection pool.
472
473 2004-02-28  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
474
475         * Npgsql/NpgsqlConnector.cs: Added support for connection encoding.
476         * Npgsql/NpgsqlConnection.cs: Better handling of connection encoding.
477         * 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.
478
479
480 2004-02-25  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
481
482         * Npgsql/NpgsqlDataReader.cs: Fixed a OutOfBoundsException when trying to access an element after have read all elements. Now it throws an InvalidOperationException.
483
484         * Npgsql/NpgsqlConnection.cs: Fixed Unicode handling. This also fixes bug 695 in gborg. Thanks Sami Kuhmonen <feenix@iqs.fi> for the patch.
485
486  
487 2004-02-16  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
488
489         * Npgsql/NpgsqlDataReader.cs: Removed a log line which reduced the conne
490 ction startup time in 300 milliseconds.
491
492 2004-02-16  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
493
494         * NpgsqlConnection.cs: Added support for Unicode encoding. Fixes feature
495 request 534 on gborg. Thanks Ivar <ivar@lumisoft.ee> for pointing it out.
496
497 2004-02-16 Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
498
499         * Npgsql/NpgsqlStartupPacket.cs: Added code to set datestyle to iso when
500 connecting using protocol 3.0 version. Thanks Sami Kuhmonen <feenix@iqs.fi> for pointing it out.
501
502 2004-02-14  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
503
504         * Npgsql/NpgsqlCommand.cs: Fixed a bug when handling queries which return no data. Thanks Morten Mertner <morten@mertner.com> for the fix.
505
506 2004-02-10  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
507         
508         * NpgsqlTypes/NpgsqlTypesHelper.cs: Added support for datetime and time datatypes with timezone data. Thanks Sami Kuhmonen (sami@iqs.fi).
509
510 2004-01-15  Jackson Harper <jackson@ximian.com>
511
512         * NpgslTypes/NpgsqlTypesHelper.cs: Add StringFixedLength type.
513         
514 2003-11-23  Pedro Mart�ez Juli� <yoros@wanadoo.es>
515
516         * Npgsql/HashAlgorithm.cs:
517         * Npgsql/NpgsqlClosedState.cs:
518         * Npgsql/NpgsqlCommand.cs:
519         * Npgsql/NpgsqlConnectedState.cs:
520         * Npgsql/NpgsqlConnection.cs:
521         * Npgsql/NpgsqlReadyState.cs:
522         * Npgsql/NpgsqlStartupState.cs:
523         * Npgsql/NpgsqlState.cs: Apply Disposable pattern, when using
524         ADO.NET we need to call Dispose after using any Component like
525         NpgsqlDataAdapter, NpgsqlConnection, etc... Change a few internal
526         methods to Properties.
527
528 2003-11-22  Pedro Mart�ez Juli� <yoros@wanadoo.es>
529
530         * Npgsql/NpgsqlClosedState.cs:
531         * Npgsql/NpgsqlConnectedState.cs:
532         * Npgsql/NpgsqlConnection.cs:
533         * Npgsql/NpgsqlReadyState.cs:
534         * Npgsql/NpgsqlState.cs: Changes related to the last update of SSL
535         implementation. Now we're using TcpClient for the connection and
536         Stream for the abstraction layer to SslClientStream.
537
538 2003-11-11  Pedro Mart�ez Juli� <yoros@wanadoo.es>
539
540         * Npgsql/NpgsqlDataReader.cs: GetSchemaTable has nothing to do with
541         CanRead because the schema can be readed with or without result
542         rows.
543
544 2003-11-10  Pedro Mart�ez Juli� <yoros@wanadoo.es>
545
546         * Npgsql/NpgsqlDataAdapter.cs: Best use "if" instead of try-catch.
547
548 2003-11-10  Pedro Mart�ez Juli� <yoros@wanadoo.es>
549
550         * Npgsql/NpgsqlDataAdapter.cs: Catch the exception thrown by MS.NET
551         when a mapping is not in the collection.
552
553 2003-11-09  Pedro Mart�ez Juli� <yoros@wanadoo.es>
554
555         * Npgsql/NpgsqlDataAdapter.cs: Do not assing the result of the
556         CommandBuilder to the local data. Local data should be null if the
557         client doesn't set them.
558
559         * Npgsql/NpgsqlCommandBuilder.cs: Mistake in param name fixed.
560
561 2003-11-09  Pedro Mart�ez Juli� <yoros@wanadoo.es>
562
563         * Makefile: Little fix for build the resources.
564
565         * Npgsql/NpgsqlCommandBuilder.cs: Added row version in delete
566         command.
567
568 2003-11-08  Pedro Mart�ez Juli� <yoros@wanadoo.es>
569
570         * Npgsql/NpgsqlCommand.cs: Removed try-catch for Resource Manager
571         calls, the problem is fixed.
572
573         * Makefile: Fix one bug in the build of resources.
574
575 2003-11-08  Pedro Mart�ez Juli� <yoros@wanadoo.es>
576
577         * Npgsql/NpgsqlCommandBuilder.cs: Added the command builder.
578
579         * Npgsql/NpgsqlDataAdapter.cs: Added the CommandBuilder stuff. When
580         OnRowUpdating is called we create the command necesary for updating,
581         inserting or deleting any row of the DataTable/DataSet.
582
583         * Npgsql/NpgsqlCommand.cs: Temporary try-catch. ResMan still doesn't
584         work. This must be removed when ResMan works.
585
586         * Npgsql/NpgsqlParameter: No more than one call to value.GetType()
587         is more efficient for the deep if structure types.
588
589 2003-11-07  Pedro Mart�ez Juli� <yoros@wanadoo.es>
590
591         * Npgsql/NpgsqlDataAdapter.cs: Fixed the mistake I did in the last
592         change. The Command objects must not be created in the constructor.
593         The Commands should be in the overrided method "OnRowUpdating".
594
595         * Npgsql/NpgsqlCommand.cs: Added two try-catch instructions to get
596         the proper exception (not MissingManifestResourceException). It is
597         thrown in MS.NET and in MONO. (Npgsql compiled with MCS).
598
599 2003-11-07  Pedro Mart�ez Juli� <yoros@wanadoo.es>
600
601         * Npgsql/NpgsqlDataAdapter.cs: Create new Command classes for the
602         different Insrt / Update / Delete commands.
603
604 2003-10-20  Pedro Mart�ez Juli� <yoros@wanadoo.es>
605
606         * Npgsql/NpgsqlClosedState.cs:
607         * Npgsql/NpgsqlConnection.cs:
608         * Npgsql/NpgsqlConnectedState.cs:
609         * Npgsql/NpgsqlReadyState.cs:
610         * Npgsql/NpgsqlState.cs: Changed the namespace for Tls, now the
611         namespace is Mono.System.Protocol.Tls, before was
612         System.Security.Tls.
613
614         * Npgsql/Makefile: Change reference from System.Security.Tls to
615         Mono.Security (now Tls lives there).
616
617 2003-10-16  Pedro Mart�ez Juli� <yoros@wanadoo.es>
618
619         * Npgsql/NpgsqlClosedState.cs:
620         * Npgsql/NpgsqlConnectedState.cs:
621         * Npgsql/NpgsqlConnection.cs: Changed TcpClient by TlsSession
622         because now it is used TlsSession and it doesn't work without
623         these changes.
624
625 2003-10-16  Pedro Mart�ez Juli� <yoros@wanadoo.es>
626
627         * Makefile: changed reference from Lib/System.Security.Tls.dll to
628         System.Security.Tls because the last will be installed before and
629         separatelly.
630
631         * Lib: Removed Lib directory, moved System.Security.Tls.dll to
632         Mono.Security.Tls library directory.
633
634 2003-10-15  Pedro Mart�ez Juli� <yoros@wanadoo.es>
635
636         * Makefile: fix building and the install objectives.
637
638 2003-04-26  Pedro Mart�ez Juli� <yoros@wanadoo.es>
639
640         * Npgsql/NpgsqlDataReader.cs: Change GetFloat and GetDouble. Now
641         they works as direct casting from GetValue.
642
643 2003-07-18  Peter Williams  <peter@newton.cx>
644
645         * Npgsql/AssemblyInfo.cs: Don't strongname the assembly, because
646         we can't unless corlib is strongnamed too. Not a wonderful solution,
647         but I don't think this ever worked anyway.
648
649 2003-05-25  Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
650         * Npgsql/NpgsqlDataReader.cs: Fixed an invalid index exception when
651         processing 0 rows queries.
652
653 2003-04-26  Pedro Mart�ez Juli� <yoros@wanadoo.es>
654
655         * Npgsql/NpgsqlDataReader.cs: Now GetDateTime works for "dd/MM/yyyy"
656         date formats. I think that it's needed support to auto-detect
657         DateTime format through PgSql server configuration.
658
659 2003-01-28  Daniel Morgan <danmorg@sc.rr.com>
660
661         * Npgsql.build: got it to work for Windows build
662         
663         * Npgsql/Npgsql.build
664         * Npgsql/Npgsql.cmbx 
665         * Npgsql/Npgsql.prjx: removed files not needed
666
667 2003-01-28  Daniel Morgan <danmorg@sc.rr.com>
668
669         * added the Npgsql (Npgsql is a .Net Data Provider for PostgreSQL)
670           from http://gborg.postgresql.org/project/npgsql/projdisplay.php
671           by adding the following files and directories to the mcs module
672           in mono-cvs.ximian.com at mcs/class:
673       
674       Npgsql (directory)     
675       ChangeLog    
676       Makefile  
677       Npgsql.build  
678       RELEASENOTES.txt  
679       TODO.txt  
680       makefile.gnu
681       LICENSE.txt  
682       README.txt
683       STATUS.txt
684       list
685           Npgsql/Npgsql (directory)
686           Npgsql/AssemblyInfo.cs
687           Npgsql/NpgsqlAsciiRow.cs
688           Npgsql/NpgsqlBackEndKeyData.cs
689           Npgsql/NpgsqlClosedState.cs
690           Npgsql/NpgsqlCommand.cs
691           Npgsql/NpgsqlConnectedState.cs
692           Npgsql/NpgsqlConnection.cs
693           Npgsql/NpgsqlConnector.cs
694           Npgsql/NpgsqlConnectorPool.cs
695           Npgsql/NpgsqlDataAdapter.cs
696           Npgsql/NpgsqlDataReader.cs
697           Npgsql/NpgsqlEventLog.cs
698           Npgsql/NpgsqlException.cs
699           Npgsql/NpgsqlMediator.cs
700           Npgsql/NpgsqlMessageTypes.cs
701           Npgsql/NpgsqlParameter.cs
702           Npgsql/NpgsqlParameterCollection.cs
703           Npgsql/NpgsqlPasswordPacket.cs
704           Npgsql/NpgsqlQuery.cs
705           Npgsql/NpgsqlReadyState.cs
706           Npgsql/NpgsqlResultSet.cs
707           Npgsql/NpgsqlRowDescription.cs
708           Npgsql/NpgsqlStartupPacket.cs
709           Npgsql/NpgsqlStartupState.cs
710           Npgsql/NpgsqlState.cs
711           Npgsql/NpgsqlTransaction.cs
712           Npgsql/PGUtil.cs
713