30 if(usr!=
"" && pwd !=
""){
32 printf(
"connecting with: dsn= %s usr=%s pwd=%s\n",dsn,usr,pwd);
36 printf(
"connecting with: dsn= %s \n",dsn);
42 printf(
"failed to connect: dsn= %s usr=%s pwd=%s\n",dsn,usr,pwd);
57 TString catalog=schema;
58 TString tab_pattern=
"";
59 TString tab_type=
"TABLE";
64 printf(
"%s\n",tableName.Data());
67 printf(
"Bool_t AllProceduresAreCallable():%d\n",
69 printf(
"Bool_t AllTablesAreSelectable():%d\n",
77 printf(
"TString GetDatabaseProductName():%s\n",
79 printf(
"TString GetDatabaseProductVersion():%s\n",
87 printf(
"Bool_t SupportsMixedCaseIdentifiers():%d\n",
89 printf(
"Bool_t StoresUpperCaseIdentifiers():%d\n",
91 printf(
"Bool_t StoresLowerCaseIdentifiers():%d\n",
93 printf(
"Bool_t StoresMixedCaseIdentifiers():%d\n",
95 printf(
"Bool_t SupportsMixedCaseQuotedIdentifiers():%d\n",
97 printf(
"Bool_t StoresUpperCaseQuotedIdentifiers():%d\n",
99 printf(
"Bool_t StoresLowerCaseQuotedIdentifiers():%d\n",
101 printf(
"Bool_t StoresMixedCaseQuotedIdentifiers():%d\n",
103 printf(
"TString GetIdentifierQuoteString():%s\n",
105 printf(
"TString GetSQLKeywords():%s\n",
107 printf(
"TString GetNumericFunctions():%s\n",
109 printf(
"TString GetStringFunctions():%s\n",
111 printf(
"TString GetSystemFunctions():%s\n",
113 printf(
"TString GetTimeDateFunctions():%s\n",
115 printf(
"TString GetSearchStringEscape():%s\n",
117 printf(
"TString GetExtraNameCharacters():%s\n",
119 printf(
"Bool_t SupportsAlterTableWithAddColumn():%d\n",
121 printf(
"Bool_t SupportsAlterTableWithDropColumn():%d\n",
123 printf(
"Bool_t SupportsColumnAliasing():%d\n",
125 printf(
"Bool_t NullPlusNonNullIsNull():%d\n",
129 printf(
"Bool_t SupportsTableCorrelationNames():%d\n",
131 printf(
"Bool_t SupportsDifferentTableCorrelationNames():%d\n",
133 printf(
"Bool_t SupportsExpressionsInOrderBy():%d\n",
135 printf(
"Bool_t SupportsOrderByUnrelated():%d\n",
137 printf(
"Bool_t SupportsGroupBy():%d\n",
139 printf(
"Bool_t SupportsGroupByUnrelated():%d\n",
141 printf(
"Bool_t SupportsGroupByBeyondSelect():%d\n",
143 printf(
"Bool_t SupportsLikeEscapeClause():%d\n",
145 printf(
"Bool_t SupportsMultipleResultSets():%d\n",
147 printf(
"Bool_t SupportsMultipleTransactions():%d\n",
149 printf(
"Bool_t SupportsNonNullableColumns():%d\n",
151 printf(
"Bool_t SupportsMinimumSQLGrammar():%d\n",
153 printf(
"Bool_t SupportsCoreSQLGrammar():%d\n",
155 printf(
"Bool_t SupportsExtendedSQLGrammar():%d\n",
157 printf(
"Bool_t SupportsANSI92EntryLevelSQL():%d\n",
159 printf(
"Bool_t SupportsANSI92IntermediateSQL():%d\n",
161 printf(
"Bool_t SupportsANSI92FullSQL():%d\n",
163 printf(
"Bool_t SupportsIntegrityEnhancementFacility():%d\n",
165 printf(
"Bool_t SupportsOuterJoins():%d\n",
167 printf(
"Bool_t SupportsFullOuterJoins():%d\n",
169 printf(
"Bool_t SupportsLimitedOuterJoins():%d\n",
171 printf(
"TString GetSchemaTerm():%s\n",
173 printf(
"TString GetTableTerm():%s\n",
175 printf(
"TString GetProcedureTerm():%s\n",
177 printf(
"TString GetCatalogTerm():%s\n",
179 printf(
"Bool_t IsCatalogAtStart():%d\n",
181 printf(
"TString GetCatalogSeparator():%s\n",
183 printf(
"Bool_t SupportsSchemasInDataManipulation():%d\n",
185 printf(
"Bool_t SupportsSchemasInProcedureCalls():%d\n",
187 printf(
"Bool_t SupportsSchemasInTableDefinitions():%d\n",
189 printf(
"Bool_t SupportsSchemasInIndexDefinitions():%d\n",
191 printf(
"Bool_t SupportsSchemasInPrivilegeDefinitions():%d\n",
193 printf(
"Bool_t SupportsCatalogsInDataManipulation():%d\n",
195 printf(
"Bool_t SupportsCatalogsInProcedureCalls():%d\n",
197 printf(
"Bool_t SupportsCatalogsInTableDefinitions():%d\n",
199 printf(
"Bool_t SupportsCatalogsInIndexDefinitions():%d\n",
201 printf(
"Bool_t SupportsCatalogsInPrivilegeDefinitions():%d\n",
203 printf(
"Bool_t SupportsPositionedDelete():%d\n",
205 printf(
"Bool_t SupportsPositionedUpdate():%d\n",
207 printf(
"Bool_t SupportsSelectForUpdate():%d\n",
209 printf(
"Bool_t SupportsStoredProcedures():%d\n",
211 printf(
"Bool_t SupportsSubqueriesInComparisons():%d\n",
213 printf(
"Bool_t SupportsSubqueriesInExists():%d\n",
215 printf(
"Bool_t SupportsSubqueriesInIns():%d\n",
217 printf(
"Bool_t SupportsSubqueriesInQuantifieds():%d\n",
219 printf(
"Bool_t SupportsCorrelatedSubqueries():%d\n",
221 printf(
"Bool_t SupportsUnion():%d\n",
223 printf(
"Bool_t SupportsUnionAll():%d\n",
225 printf(
"Bool_t SupportsOpenCursorsAcrossRollback():%d\n",
227 printf(
"Bool_t SupportsOpenStatementsAcrossCommit():%d\n",
229 printf(
"Bool_t SupportsOpenStatementsAcrossRollback():%d\n",
231 printf(
"Int_t GetMaxBinaryLiteralLength():%d\n",
233 printf(
"Int_t GetMaxCharLiteralLength():%d\n",
235 printf(
"Int_t GetMaxColumnNameLength():%d\n",
237 printf(
"Int_t GetMaxColumnsInGroupBy():%d\n",
239 printf(
"Int_t GetMaxColumnsInIndex():%d\n",
241 printf(
"Int_t GetMaxColumnsInOrderBy():%d\n",
243 printf(
"Int_t GetMaxColumnsInSelect():%d\n",
245 printf(
"Int_t GetMaxColumnsInTable():%d\n",
247 printf(
"Int_t GetMaxConnections():%d\n",
249 printf(
"Int_t GetMaxCursorNameLength():%d\n",
251 printf(
"Int_t GetMaxIndexLength():%d\n",
253 printf(
"Int_t GetMaxSchemaNameLength():%d\n",
255 printf(
"Int_t GetMaxProcedureNameLength():%d\n",
257 printf(
"Int_t GetMaxCatalogNameLength():%d\n",
260 printf(
"Bool_t DoesMaxRowSizeIncludeBlobs():%d\n",
262 printf(
"Int_t GetMaxStatementLength():%d\n",
264 printf(
"Int_t GetMaxStatements():%d\n",
266 printf(
"Int_t GetMaxTableNameLength():%d\n",
268 printf(
"Int_t GetMaxTablesInSelect():%d\n",
270 printf(
"Int_t GetMaxUserNameLength():%d\n",
272 printf(
"Int_t GetDefaultTransactionIsolation():%d\n",
274 printf(
"Bool_t SupportsTransactions():%d\n",
277 printf(
"Bool_t SupportsDataDefinitionAndDataManipulationTransactions():%d\n",
280 printf(
"Bool_t SupportsDataManipulationTransactionsOnly():%d\n",
282 printf(
"Bool_t DataDefinitionCausesTransactionCommit():%d\n",
284 printf(
"Bool_t DataDefinitionIgnoredInTransactions():%d\n",
287 printf(
"looking at columns of %s\n",tableName.Data());
288 TString query =
"select * from ";
289 query += tableName +
" where 1=0;";
296 for(
int i=1;
i<= numCols;
i++)
299 printf(
"col name= '%s' type = '%s' \n",
306 myConnection->
Close();
316 printf(
"SQL Error: %s\n",str.Data());
329 TROOT
root(
"RDBCTestMetaData",
"Test RDBC TSQLDriverManager and TSQLConnection");
331 int main(
int argc,
char **argv)
334 gSystem->Load(
"libRDBC");
345 if(argc != 3 && argc != 5){
346 printf (
"usage: RDBCTestMetaData dsn schema [usr] [password]\n");