Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Driesen <drieseng@users.sourceforge.net>2009-01-03 17:24:15 +0300
committerGert Driesen <drieseng@users.sourceforge.net>2009-01-03 17:24:15 +0300
commit13b978192615cfd7dbad620e3b5a7102a5a2fdf0 (patch)
treec07fa43e0d154854599f3310555c98d652b959d5 /mcs/class/System.Data/System.Data.Common/DbCommandBuilder.cs
parentdce1fcefb80a2165bdf63c2a953509fc0af5a690 (diff)
* System.Data_test.dll.sources: Added SqlCommandBuilderTest.cs
and SqlParameterTest.cs. * DbCommandBuilder.cs (QuoteIdentifier): Throw NotSupportedException. * DbDataAdapter.cs (Update): Add row causing concurrency violation to DBConcurrencyException. * OdbcCommandBuilder.cs (QuoteIdentifier): Escape QuoteSuffix character(s) in unquoted identifier. * SqlCommandBuilder.cs: Added missing checks for QuotePrefix and QuoteSuffix on 2.0 profile, and return a zero-length string if not set (or set to null) on 1.0 profile. Do not allow the value of CatalogSeparator and SchemaSeparator to be changed from '.'. Modified generated SQL to match MS. Added implementation for QuoteIdenfifier. Modified parameters to match MS. * SqlParameter.cs (SqlValue): Keep Value in sync. * DbCommandBuilderTest.cs: Added test for QuoteIdentifier. * OdbcCommandBuilderTest.cs: Enabled test for QuoteIdentifier. * SqlCommandBuilderTest.cs: Added tests for CatalogLocation, CatalogSeparator, ConflictOption, QuoteIdentifier, QuotePrefix, QuoteSuffix and SchemaSeparator. * SqlParameterTest.cs: Moved existing tests from ProviderTests to increase their visibility. Added tests for type inference. svn path=/trunk/mcs/; revision=122361
Diffstat (limited to 'mcs/class/System.Data/System.Data.Common/DbCommandBuilder.cs')
-rw-r--r--mcs/class/System.Data/System.Data.Common/DbCommandBuilder.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/DbCommandBuilder.cs b/mcs/class/System.Data/System.Data.Common/DbCommandBuilder.cs
index f11c507e8d7..f60b64e29d1 100644
--- a/mcs/class/System.Data/System.Data.Common/DbCommandBuilder.cs
+++ b/mcs/class/System.Data/System.Data.Common/DbCommandBuilder.cs
@@ -567,10 +567,7 @@ namespace System.Data.Common {
public virtual string QuoteIdentifier (string unquotedIdentifier)
{
- if (unquotedIdentifier == null) {
- throw new ArgumentNullException("Unquoted identifier parameter cannot be null");
- }
- return String.Format ("{0}{1}{2}", this.QuotePrefix, unquotedIdentifier, this.QuoteSuffix);
+ throw new NotSupportedException ();
}
public virtual string UnquoteIdentifier (string quotedIdentifier)