There was an error while loading. Please reload this page.
1 parent 3e20a0d commit ddd62baCopy full SHA for ddd62ba
storage/connect/odbconn.cpp
@@ -2249,7 +2249,7 @@ int ODBConn::GetCatInfo(CATPARM *cap)
2249
rc = SQLTables(hstmt, name.ptr(2), name.length(2),
2250
name.ptr(1), name.length(1),
2251
name.ptr(0), name.length(0),
2252
- cap->Pat, SQL_NTS);
+cap->Pat, cap->Pat ? SQL_NTS : 0);
2253
break;
2254
case CAT_COL:
2255
// rc = SQLSetStmtAttr(hstmt, SQL_ATTR_METADATA_ID,
@@ -2258,7 +2258,7 @@ int ODBConn::GetCatInfo(CATPARM *cap)
2258
rc = SQLColumns(hstmt, name.ptr(2), name.length(2),
2259
2260
2261
+ cap->Pat, cap->Pat ? SQL_NTS : 0);
2262
2263
case CAT_KEY:
2264
fnc = "SQLPrimaryKeys";
0 commit comments