38 references to SQL_DESC
System.Data (38)
fx\src\data\System\Data\Common\UnsafeNativeMethods.cs (3)
216
/*SQLUSMALLINT*/ODBC32.
SQL_DESC
FieldIdentifier,
386
/*SQLSMALLINT*/ODBC32.
SQL_DESC
FieldIdentifier,
395
/*SQLSMALLINT*/ODBC32.
SQL_DESC
FieldIdentifier,
fx\src\data\System\Data\Odbc\OdbcConnection.cs (2)
652
internal void FlagUnsupportedColAttr (ODBC32.
SQL_DESC
v3FieldId, ODBC32.SQL_COLUMN v2FieldId) {
655
case (ODBC32.
SQL_DESC
)ODBC32.SQL_CA_SS.COLUMN_KEY:
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (26)
202
SQLLEN isHidden = GetColAttribute(i, (ODBC32.
SQL_DESC
)ODBC32.SQL_CA_SS.COLUMN_HIDDEN, (ODBC32.SQL_COLUMN)(-1), ODBC32.HANDLER.IGNORE);
347
info._typename = GetColAttributeStr(i, ODBC32.
SQL_DESC
.TYPE_NAME, ODBC32.SQL_COLUMN.TYPE_NAME, ODBC32.HANDLER.THROW);
373
info._name = GetColAttributeStr(i, ODBC32.
SQL_DESC
.NAME, ODBC32.SQL_COLUMN.NAME, ODBC32.HANDLER.THROW);
476
ODBC32.SQL_TYPE subtype = (ODBC32.SQL_TYPE)(int)GetColAttribute(i, (ODBC32.
SQL_DESC
)ODBC32.SQL_CA_SS.VARIANT_SQL_TYPE, (ODBC32.SQL_COLUMN)(-1), ODBC32.HANDLER.THROW);
519
info._dbtype = unchecked((ODBC32.SQL_TYPE)(int)GetColAttribute(i, ODBC32.
SQL_DESC
.CONCISE_TYPE, ODBC32.SQL_COLUMN.TYPE,ODBC32.HANDLER.THROW));
522
bool sign = (GetColAttribute(i, ODBC32.
SQL_DESC
.UNSIGNED, ODBC32.SQL_COLUMN.UNSIGNED, ODBC32.HANDLER.THROW).ToInt64() != 0);
1343
private SQLLEN GetColAttribute(int iColumn, ODBC32.
SQL_DESC
v3FieldId, ODBC32.SQL_COLUMN v2FieldId, ODBC32.HANDLER handler) {
1388
private String GetColAttributeStr(int i, ODBC32.
SQL_DESC
v3FieldId, ODBC32.SQL_COLUMN v2FieldId, ODBC32.HANDLER handler) {
1430
private String GetDescFieldStr(int i, ODBC32.
SQL_DESC
attribute, ODBC32.HANDLER handler) {
1785
typeMap = TypeMap.FromSqlType((ODBC32.SQL_TYPE)unchecked((int) GetColAttribute(i, ODBC32.
SQL_DESC
.CONCISE_TYPE, ODBC32.SQL_COLUMN.TYPE, ODBC32.HANDLER.THROW)));
1787
bool sign = (GetColAttribute(i, ODBC32.
SQL_DESC
.UNSIGNED, ODBC32.SQL_COLUMN.UNSIGNED, ODBC32.HANDLER.THROW).ToInt64() != 0);
1793
metaInfos[i].size = GetColAttribute(i, ODBC32.
SQL_DESC
.OCTET_LENGTH, ODBC32.SQL_COLUMN.LENGTH, ODBC32.HANDLER.IGNORE);
1805
metaInfos[i].precision = (byte) GetColAttribute(i, (ODBC32.
SQL_DESC
)ODBC32.SQL_COLUMN.PRECISION, ODBC32.SQL_COLUMN.PRECISION, ODBC32.HANDLER.IGNORE);
1806
metaInfos[i].scale = (byte) GetColAttribute(i, (ODBC32.
SQL_DESC
)ODBC32.SQL_COLUMN.SCALE, ODBC32.SQL_COLUMN.SCALE, ODBC32.HANDLER.IGNORE);
1808
metaInfos[i].isAutoIncrement = GetColAttribute(i, ODBC32.
SQL_DESC
.AUTO_UNIQUE_VALUE, ODBC32.SQL_COLUMN.AUTO_INCREMENT, ODBC32.HANDLER.IGNORE) == 1;
1809
metaInfos[i].isReadOnly = (GetColAttribute(i, ODBC32.
SQL_DESC
.UPDATABLE, ODBC32.SQL_COLUMN.UPDATABLE, ODBC32.HANDLER.IGNORE) == (Int32)ODBC32.SQL_UPDATABLE.READONLY);
1811
nullable = (ODBC32.SQL_NULLABILITY) (int) GetColAttribute(i, ODBC32.
SQL_DESC
.NULLABLE, ODBC32.SQL_COLUMN.NULLABLE, ODBC32.HANDLER.IGNORE);
1831
isKeyColumn = GetColAttribute(i, (ODBC32.
SQL_DESC
)ODBC32.SQL_CA_SS.COLUMN_KEY, (ODBC32.SQL_COLUMN)(-1), ODBC32.HANDLER.IGNORE) == 1;
1840
metaInfos[i].baseSchemaName = GetColAttributeStr(i, ODBC32.
SQL_DESC
.SCHEMA_NAME, ODBC32.SQL_COLUMN.OWNER_NAME, ODBC32.HANDLER.IGNORE);
1841
metaInfos[i].baseCatalogName = GetColAttributeStr(i, ODBC32.
SQL_DESC
.CATALOG_NAME, (ODBC32.SQL_COLUMN)(-1), ODBC32.HANDLER.IGNORE);
1842
metaInfos[i].baseTableName = GetColAttributeStr(i, ODBC32.
SQL_DESC
.BASE_TABLE_NAME, ODBC32.SQL_COLUMN.TABLE_NAME, ODBC32.HANDLER.IGNORE);
1843
metaInfos[i].baseColumnName = GetColAttributeStr(i, ODBC32.
SQL_DESC
.BASE_COLUMN_NAME, ODBC32.SQL_COLUMN.NAME, ODBC32.HANDLER.IGNORE);
1849
metaInfos[i].baseTableName = GetDescFieldStr(i, ODBC32.
SQL_DESC
.BASE_TABLE_NAME, ODBC32.HANDLER.IGNORE);
1854
metaInfos[i].baseColumnName = GetDescFieldStr(i, ODBC32.
SQL_DESC
.BASE_COLUMN_NAME, ODBC32.HANDLER.IGNORE);
1874
isKeyColumn = GetColAttribute(i, (ODBC32.
SQL_DESC
)ODBC32.SQL_CA_SS.COLUMN_KEY, (ODBC32.SQL_COLUMN)(-1), ODBC32.HANDLER.IGNORE) == 1;
1876
isHidden = GetColAttribute(i, (ODBC32.
SQL_DESC
)ODBC32.SQL_CA_SS.COLUMN_HIDDEN, (ODBC32.SQL_COLUMN)(-1), ODBC32.HANDLER.IGNORE) == 1;
fx\src\data\System\Data\Odbc\OdbcHandle.cs (3)
215
internal ODBC32.RetCode GetDescriptionField(int i, ODBC32.
SQL_DESC
attribute, CNativeBuffer buffer, out int numericAttribute) {
221
internal ODBC32.RetCode SetDescriptionField1(short ordinal, ODBC32.
SQL_DESC
type, IntPtr value) {
227
internal ODBC32.RetCode SetDescriptionField2(short ordinal, ODBC32.
SQL_DESC
type, HandleRef value) {
fx\src\data\System\Data\Odbc\OdbcParameter.cs (4)
790
retcode = hdesc.SetDescriptionField1(ordinal, ODBC32.
SQL_DESC
.TYPE, (IntPtr)ODBC32.SQL_C.NUMERIC);
801
retcode = hdesc.SetDescriptionField1(ordinal, ODBC32.
SQL_DESC
.PRECISION, (IntPtr)cbActual);
812
retcode = hdesc.SetDescriptionField1(ordinal, ODBC32.
SQL_DESC
.SCALE, (IntPtr)cbActual);
821
retcode = hdesc.SetDescriptionField2(ordinal, ODBC32.
SQL_DESC
.DATA_PTR, valueBuffer);