1 //------------------------------------------------------------------------------
2 // <copyright file="OdbcConnectionPoolProviderInfo.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">Microsoft</owner>
6 // <owner current="true" primary="false">Microsoft</owner>
7 //------------------------------------------------------------------------------
9 namespace System.Data.Odbc
13 using System.Data.ProviderBase;
15 sealed internal class OdbcConnectionPoolGroupProviderInfo : DbConnectionPoolGroupProviderInfo {
16 private string _driverName;
17 private string _driverVersion;
18 private string _quoteChar;
20 private char _escapeChar;
21 private bool _hasQuoteChar;
22 private bool _hasEscapeChar;
24 private bool _isV3Driver;
25 private int _supportedSQLTypes;
26 private int _testedSQLTypes;
27 private int _restrictedSQLBindTypes; // These, otherwise supported types, are not available for binding
29 // flags for unsupported Attributes
30 private bool _noCurrentCatalog;
31 private bool _noConnectionDead;
33 private bool _noQueryTimeout;
34 private bool _noSqlSoptSSNoBrowseTable;
35 private bool _noSqlSoptSSHiddenColumns;
38 private bool _noSqlCASSColumnKey;
41 // flags for unsupported Functions
42 private bool _noSqlPrimaryKeys;
44 internal string DriverName {
53 internal string DriverVersion {
55 return _driverVersion;
58 _driverVersion = value;
62 internal bool HasQuoteChar {
63 // the value is set together with the QuoteChar (see set_QuoteChar);
69 internal bool HasEscapeChar {
70 // the value is set together with the EscapeChar (see set_EscapeChar);
72 return _hasEscapeChar;
77 internal string QuoteChar {
87 internal char EscapeChar {
93 _hasEscapeChar = true;
97 internal bool IsV3Driver {
106 internal int SupportedSQLTypes {
108 return _supportedSQLTypes;
111 _supportedSQLTypes = value;
115 internal int TestedSQLTypes {
117 return _testedSQLTypes;
120 _testedSQLTypes = value;
124 internal int RestrictedSQLBindTypes {
126 return _restrictedSQLBindTypes;
129 _restrictedSQLBindTypes = value;
134 internal bool NoCurrentCatalog {
136 return _noCurrentCatalog;
139 _noCurrentCatalog = value;
143 internal bool NoConnectionDead {
145 return _noConnectionDead;
148 _noConnectionDead = value;
153 internal bool NoQueryTimeout {
155 return _noQueryTimeout;
158 _noQueryTimeout = value;
162 internal bool NoSqlSoptSSNoBrowseTable {
164 return _noSqlSoptSSNoBrowseTable;
167 _noSqlSoptSSNoBrowseTable = value;
171 internal bool NoSqlSoptSSHiddenColumns {
173 return _noSqlSoptSSHiddenColumns;
176 _noSqlSoptSSHiddenColumns = value;
181 internal bool NoSqlCASSColumnKey {
183 return _noSqlCASSColumnKey;
186 _noSqlCASSColumnKey = value;
191 internal bool NoSqlPrimaryKeys {
193 return _noSqlPrimaryKeys;
196 _noSqlPrimaryKeys = value;