* SqlCommand.cs: Fixed param name in ArgumentException for negative
[mono.git] / mcs / class / System.Data / System.Data.SqlClient / ChangeLog
1 2008-07-28  Gert Driesen  <drieseng@users.sourceforge.net>
2
3         * SqlCommand.cs: Fixed param name in ArgumentException for negative
4         CommandTimeout to match MS. On 2.0 profile, throw NRE in Prepare
5         when connection is NULL. In Prepare, return immediately after
6         connection check (2.0 only) for stored procedures, or when no
7         parameters are added. Added check to see if transaction is
8         associated with same connection as the command and updated
9         exception messages.
10
11 2008-07-28  Gert Driesen  <drieseng@users.sourceforge.net>
12
13         * SqlCommand.cs: Added bool argument to ValidateCommand to specify
14         whether an async method is being executed. Minor changes to exception
15         messages to match MS.
16
17 2008-07-28  Gert Driesen  <drieseng@users.sourceforge.net>
18
19         * SqlCommand.cs: Avoid NRE in CloseDataReader when connection is NULL.
20         Fixes bug #412584. Removed unused moreResults eargument from
21         CloseDataReader. Removed behavior argument from Execute, and have it
22         use the behavior field instead. In ValidateCommand, throw
23         InvalidOperationException instead of NRE when Connection is NULL.
24         * SqlDataReader.cs: Sync with SqlCommand's CloseDataReader signature
25         change.
26
27 2008-07-28  Gert Driesen  <drieseng@users.sourceforge.net>
28
29         * SqlCommand.cs: (Transaction): On the 1.0 profile, do not allow
30         Transaction to be set when a reader is open for the current connection. 
31         Fixes bug #412579. 
32
33 2008-07-28  Gert Driesen  <drieseng@users.sourceforge.net>
34
35         * SqlCommand.cs (Connection): Do not throw InvalidOperationException
36         if transaction is in progress. Fixes bug #412576. On 1.0 profile, throw
37         InvalidOperationException when a reader is open for the current
38         connection. Do not set transaction to NULL when changing connection,
39         instead set it to null in Transaction when transaction is no longer
40         open.
41
42 2008-07-28  Gert Driesen  <drieseng@users.sourceforge.net>
43
44         * SqlConnection.cs: Use null as default value for connectionString
45         field. Remove Init method, as initialization is done in
46         SetDefaultConnectionParameters. Initialize parms in
47         SetDefaultConnectionParameters to avoid calling Reset on newly
48         initialized collection. In Dispose (bool), also invoke base.Dispose if
49         SqlConnection was already disposed. Fixes bug #412571. 
50
51 2008-07-28  Gert Driesen  <drieseng@users.sourceforge.net>
52
53         * SqlConnection.cs (ChangeState): Return immediately when new state
54         equals original state. Fixes bug #412574. Removed extra whitespace.
55
56 2008-07-23  Veerapuram Varadhan  <vvaradhan@novell.com>
57
58         * SqlDataReader.cs (NextResult): Memleak fix - mark datatypeNames
59         array to be GCed along with schemaTable.
60         
61 2008-07-23  Veerapuram Varadhan  <vvaradhan@novell.com>
62
63         * SqlDataReader.cs: Do not generate schemaTable unless otherwise
64         asked for; use command.Tds.Columns instead.  Improves performance
65         of the DataReader.
66         
67 2008-07-10  Veerapuram Varadhan  <vvaradhan@novell.com>
68
69         ** Fixes #326182
70         * SqlCommand.cs (GetOutputParameters): Update parameter values iff 
71         parameter direction is InputOutput or Output.
72         
73 2008-07-06  Gert Driesen  <drieseng@users.sourceforge.net>
74
75         * SqlException.cs: Modified HResult/ErrorCode to match MS. Removed
76         unused FromTdsInternalException overload. Removed unnecessary check
77         for Errors.Count. Minor code formatting.
78
79 2008-07-03  Rodrigo Kumpera  <rkumpera@novell.com>
80
81         * SqlConnection.cs: Remove connStringParameters as nobody uses it.
82         
83 2008-07-01  Rodrigo Kumpera  <rkumpera@novell.com>
84
85         * SqlDataReader.cs: Do all column accesses with int indexes.    
86
87 2008-07-01  Rodrigo Kumpera  <rkumpera@novell.com>
88
89         * SqlDataReader.cs (GetSchemaTable): All column index are constants,
90         extract them.
91
92 2008-07-01  Rodrigo Kumpera  <rkumpera@novell.com>
93
94         * SqlDataReader.cs (GetSchemaTable): Calculate column indexes
95         outside of the row loop.
96
97 2008-07-01  Marek Habersack  <mhabersack@novell.com>
98
99         * SqlDataReader.cs: use named properties in TdsDataColumn for the
100         2.0 profile.
101
102 2008-06-30  Zoltan Varga  <vargaz@gmail.com>
103
104         * SqlDataReader.cs: Allocate 'schemaTable' lazily. 
105         (GetSchemaValue): Avoid some hash table lookups
106
107 2008-06-27  Zoltan Varga  <vargaz@gmail.com>
108
109         * SqlDataReader.cs (ConstructSchemaTable): Avoid unneccessary reflection calls.
110
111 2008-06-23  Veerapuram Varadhan  <vvaradhan@novell.com>
112
113         * SqlDependency.cs: New
114         
115 2008-06-12  Veerapuram Varadhan  <vvaradhan@novell.com>
116         
117         Patch by Christian Hergert <christian.hergert@gmail.com>
118         * SqlConnection.cs (Open): Do not reset the connection as it is already 
119         done in the TdsConnectionPool itself.
120         
121 2008-06-12  Marek Habersack  <mhabersack@novell.com>
122
123         * SqlParameterCollection.cs: this [int] must check the range and
124         throw an exception if necessary.
125         
126         * SqlCommand.cs: throw IOEX when stored procedure is not found in
127         DeriveParameters. All procedures in MS SQL will report at least
128         one parameter - the return value.
129
130 2008-06-10  Veerapuram Varadhan  <vvaradhan@novell.com>
131         
132         * SqlConnection.cs: TdsConnectionPool.GetConnectionPool() now returns 
133         IDictionary<TKey, TValue>. 
134         
135 2008-06-09  Ankit Jain  <jankit@novell.com>
136
137         * SqlCommand.cs: Use Tds instead of ITds now.
138         * SqlConnection.cs:  Likewise.
139
140 2008-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
141
142         * SqlConnection.cs: Added support for '.' as alias for localhost.
143         Improve exception message when TCP/IP protocol is not enabled.
144
145 2008-05-17  Gert Driesen  <drieseng@users.sourceforge.net>
146
147         * SqlDataReader.cs (GetInt64): Removed workaround for TDS 7.0 handling
148         of bigint column type as this is handled in Mono.Data.Tds.
149
150 2008-05-14  Marek Habersack  <mhabersack@novell.com>
151
152         * SqlConnection.cs: added support for USER INSTANCE keyword in the
153         connection string.
154
155 2008-04-22  Veerapuram Varadhan  <vvaradhan@novell.com>
156
157         ** Fixes Bug#381151
158         * SqlCommand.cs: Handle exceptions sanely and do not close
159         connection on TdsTimeoutException.
160         
161 2008-04-21  Gert Driesen  <drieseng@users.sourceforge.net>
162
163         * SqlBulkCopyColumnMappingCollection.cs: Changed argument names to
164         match MS. Code formatting.
165         * SqlCommand.cs: Changed argument names to match MS. Code formatting.
166         Do not include explicit IDbCommand implementation on 2.0 profile.
167         * SqlCommandBuilder.cs: Changed argument names to match MS. Code
168         formatting.
169         * SqlDataReader.cs: Changed argument names to match MS. Code
170         formatting.
171         * SqlParameterCollection.cs: Do not include IList, ICollection and
172         IDataParameterCollection explicit interface implementation on 2.0
173         profile. Code formatting.
174         * SqlConnection.cs: Changed argument names to match MS.
175         * SqlDataAdapter.cs: Changed argument names to match MS.
176         * SqlTransaction.cs: Do not include explicit interface implementation
177         of IDbTransaction.Connection on 2.0 profile. Code formatting.
178
179 2008-04-19  Robert Jordan  <robertj@gmx.net>
180
181         * SqlParameterCollection.cs (AddRange(SqlParameter[])):
182         Fix endless recursion.
183
184 2008-04-08  Marek Habersack  <mhabersack@novell.com>
185
186         * SqlConnection.cs: TCP port discovery via UDP port 1434 should
187         honor the timeout specified in the connection string (or the
188         default one). In some environments 100 microseconds might not be
189         enough to discover the port.
190
191 2008-04-01  Marek Habersack  <mhabersack@novell.com>
192
193         * SqlParameter.cs: ConvertToFrameworkType must handle empty
194         strings gracefully - a DBNull.Value must be returned in this
195         case.
196
197         * SqlCommand.cs: DeriveParameters should split the stored
198         procedure name into the schema name and procedure name before
199         querying its parameters.
200
201 2008-03-03  Ankit Jain  <jankit@novell.com>
202
203         * SqlClientMetaDataCollectionNames.cs: Set the field values.
204
205 2007-10-21  Gert Driesen  <drieseng@users.sourceforge.net>
206
207         * SqlCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
208
209 2007-10-20  Gert Driesen  <drieseng@users.sourceforge.net>
210
211         * SqlCommand.cs: Added constant for default CommandTimeout, instead
212         of using a magic number. Avoid unnecessary initialization. Fixed
213         default value for DesignTimeVisible. Return zero-length string if
214         CommandText is null. Use ExceptionHelper.InvalidEnumValueException
215         to avoid code duplication. Spaces to tabs and code formatting.
216         * SqlConnection.cs: Use different default package size on 2.0 profile.
217         Added constants for default values, instead of using magic numbers.
218         Avoid unnecessary initialization. In PacketSize, return default or
219         configured packet size when connection is not open. Use
220         ExceptionHelper.ConnectionClosed instead of local method. Removed
221         use of some hardcoded values in SetDefaultConnectionParameters, and
222         use Environment.MachineName as default WorkstationId instead of
223         DNS host name. Code formatting.
224         * SqlDataAdapter.cs: In default ctor, set SelectCommand to null.
225         Avoid unnecessary initializations. Use direct assignment in
226         IDbDataAdapter implementation. Fixed exception message for negative
227         UpdateBatchSize. In Dispose override, make sure to invoke base
228         method.
229
230 2007-10-19  Gert Driesen  <drieseng@users.sourceforge.net>
231
232         * SqlTransaction.cs: Clear connection in commit. In IsolationLevel,
233         throw IOE if transaction is no longer open.
234
235 2007-10-19  Gert Driesen  <drieseng@users.sourceforge.net>
236
237         * SqlTransaction.cs: Avoid unnecessary initialization. Remove 
238         isRolledBack since its essentially the same as isOpen. Use
239         ExceptionHelper.TransactionNotUsable instead of duplicating code.
240         On 2.0 profile, ignore call to Rollback when transaction was already
241         disposed.
242
243 2007-10-18  Gert Driesen  <drieseng@users.sourceforge.net>
244
245         * SqlConnection.cs: Avoid unnecessary initialization. Use string.Empty
246         for assigning zero-length string, and use String.Length to check for
247         zero-length string. Added support for IsolationLevel.Snapshot.
248         Added StructuredTypeMembers schema collection and restrictions. Fixed
249         table name for MetaDataCollections collection. Implemented
250         DataSourceInformation collection. Added missing data types (probably
251         introduced in 2.0 SP1). In GetSchema, throw InvalidOperationException
252         if connection is closed and throw NotImplementedException for
253         StructuredTypeMembers collection.
254
255 2007-10-18  Gert Driesen  <drieseng@users.sourceforge.net>
256
257         * SqlConnection.cs: On 1.0 profile, IsolationLevel.Unspecified is
258         not valid. On 2.0 profile, when IsolationLevel.Unspecified is passed
259         make sure to also set SqlTransaction.IsolationLevel to
260         ReadCommitted. Modified exceptions to match MS.
261
262 2007-10-17  Nagappan <anagappan@novell.com> 
263
264         * SqlParameter.cs (ConvertToFrameworkType): Added SqlDbType.Image.
265
266 2007-10-17  Nagappan <anagappan@novell.com> 
267
268         * SqlConnection.cs: BeginTransaction does not handle
269           IsolationLevel.Unspecified, so the default is set as ReadCommited.
270           Thanks to Jerome Haltom <wasabi@larvalstage.net> for this patch. Fixes
271           bug # 333082.
272         * SqlTransaction.cs: If transaction count is greater then 0 then roll back.
273           Thanks to Jerome Haltom <wasabi@larvalstage.net> for this patch. Fixes
274           bug # 331953.
275
276 2007-10-15  Gert Driesen  <drieseng@users.sourceforge.net>
277
278         * SqlException.cs: Do not hide Message on 2.0 profile. Fixes bug
279         #333901.
280
281 2007-10-08  Marek Safar <marek.safar@gmail.com> 
282
283         * SqlParameterCollection.cs (SetParameter): Fixed missing cast.
284         
285 2007-09-27  Nagappan A <anagappan@novell.com> 
286
287         * SqlConnection.cs: Added MonoTODO appropriately.
288
289 2007-09-26  Nagappan A <anagappan@novell.com> 
290
291         * SqlCommandBuilder.cs: Code alignment.
292
293 2007-09-25  Nagappan A  <anagappan@novell.com>
294
295         * SqlInitialCatalogConverter.cs, SqlDataSourceConverter.cs:
296         NetworkLibraryConverter.cs: Added new files.
297
298         * SqlParameter.cs: 2.0 attribute changes.
299
300         * SqlDataAdapter.cs: 2.0 attribute changes.
301
302         * SqlConnectionStringBuilder.cs: 2.0 attribute changes.
303
304         * SqlConnection.cs (ClearAllPools, ClearPool): Implemented 2.0
305         APIs, other 2.0 attribute changes.
306
307         * SqlCommandBuilder.cs (GetSchemaTable, InitializeCommand):
308         Implemented 2.0 APIs, other 2.0 attribute changes.
309
310         * SqlBulkCopyColumnMappingCollection.cs: Added constructor, 2.0
311         API compatibility changes.
312
313         * SqlException.cs: 2.0 attribute changes.
314
315 2007-08-13  Nagappan A  <anagappan@novell.com>
316
317         * SqlConnection.cs (ConnectionString): 2.0 compatibility changes.
318
319         * SqlDataReader.cs (IsCommandBehavior): Fixed spelling mistake of
320         the method name.
321         (Dispose): 2.0 compatibility changes.
322
323         * SqlBulkCopy.cs (SqlRowsCopied): Fixed spelling mistake of the
324         event name.
325         (RowsCopied): Generates event when NotifyAfter is set.
326
327         * SqlCommandBuilder.cs (Dispose, RefreshSchema): 2.0 compatibility
328         changes.
329
330         * SqlClientFactory.cs (CreateDataSourceEnumerator): Removed bogus
331         TODO.
332
333         * SqlException.cs (Message): 2.0 compatibility changes.
334
335 2007-08-06  Nagappan A  <anagappan@novell.com>
336
337         * SqlCommand.cs, SqlDataReader.cs, SqlConnection.cs: When the
338         server resets the connection, now the client code also disconnects
339         the session and remove the instance from pool. Fixes bug # 81933.
340
341 2007-07-31  Nagappan A  <anagappan@novell.com>
342
343         * SqlCommand.cs (Transaction, Connection): IDbCommand Transaction
344         and Connection can be set to null. Fixes bug 82189.
345
346 2007-07-23  Nagappan A  <anagappan@novell.com>
347
348         * SqlCommandBuilder.cs (ApplyParameterInfo, GetParameterName):
349         (GetParameterPlaceholder): Implemented 2.0 missing APIs.
350
351 2007-07-22  Nagappan A  <anagappan@novell.com>
352
353         * SqlBulkCopy.cs (NotifyAfter): Implemented 2.0 property.
354         (GetColumnMetaData, GenerateColumnMetaData):
355         (ValidateColumnMapping): Implemented private method's to generate
356         and validate SqlBulkCopy headers.
357         (BulkCopyToServer): Private method to actually do the bulk copy
358         processing.
359         (WriteToServer): Implemented 2.0 missing overloaded methods.
360         (IDisposable.Dispose): Implemented 2.0 missing method.
361
362         * SqlBulkCopyColumnMappingCollection.cs (Add, CopyTo): Implemented
363         missing API.
364         (Item): Implemented missing property.
365
366         * SqlBulkCopyColumnMapping.cs: Modified the implementation of
367         Constructors to use property.
368
369         * SqlDataReader.cs (GetSqlXml, IsCommandBehaviour): Added 2.0
370         missing method.
371         (Connection): Added missing property.
372
373         * SqlParameter.cs (SetSqlDbType, ConvertToFrameworkType): Modified
374         method as internal from private.
375
376         * SqlConnection.cs: Fixed 2.0 missing feature.
377
378         * SqlException.cs: Fixed 2.0 missing feature.
379
380         * SqlClientPermission.cs: Fixed 2.0 missing feature.
381
382 2007-07-01  Gert Driesen  <drieseng@users.sourceforge.net>
383
384         * ISqlNotificationReceiver.cs: Removed.
385         * SqlClientFactory.cs: Use SqlDataSourceEnumerator from S.D.Sql and
386         marked method todo. Avoid unnessary casts. Code formatting.
387         * SqlCommand.cs: Explicit interface implementation of IDbCommand not
388         necessary on 2.0 profile. Fixes API mismatches. Avoid unnecessary
389         casts. Code formatting.
390         * SqlConnection.cs: Also use RecommendAsConfigurable instead of
391         SettingBindableAttribute on 2.0. Use StateChange event from base class
392         on 2.0. Only explicitly implement IDbConnection methods on 1.0, since
393         these are implemented by base class on 2.0 profile. Removed extra
394         explicit implementation of IDisposable since the base class implements
395         this. Code formatting.
396         * SqlDataAdapter.cs: Dispose (bool) override not necessary on 2.0
397         profile. Stubbed ICloneable.Clone. Fixes API mismatches.
398         * SqlDataReader.cs: On 2.0, IDisposable.Dispose is implemented by
399         DbDataReader. Only 1.0 profile, explicitly implemented IEnumerable
400         GetEnumerator. Code formatting.
401         * SqlDataSourceEnumerator.cs: Removed.
402         * SQLDebugging.cs: Marked sealed on 2.0. Code formatting.
403         * SqlNotificationAuthType.cs: Removed.
404         * SqlNotificationInfo.cs: Added missing fields. Code formatting.
405         * SqlNotificationSource.cs: Added missing fields. Code formatting.
406         * SqlNotificationTransports.cs: Removed.
407         * SqlNotificationType.cs: Added missing Unknown field. Code formatting.
408         * SqlParameter.cs: Removed Browsable and EditorBrowsable attributes
409         from Precision and Scale. Fixes API mismatches. Code formatting fixes.
410         * SqlTransaction.cs: On 2.0 profile, Dispose method is exposed by
411         base class. Fixes API mismatches. Code formatting fixes.
412
413 2007-06-21  Nagappan A  <anagappan@novell.com>
414
415         * SqlConnection.cs: Fixed compiler warning.
416
417 2007-06-11  Nagappan A  <anagappan@novell.com>
418
419         * SqlConnection.cs (ParseDataSource): Adds tcp support in
420         connection string. Fixes bug # 80975.
421
422         * SqlCommand.cs (Dispose): On disposing the command object, don't
423         dispose connection and transaction.
424
425 2007-06-06  Nagappan A  <anagappan@novell.com>
426
427         * SqlCommand.cs, SqlConnectionStringBuilder.cs, SqlConnection.cs:
428         Fixed 1.0 and 2.0 extras, errors as stated in class status page.
429
430         * SqlDataAdapter.cs, SqlParameter.cs:Fixed 1.0 and 2.0 extras,
431         errors as stated in class status page.
432
433         * SqlBulkCopyColumnMappingCollection.cs: Fixed 1.0 and 2.0 extras,
434         errors as stated in class status page.
435
436 2007-05-30  Nagappan A  <anagappan@novell.com>
437
438         * SqlParameter.cs (SqlParameter): Updated constructor to use the
439         new TDS RPC implementation.
440         Fixed missing attributes.
441         (SetDbType): Added new case for sql_variant type.
442         (ConvertToFrameworkType): Implemented new private method to
443         convert the data type to framework type.
444
445         * SqlParameterCollection.cs: Fixed missing attributes and
446         implemented missing methods.
447
448         * SqlConnection.cs: Fixed missing attributes.
449
450         * SqlConnectionStringBuilder.cs: Certain attributes are missing or
451         its value or they are not appropriate. Fixed them.
452
453         * SqlDataReader.cs (GetData): Method is available only under 1.0
454         profile.
455         
456         * SqlCommandBuilder.cs: Certain attributes are available only
457         under 2.0 profile, so moved them inside ifdef.
458
459         * SqlCommand.cs: Certain attributes are available only under 2.0
460         profile, so moved them inside ifdef.
461
462         * SqlBulkCopy.cs: Added new stubs.
463
464         * SqlBulkCopyColumnMappingCollection.cs: Added new stubs.
465
466 2007-05-29  Nagappan A  <anagappan@novell.com>
467
468         * SqlCommand.cs (Dispose): Command.Dispose closing
469         connection. Fixes bug # 81710. Thanks to AMC <amc1999@gmail.com>
470         for the fix.
471
472 2007-05-10  Nagappan A  <anagappan@novell.com>
473
474         * SqlClientMetaDataCollectionNames.cs: Fixed incorrect constructor
475         type.
476
477         * SqlConnectionStringBuilder.cs: Fixed missing attributes.
478
479 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
480
481         * SqlConnectionStringBuilder.cs: added MonoNotSupported attribute.
482
483 2007-04-03  Amit Biswas  <amit@amitbiswas.com>
484
485         * SqlDataReader.cs (GetSqlBytes, GetProviderSpecificFieldType)
486         (GetProviderSpecificValue, GetProviderSpecificValues): Implemented
487         missing API.
488
489         * SqlParameter.cs (XmlSchemaCollectionDatabase): Implemented missing property
490         (XmlSchemaCollectionName): Implemented missing property
491         (XmlSchemaCollectionOwningSchema): Implemented missing property
492         (SourceColumnNullMapping): Existing implementation was not correct, Replaced the implementation
493         (.ctor): Implemented mising constructor new in .net 2.0
494
495         * SqlErrorCollection.cs (CopyTo): Implemented missing API
496
497         * SqlParameter.cs (InferSqlType): Corrected bug related to default values of
498         SqlDbType and DbType
499         (ResetSqlDbType): Implemented missing API
500         (ResetDbType): Implemented missing API  
501
502 2007-03-09  Amit Biswas  <amit@amitbiswas.com>
503
504         * SqlParameterCollection.cs (CopyTo): Implemented missing API
505
506 2007-04-02  Nagappan A  <anagappan@novell.com>
507
508         * SqlParameter.cs: Variable name fix.
509
510 2007-03-20  Nidhi Rawal  <rawalnidhi_rawal@yahoo.com>
511
512         * SqlClientFactory.cs: Added two using directives.
513         (CreateConnectionStringBuilder): Implemented the method.
514         (CreatePermission): Implemented the property.
515         
516         * SqlCommand.cs: Added one using directive.
517         (Clone): Implemented the method.
518         (Dispose): Implemented the method.
519         (BeginExecuteXmlReader): Implemented the method.
520         
521         * SqlCommandBuilder.cs (QuoteIdentifier): Implemented the method.
522         (UnquoteIdentifier): Implemented the method.
523         
524         * SqlConnection.cs (ChangePassword): Implemented the method.
525
526 2007-03-19  Nidhi Rawal  <rawalnidhi_rawal@yahoo.com>
527
528         * SqlClientFactory.cs (CanCreateDataSourceEnumerator): Implemented
529         the property.
530
531         * SqlCommand.cs (Notification): Implemented the property.
532         (NotificationAutoEnlist): Implemented the property.
533
534         * SqlDataReader.cs (VisibleFieldCount): Implemented the property.
535
536         * SqlConnectionStringBuilder.cs (TrustServerCertificate): Implemented
537         the property.
538         (TypeSystemVersion): Implemented the property.
539         (UserInstance): Implemented the property.
540         (ContextConnection): Implemented the property.
541
542         * SqlConnection.cs (FireInfoMessageEventOnUserErrors): Implemented
543         the property.
544         (StatisticsEnabled): Implemented the property.
545         
546         * SqlDataAdapter.cs (UpdateBatchSize): Implemented the property.
547
548         * SqlParameter.cs: Implemented one attribute.
549
550 2007-03-16  Andreia Gaita  <avidigal@novell.com>
551         
552         * SqlParameter.cs: Move isVariableSizeType flag to TdsMetaParameter
553         so that the TdsMetaParameter can validate itself for valid size / values.
554         * SqlCommand.cs (Execute): Call Validate on TdsMetaParameter.
555
556 2007-03-14  Nagappan A  <anagappan@novell.com>
557
558         * SqlCommand.cs (CommandType): Exception type thrown in 2.0
559         profile is different than 1.0, ArgumentOutOfRangeException.
560         (Connection): Exception type thrown in 2.0 profile is different
561         than 1.0, ArgumentOutOfRangeException.
562         (Execute): If Size property is 0 for String and Binary type, then
563         throw InvalidOperationException.
564         (ValidateCommand): Exception type thrown in 2.0 profile is
565         different than 1.0, NullReferenceException.
566
567 2007-03-09  Nagappan A  <anagappan@novell.com>
568
569         * SqlDataReader.cs: Fixed syntax erros reported in class status
570         page.
571
572 2007-03-09  Andreia Gaita  <avidigal@novell.com>
573
574         * SqlCommand.cs (ExecuteScalar): Fix returned value for 
575         stored procedure calls to return the first column of the
576         first row produced by the proc.
577
578 2007-03-08  Nagappan A  <anagappan@novell.com>
579
580         * SqlCommand.cs (CloseDataReader): Checks whether the SQL
581         connection is created or not.
582
583 2007-03-07  Andreia Gaita <avidigal@novell.com>
584
585         * SqlCommand.cs (ExecuteScalar): when calling stored procedures,
586         implement support for return of output values in the parameter
587         collection.
588
589 2007-02-16  Nidhi Rawal  <rawalnidhi_rawal@yahoo.com>
590
591         * SqlParameter.cs (CompareInfo): Implemented the property
592         CompareInfo.
593         (LocaleId): Written the property LocaleId.
594         (SqlValue): Written the propert SqlValue.
595
596 2007-02-15  Nidhi Rawal  <rawalnidhi_rawal@yahoo.com>
597
598         * SqlCommand.cs: Added some attributes which were not implemented
599         for .NET 2.0 and removed extra attribute which are not there in
600         .NET 2.0.
601
602         * SqlCommandBuilder.cs: Added some attributes that were not 
603         implemented for .NET 2.0.
604
605         * SqlParameterCollection.cs: Added some attributes that were 
606         not implemented for .NET 2.0.
607
608         * SqlConnectionStringBuilder.cs: Added some attributes that
609          were not implemented for .NET 2.0.
610         
611         * SqlConnection.cs: Added attribute that was not implemented
612         for .NET 2.0.
613
614         * SqlParameter.cs: Added some attributes which were not
615         implemented for .NET 2.0 and removed some extra attributes which
616         are not there in .NET 2.0
617
618 2007-02-09  Nagappan A  <anagappan@novell.com>
619
620         * SqlConnection.cs (SetConnectionString): Fixes bug # 80712. A
621         small typo.
622
623 2007-01-08  Nagappan A  <anagappan@novell.com>
624
625         * SqlTransaction.cs (Dispose): Fixed compliation warning.
626
627         * SqlDataReader.cs (GetValues): Length of elements to be copied was
628         decided based on the argument array passed, which caused a bug, if
629         the length of given array is more than actual column values.
630
631         * SqlCommandBuilder.cs (CatalogSeparator, SchemaSeparator)
632         (CatalogLocation): Implemented missing properties.
633         (CreateDeleteCommand, CreateInsertCommand, CreateUpdateCommand):
634         Modified private methods to take bool flag. If true, add actual
635         parameter name instead of p1, p2 etc.
636         (CreateParameter): Added overloaded private method to create
637         parameter with the actual column name.
638         (GetUpdateCommand, GetDeleteCommand, GetInsertCommand):
639         Implemented missing overloaded methods.
640         (SetRowUpdatingHandler): Implemented missing protected method.
641
642         * SqlCommand.cs: Fixed compilation warning. Removed bogus
643         MonoTODO's.
644
645 2006-12-05  Nagappan A  <anagappan@novell.com>
646
647         * SqlCommand.cs (Execute): If sql2 length is greater than 0, then
648         add ';' and the respective sql2 string and then execute the
649         string. Fixes bug # 79880.
650
651 2006-08-30  Nagappan A  <anagappan@novell.com>
652
653         * SqlConnection.cs: Implemented SqlConnection.GetSchema ().
654
655 2006-09-08  Konstantin Triger <kostat@mainsoft.com>
656
657         * SqlClientFactory.cs: implemented SqlClientFactory.CreateConnection ().
658
659 2006-07-13  Senganal T  <tsenganal@novell.com>
660
661         * SqlClientFactory.cs SqlCommand.cs SqlConnectionFactory.cs 
662         SqlClientPermission.cs SqlParameterCollection.cs SqlDataReader.cs 
663         SqlConnection.cs SqlParameter.cs SqlTransaction.cs :
664                 2.0 Api fixes
665
666 2006-05-31  Gert Driesen  <drieseng@users.sourceforge.net>
667
668         * SqlConnection.cs: Removed extra destructor, as destructor on 
669         System.ComponentModel.Component already calls Dispose.
670         * SqlParameter.cs: Removed explicit interface implementation of
671         IDataParameter.ParameterName.
672
673 2006-05-26  Senganal T  <tsenganal@novell.com>
674
675         * SqlParameter.cs :
676                 - InferSqlType : if value is null or DBNull.Value, retain the
677                 current parameter type.
678
679 2006-04-18  Senganal T  <tsenganal@novell.com>
680
681         * SqlConnection.cs :
682                 - SetConnectionString : set the pareameter to default values
683                 if connection string is empty or null
684                 - Open : Raise InvalidOperationException if Connection String
685                 is empty or null
686                 - Dispose : Test exception not raised if dispose called on a
687                 connection with empty connection string
688
689         slight modification of the patch by Jonel Rienton
690
691 2006-04-07  Senganal T  <tsenganal@novell.com>
692
693         * SqlCommandBuilder.cs :
694                 * CreateDeleteCommand () 
695                 * CreateUpdateCommand () 
696                 * CreateInsertCommand () 
697                         - Changed the signature. Do not need DataRow parameter 
698                         as the Query generated is parametric.
699                         - Correct the null-check term in the WhereClause, set the
700                         correct properties for null-check parameter
701                         fixes #78027
702                         - Modified the generated query to match the query as
703                         generated by 2.0. We now ignore null-check in the
704                         whereclause if the Column does not allow nulls.
705                 * ctor () : Set QuotePrefix and QuoteSuffix for 2.0 profile
706                 * GetUpdateCommand ()
707                 * GetInsertCommand ()
708                 * GetDeleteCommand ()
709                         - Do not create new command everytime. Create only if
710                         not already created.
711                 * RefreshSchema : Reset the commands.
712
713 2006-02-17  Chris Toshok  <toshok@ximian.com>
714
715         * SqlCommand.cs, SqlCommandBuilder.cs, SqlConnection.cs,
716         SqlDataAdapter.cs: remove DataSysDescription attributes for >= 2.0
717
718 2006-02-17  Chris Toshok  <toshok@ximian.com>
719
720         * SqlDataReader.cs: remove VisibleFieldCount property.
721
722 2006-02-10  Senganal T  <tsenganal@novell.com>
723         * SqlDataReader.cs :
724                 - GetBytes : Read binary/blob/clob data sequentially when
725                 CommandBehavior is set to SequentialAcccess
726                 - GetChars : Read String/clob data sequentially when CommandBehavior
727                 is set to SequentialAccess
728         * SqlCommand.cs :
729                 - ExecuteReader : set SequentialAccess property on TDS
730                 - CloseDataReader : Reset the command behavior
731
732 2006-01-27  Senganal T  <tsenganal@novell.com>
733
734         * SqlCommandBuilder.cs :
735                 - Modified  CreateUpdateCommand,CreateDeleteCommand , to not include
736                 column name in the query if its a expression col.
737                 Also, modified the queries to match the generated queries in ms.net
738         * SqlCommand.cs :
739                 - Modifed Prepare, to check if Parameter is explicitly initialized
740         * SqlParameter.cs :
741                 - Added CheckIfInitialized : Checks if datatype is explicitly set and
742                 non-zero size is set for variable datatypes.
743         * SqlDataReader.cs :
744                 - Added code for GetSqlBinary ()
745                 - Fixed GetFieldCount ()
746                 - Added more checks and exceptions. 
747
748 2006-01-17  Senganal T  <tsenganal@novell.com>
749
750         * SqlCommandBuilder.cs
751                 - Modified CreateNewCommand () : Clean up any existing parameter list
752                 before reusing the command.Fixes #77225
753
754 2005-11-24  Senganal T  <tsenganal@novell.com>
755
756         * SqlConnection.cs 
757                 - Modifications to get the correct Packet Size
758
759 2005-11-21  Senganal T  <tsenganal@novell.com>
760
761         * SqlClientFactory.cs
762         * SqlCommandBuilder.cs
763         * SqlParameterCollection.cs
764         * SqlDataReader.cs
765         * SqlDataAdapter.cs
766         * SqlParameter.cs
767         * SqlTransaction.cs
768
769         Added stubs and other changes for ADO.NET 2.0 compatibility
770         
771 2005-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
772
773         * SqlConnection.cs: don't throw NotImplementedException when using
774         'PERSIST SECUTIRY INFO'. Just do nothing.
775
776 2005-10-27  Senganal T  <tsenganal@novell.com>
777
778         * SqlCommand.cs 
779         * SqlDataReader.cs 
780         
781         Made changes so that the number of rows affected can be got directly from 
782         Tds regardsless of the type of query.Fixes bug #75698
783
784 2005-10-19  Senganal T  <tsenganal@novell.com>
785
786         * SqlConnection.cs (SetProperties) :
787                 - Added support for AttachDBFileName
788
789 2005-10-19  Senganal T  <tsenganal@novell.com>
790         
791         * SqlException.cs (Constructor)
792                 - Modified the constructor, so that the message parameter
793                 of base class is not the same as that of the Exception message.
794                 fixes bug #76468
795                 
796 2005-09-24  Sureshkumar T  <tsureshkumar@novell.com>
797
798         * SqlParameterCollection.cs (AddWithValue): added method. patch
799         from awaddell@fnfr.com (Andy Waddell).
800
801 2005-09-21 Senganal T <tsenganal@novell.com>
802
803
804         * SqlConnection.cs : 
805                 - Set the correct Default Values for Parameters.
806                 - Added Argument Checks (where missing) for the Properties and 
807                 throw the correct exception on error.
808                 - Modified SetDefaultParameters() to make sure that the parameters
809                 are all reset to default values everytime it is called.
810                 - Modified SetProperties() to take into account the order of the 
811                 keywords in the ConnectionString.
812
813         SqlConnection Fixes for the failing sqlserver connected-mode testcases 
814         in ProviderTest/System.Data.SqlClient/SqlConnectionTest.cs
815
816 2005-09-21 Senganal T <tsenganal@novell.com>
817
818         * SqlTransaction.cs : Modifed the Rollback() method, so that
819         connection can be used for another transaction after the previous
820         transaction is rolled back. fixes bug 75904
821
822 2005-09-02 Umadevi S <sumadevi@novell.com>
823         
824         * Removed SqlResultSet.cs file
825
826 2005-08-26  Sureshkumar T  <tsureshkumar@novell.com>
827
828         * SqlConnection.cs (Open): enable sp_reset_connection.
829
830 2005-08-25  Sureshkumar T  <tsureshkumar@novell.com>
831
832         * SqlCommandBuilder.cs: BuildInformation (): continue on columns
833         who don't have basetablename.
834
835 2005-08-12  Daniel Morgan <danielmorgan@verizon.net>
836
837         * SqlCommandBuilder.cs: update command builder based on
838         OdbcCommandBuilder latest changes to fix regression 
839         of bug 75552
840         
841 2005-08-05  Sureshkumar T  <tsureshkumar@novell.com>
842
843         * SqlCommandBuilder.cs: Set SourceVersion property to the created
844         parameters as it is used by the Adapter's Update method.
845
846 2005-07-22  Sureshkumar T  <tsureshkumar@novell.com>
847
848         * SqlCommandBuilder.cs, SqlParameterCollection.cs,
849         SqlConnection.cs, SqlParameter.cs:
850         - updated attributes & attribute descriptions to match with
851         masterinfos.
852
853 2005-07-16  Daniel Morgan <danielmorgan@verizon.net>
854
855         * SqlCommandBuilder.cs: CreateUpdateCommand should get the current value, not
856         the orginal value when setting one of the SET variables
857
858 2005-07-15  Sureshkumar T  <tsureshkumar@novell.com>
859
860         * SqlCommandBuilder.cs:
861         - set_DataAdapter: unsubscribe event if DataAdapter is reset.
862         - CreateInsertCommand, CreateUpdateCommand, CreateDeleteCommand:
863         if column mapping is missing, use the source column name. use
864         proper version to get the data. 
865         - RowUpdatingHandler: set status to continue to actually process
866         the query.
867
868 2005-07-04  Ben Maurer  <bmaurer@ximian.com>
869
870         * SqlError.cs: Patch from dezelin@gmail.com to fix serialization.
871
872 2005-06-29  Sureshkumar T  <tsureshkumar@novell.com>
873
874         * SqlConnection.cs: Open (): catch TdsInternalException and throw
875         SqlException.
876         * SqlException.cs: code re-organised to pass message as well with
877         the exception.
878
879 2005-06-23  Sureshkumar T  <tsureshkumar@novell.com>
880
881         * SqlConnectionStringBuilder.cs: simplified multiple keyword
882         mappings and allowed-key checking. fixed Item, Remove,
883         ContainsKey, ShoudSerialize, TryGetValue implementations.
884
885 2005-06-21  Sureshkumar T  <tsureshkumar@novell.com>
886
887         * SqlConnectionStringBuilder.cs: Connection String Builder class
888         for SqlClient Data Provider.
889
890 2005-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
891
892         * SqlParameter.cs: moved the 'using S.D.SqlTypes' out of NET_2_0. Fixes
893         the build.
894
895 2005-06-01  Sureshkumar T  <tsureshkumar@novell.com>
896
897         * SqlParameter.cs: Parameter's value can be SqlTypes. Convert to
898         framework type to pass to TDS layer. Fixes bug #75044.
899
900 2005-05-24 Umadevi S <sumadevi@novell.com>
901         * fixed some 2.0 and 1.0 specific fields/attributes for various classes.
902         * Added SqlClientMetaDataCollectionNames.cs, Implemented some 2.0
903         properties for SqlParameterCollection for the bulkcopy feature.
904         
905
906 2005-05-20 Kornél Pál <http://www.kornelpal.hu/>
907         
908         * Fixed Bug #53169 - SqlDataReader incorrectly returns bigint as decimal
909                 Note: The fix works around the limitations of TDS 7.0 to avoid this
910                 difference between Mono and .NET Framework TDS 8.0 should be used instead.
911
912 2005-05-20 Umadevi S <sumadevi@novell.com>
913         
914         * Fixed Bug 74948 - SqlParameter also takes DBNull Value.
915                 Correct some attributes stuff of 1.1 and 2.0 for SqlParameter.cs
916
917 2005-05-20 Umadevi S <sumadevi@novell.com>
918
919         * Continuing on implementation for bulkcopy and notification
920                 Added files SqlNotificationEventArgs.cs, OnChangeEventHandler.cs
921                 Modified SqlRowUpdatingEventArgs.cs
922
923 2005-05-19 Umadevi S <sumadevi@novell.com>
924         
925         * For implementation of bulkcopy and notifications added files
926                 SqlBulkCopyOptions.cs,SqlBulkCopyColumnMapping.cs,SqlNotificationAuthType.cs
927                 SqlNotificationTransports.cs,SqlRowsCopiedEventArgs.cs, SqlRowsCopiedEventHandler.cs
928
929 2005-05-19  Umadevi S <sumadevi@novell.com>
930
931         *  Corrected types,enum values of SqlNotificationType,SqlNotificationSource,
932                 SqlNotificationInfo and added new method in SqlRowUpdatingEventArgs.cs
933         (For implementation of bulkcopy/notifications)
934
935 2005-04-19  Sureshkumar T  <tsureshkumar@novell.com>
936
937         * SqlDataReader.cs: NextResult (): Re-create schema table for each
938         result set. don't re-use, as it may be referenced from somewhere.
939
940 2005-04-07  Sureshkumar T  <tsureshkumar@novell.com>
941             Ankit Jain     <radical@corewars.org>
942
943         * SqlConnection.cs: Implemented additional connection string
944         property "Asynchronous Processing".
945
946         * SqlCommand.cs: Implemented Asynchronous command execution API.
947
948         * SqlAsyncState.cs: A internal state object for asynchronous
949         operations.
950
951         * SqlAsyncResult.cs: Added. Class to hold result for asynchronous
952         queries.
953
954 2005-03-28  Sureshkumar T  <tsureshkumar@novell.com>
955
956         * SqlCommand.cs: Execute: Add a semicolon at the end of
957         CommandText. Multiple semicolon's are not being complained.
958
959         fixes bug #74134.
960
961 2005-03-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
962
963         * SqlConnection.cs: added a finalizer for correct implementation of the
964         IDisposable pattern.
965
966 2005-03-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
967
968         * SqlException.cs: make it serialization-compatible with MS. Patch by
969         Aleksandar Dezelin. Closes bug #73596.
970
971 2005-03-08  Sureshkumar T  <tsureshkumar@novell.com>
972
973         * SqlDataReader.cs: Call base constructor with CommandBehavior
974         parameter instead of passing DbCommand object. The internal base
975         class with DbCommand Parameter is removed.
976
977 2005-03-07  Sureshkumar T  <tsureshkumar@novell.com>
978
979         * SqlCommand.cs : Set CommandBehavior on
980         ExecuteReader,ExecuteScalar,ExecuteNonQuery. This is used in
981         CloseDataReader.
982
983         This fixes bug #73252.
984
985 2005-03-03  Sureshkumar T  <tsureshkumar@novell.com>
986
987         * SqlClientFactory.cs: While creating command, create using
988         DbConnectionFactory as DbConnectionBase.CreateDbCommand needs to
989         have a connection factory.
990
991         * SqlConnection.cs: Added an internal constructor which takes
992         DbConnectionFactory.
993
994         * SqlConnectionFactory.cs: Added. Concrete class for abstract
995         factory DbConnectionFactory.
996
997 2005-02-22  Sureshkumar T  <tsureshkumar@novell.com>
998
999         * SqlDataReader.cs: GetBytes: return the length of the data if
1000         output buffer is null. if not, copy the values to buffer and
1001         return the bytes actually read.
1002
1003 2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>
1004
1005         * SqlConnection.cs: 
1006         - Database: return db name from database if connection open,
1007         otherwise take from connection string.
1008         - Set default values for parameters in the constructor itself.
1009         - Dangling else problem with Close method.
1010         - reset values of parms (TdsConnectionParameters) rather setting
1011         to null.
1012         - set disposed to false in Open method
1013         - finally call base.Dispose in Dispose (bool)
1014
1015         Fixes nunit regressions SqlConnectionTest:DefaultConnectionValues
1016         and SqlConnectionTest:DatabaseSynonyms. 
1017
1018 2005-01-27  Sureshkumar T  <tsureshkumar@novell.com>
1019
1020         * SqlCommand.cs (DeriveParameters): Change parameter name to
1021         "procedure_name".
1022         * SqlParameter.cs (SqlParameter (object [])) : call default
1023         constructor to create Tds.Metaparameter.
1024
1025         fixes bug #63122.
1026
1027 2005-01-03  Sureshkumar T  <tsureshkumar@novell.com>
1028
1029         * SqlCommand.cs: Fixed bug #68973. Reset Tds.RecordsAffected to 0
1030         for each execute statement.
1031         
1032 2004-11-25  Sureshkumar T  <tsureshkumar@novell.com>
1033
1034         These changes are for 2.0 profile only. These changes implement
1035         the generic data base access technique using Provider Factory
1036         Implementation. These classes need to be dervided from abstract
1037         base classes so that the corresponding factory classes are
1038         created when calling CreateCommand, CreateParameter, etc.
1039         
1040         * SqlClientFactory.cs: Provider Factory class  Implementaion for SqlServer
1041         * SqlParameter.cs: Change base classes and override methods.
1042         * SqlParameterCollection.cs:  Change base classes and override methods.
1043         * SqlTransaction.cs:  Change base classes and override methods.
1044         * SqlDataSourceEnumerator.cs: DataSource Enumerator stubs.
1045         * SqlDataReader.cs: Change base classes and override methods.
1046         * SqlConnection.cs: Change base classes and override methods.
1047         * SqlCommandBuilder.cs: Change base classes and override methods.
1048         * SqlCommand.cs: Change base classes and override necessary methods.
1049
1050 2004-10-14 Umadevi S <sumadevi@novell.com>
1051         * SqlCommand.cs - Implemented the clone method correctly.
1052          (fixed bug 67301)
1053
1054 2004-10-06 Umadevi S <sumadevi@novell.com>
1055         * ISqlNoticationReceiver.cs - changed namespace
1056         * Added files SqlNotificationType.cs, SqlNotificationInfo.cs, SqlNotificationSource.cs
1057
1058 2004-09-24  Umadevi S <sumadevi@novell.com>
1059         * SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.
1060
1061 2004-09-14  Sebastien Pouliot  <sebastien@ximian.com>
1062
1063         * SqlClientPermission.cs: Added internal constructor accepting an Sql
1064         ClientPermissionAttribute parameter (using base class protected ctor).
1065         * SqlClientPermissionAttribute.cs: Copy now use the new SqlClient
1066         Permission constructor.
1067
1068 2004-09-13  Sebastien Pouliot  <sebastien@ximian.com>
1069
1070         * SqlClientPermission.cs: Mostly completed (needs tests).
1071         * SqlClientPermissionAttribute.cs: Completed.
1072
1073 2004-09-02 Umadevi S <sumadevi@novell.com>
1074         * SqlCommand.cs - ExecuteNonQuery to return -1 incase of executing a storedprocedure
1075
1076 2004-08-16  Gert Driesen <drieseng@users.sourceforge.net>
1077
1078         * SqlConnection.cs: added TODO on ConnectionString for keywords
1079         that are not yet implemented. check value of Integrated Security
1080         keyword, check value of bool keywords, improve error reporting
1081         for int keywords, added support for the following keyword 
1082         synonyms : APP, TIMEOUT, NETWORK, PERSISTSECURITYINFO, WSID,
1083         LANGUAGE, USER. Throw NotImplementedException when encrypt keyword
1084         is set to true, enlist keyword is set to false or attachdbfilename
1085         keyword (or one of its synonyms) is set. Added FIXME for PERSIST
1086         SECURITY INFO keyword, throwing a NotImplementedException here
1087         would break lots of apps
1088
1089 2004-08-16  Gert Driesen <drieseng@users.sourceforge.net>
1090
1091         * SqlConnection.cs - spaces to tabs
1092
1093 2004-08-12  Sureshkumar T <tsureshkumar@novell.com>
1094         * SqlDataReader.cs - In Close method, the remaining resultsets are drained
1095                              out, to read output parameters & to avoid stream overlap
1096
1097 2004-06-30 Umadevi S <sumadevi@novell.com>
1098         * SqlCommand.cs : In the Execute Method the commandbehavior parameters were ignored correct
1099 these
1100
1101 2004-06-22  Atsushi Enomoto <atsushi@ximian.com>
1102
1103         * SqlCommandBuilder.cs : Avoid cast exception caused by DbNull.
1104
1105 2004-06-18 Umadevi S <sumadevi@novell.com>
1106         * SqlCommand.cs - ExecuteNonQuery returns -1 in all cases except
1107                 insert,update or delete.
1108
1109 2004-06-18 Umadevi S <sumadevi@novell.com>
1110         * SqlConnection.cs - handled null being passed as a connectionstring
1111           - checked for minimal set of parameters in connectionstring.
1112           - handled unrecogonized keywords similar to MS.NET
1113
1114 2004-06-17 Umadevi S <sumadevi@novell.com>
1115         * SqlTransaction.cs - fixed  multiple rollbacks being called causes invalidoperationexception
1116
1117 2004-06-04  Gert Driesen <drieseng@users.sourceforge.net>
1118
1119         * SqlClientPermission.cs: removed extra CreateInstance
1120         method
1121
1122 2004-06-02  Gert Driesen <drieseng@users.sourceforge.net>
1123
1124         * SQLDebugging.cs: added missing attributes, marked ctor
1125         public to match MS.NET
1126
1127 2004-05-22  Atsushi Enomoto <atsushi@ximian.com>
1128
1129         * SqlClientPermission.cs : don't use chained obsolete .ctor.
1130
1131 2004-05-20  Gert Driesen (drieseng@users.sourceforge.net)
1132
1133         *  SqlClientPermissionAttribute.cs: change AllowMultiple and
1134         Inherited to match .NET
1135
1136 2004-05-20 Umadevi S <sumadevi@novell.com>
1137
1138         * Fixed bug 58406- implemented the hasrow method, test program used
1139         to test with the bug report                                                        
1140
1141 2004-05-13  Umadevi S  <sumadevi@novell.com>
1142         
1143         *  SqlClientPermission.cs, SqlDataReader.cs - added missing methods with TODO tags
1144         *  SqlCommand.cs, SqlDataAdapter.cs - implemented ToolboxItemAttribute
1145         *  SQLDebugging.cs - Added new file with a TODO tag     
1146         
1147 2004-04-05  Lluis Sanchez Gual  <lluis@ximian.com>
1148
1149         * SqlConnection.cs: Use connection pool implemented in Mono.Data.Tds.
1150
1151 2004-04-01  Lluis Sanchez Gual  <lluis@ximian.com>
1152
1153         * SqlDataReader.cs: Null values are now represented with DBNull instances.
1154           Deal with this.
1155
1156 2004-03-14  Tim Coleman <tim@timcoleman.com>
1157         * SqlCommand.cs SqlConnection.cs:
1158                 Changes from two patches by Andres Taylor
1159                 <andres@rotselleri.com>
1160
1161 2004-03-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1162
1163         * SqlParameter.cs: DO NOT USE the consts scheme if types can be referenced directly!
1164
1165 2004-01-10  Atsushi Enomoto <atsushi@ximian.com>
1166
1167         * SqlClientPermission.cs : Fixed NET_2_0 build related to 
1168           obsolete attribute problem (see DbDataPermission.cs)
1169
1170 2003-12-28  Tim Coleman <tim@timcoleman.com>
1171         * SqlResultSet.cs:
1172                 Stubbed out this class.
1173
1174 2003-12-23  Tim Coleman <tim@timcoleman.com>
1175         * SqlConnection.cs:
1176                 Improved connection string parsing.  See
1177                 System.Data.Common.DbConnectionString for source.
1178
1179 2003-12-21  Tim Coleman <tim@timcoleman.com>
1180         * SqlConnection.cs:
1181                 Enable Integrated Security
1182
1183 2003-12-19  Tim Coleman <tim@timcoleman.com>
1184         * ISqlNotificationReceiver.cs SqlResultSet.cs:
1185                 New stubs added
1186         * SqlClientPermission.cs:
1187                 Fix constructor for 1.2
1188
1189 2003-12-04  John Luke  <jluke@cfl.rr.com>
1190
1191         * SqlXmlTextReader.cs: applied patch from Chris Masters <neeeeeep@bigpond.com>
1192         fix peek so it checks if it is at the end and also to make sure that if Read()
1193         advances the position past the end of the localBuffer array, it makes
1194         a call to GetNextBuffer(). fixes bug #40253 System.IndexOutOfRangeException when
1195         using SqlCommand.ExecuteXmlReader()
1196
1197 2003-11-20  Joerg Rosenkranz  <JoergR@voelcker.com>
1198
1199         * SqlConnection (SetDefaultConnectionParameters):
1200         Changed default value of WORKSTATION ID to reflect real
1201         host name instead of "localhost".
1202
1203 2003-11-16 Ben Maurer  <bmaurer@users.sourceforge.net>
1204
1205         * SqlParameterCollection.cs (Clear): Clear needs to take
1206         the parameter out of the collection so that it can be used
1207         again.
1208         (Remove):
1209         (RemoveAt): Ditto.
1210
1211 2003-10-03  Diego Caravana  <diego@toth.it>
1212
1213         * SqlCommand.cs: no change.
1214
1215         * SqlConnection.cs (Close): Added checks for null instance
1216         variables.
1217
1218         * SqlParameter.cs (Direction): Now handles parameters of type
1219         ReturnValue and InputOutput.
1220
1221         * SqlParameterCollection.cs (IndexOf(string)): Search for
1222         SqlParameter object in list is done by obtaining ParameterName
1223         attribute, not directly through list.IndexOf().
1224         
1225 2003-08-22  Duncan Mak  <duncan@ximian.com>
1226
1227         * SqlCommand.cs (ExecuteNonQuery): Return
1228         Connection.Tds.RecordsAffected if it is successful.  Patch from
1229         Jörg Rosenkranz <joergr@voelcker.com>.
1230
1231         This is part of a fix to bug #40315.
1232
1233 2003-08-20  Duncan Mak  <duncan@ximian.com>
1234
1235         * SqlConnectionPool.cs (ReleaseConnection): A patch from Joerg
1236         Rosenkranz <JoergR@voelcker.com>. Currently, if a connection is
1237         closed by an external event (network problem, etc.) it is pushed
1238         back into the connection pool. The next Open call retrieves this
1239         invalid connection which leads to exceptions when executing
1240         statements.
1241
1242         This patch fixes this problem. This closes bug #47429.
1243
1244 2003-07-04  Miguel de Icaza  <miguel@ximian.com>
1245
1246         * SqlDataReader.cs: Added extra information to the exceptions
1247         thrown by all the GetXXXX methods.
1248
1249 2003-03-15  Daniel Morgan <danmorg@sc.rr.com>
1250
1251         * SqlConnection.cs: if Server in the ConnectionString
1252         is set to "(local", use "localhost" as the hostname
1253         to connect
1254
1255 2003-03-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1256
1257         * SqlException.cs: implemented GetObjectData ().
1258
1259 2003-02-16  Daniel Morgan <danmorg@sc.rr.com>
1260
1261         * ChangeLog: added this file
1262
1263         * SqlConnection.cs: - parse data source for 3 possible uses:
1264         "Server=hostname", 
1265         "Server=hostname\\instancename", 
1266         "Server=hostname,port" and open the connection based on the
1267         resulting server name and port.  
1268         - Added support for named instances
1269         by discovery of the sql server tcp port via the sql monitor (udp port 1434)
1270         thanks to Phillip Jerkins (Phillip.Jerkins@morgankeegan.com) contribution.
1271         Also, thanks to Gonzalo and Tim for their help with timeouts.
1272