You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@@ -462,14 +462,16 @@ namespace IBM.Data.DB2
|
||||
for(int i = 0; i < columnInfo.Length; i++)
|
||||
{
|
||||
short sqlRet;
|
||||
short strlen;
|
||||
int numericAttribute;
|
||||
|
||||
sqlRet = DB2CLIWrapper.SQLColAttribute(hwndStmt, (short)(i + 1), (short)DB2Constants.SQL_DESC_BASE_COLUMN_NAME, sb, (short)sb.Capacity, out strlen, out numericAttribute);
|
||||
short strlen = 0;
|
||||
int numericAttribute = 0;
|
||||
|
||||
sb.Clear();
|
||||
sqlRet = DB2CLIWrapper.SQLColAttribute(hwndStmt, (short)(i + 1), (short)DB2Constants.SQL_DESC_COLUMN_NAME, sb, (short)sb.Capacity, out strlen, out numericAttribute);
|
||||
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "GetSchemaTable");
|
||||
columnInfo[i].Colname = sb.ToString();
|
||||
columnsNames[columnInfo[i].Colname.ToUpper()] = i;
|
||||
|
||||
|
||||
strlen = 0;
|
||||
sqlRet = DB2CLIWrapper.SQLColAttribute(hwndStmt, (short)(i + 1), (short)DB2Constants.SQL_DESC_CONCISE_TYPE, sb, (short)sb.Capacity, out strlen, out columnInfo[i].Sqltype);
|
||||
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "GetSchemaTable");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user