11 writes to _bindtype
System.Data.Odbc (11)
System\Data\Odbc\OdbcParameter.cs (11)
617
_bindtype
= null;
681
_bindtype
= TypeMap._VarChar;
695
_bindtype
= TypeMap._VarChar;
717
if (ODBC32.SQL_TYPE.WCHAR == _bindtype._sql_type) {
_bindtype
= TypeMap._Char; }
718
else if (ODBC32.SQL_TYPE.WVARCHAR == _bindtype._sql_type) {
_bindtype
= TypeMap._VarChar; }
721
_bindtype
= TypeMap._Text;
761
_bindtype
= TypeMap._Image; // will change to LONGVARBINARY
768
_bindtype
= TypeMap._Text; // will change to LONGVARCHAR
775
_bindtype
= TypeMap._NText; // will change to WLONGVARCHAR
954
_bindtype
= null;
1033
_originalbindtype =
_bindtype
= _typemap;
36 references to _bindtype
System.Data.Odbc (36)
System\Data\Odbc\OdbcParameter.cs (36)
320
if ((ODBC32.SQL_C.NUMERIC ==
_bindtype
!._sql_c) && (0 != _internalPrecision))
324
int cch =
_bindtype
._columnSize;
336
Debug.Assert((ODBC32.SQL_C.WCHAR ==
_bindtype
._sql_c) || (ODBC32.SQL_C.BINARY ==
_bindtype
._sql_c), "not wchar or binary");
339
throw ADP.UninitializedParameterSize(ordinal,
_bindtype
._type);
366
if ((ODBC32.SQL_TYPE.CHAR ==
_bindtype
._sql_type)
367
|| (ODBC32.SQL_TYPE.VARCHAR ==
_bindtype
._sql_type)
368
|| (ODBC32.SQL_TYPE.LONGVARCHAR ==
_bindtype
._sql_type))
380
if ((ODBC32.SQL_TYPE.CHAR ==
_bindtype
._sql_type)
381
|| (ODBC32.SQL_TYPE.VARCHAR ==
_bindtype
._sql_type)
382
|| (ODBC32.SQL_TYPE.LONGVARCHAR ==
_bindtype
._sql_type))
420
if ((ODBC32.SQL_C.NUMERIC ==
_bindtype
!._sql_c) && (0 != _internalPrecision))
424
int cch =
_bindtype
._columnSize;
446
if (_internalShouldSerializeSize && (_internalSize >= 0) && (_internalSize < cch) && (
_bindtype
== _originalbindtype))
463
int ccb =
_bindtype
!._bufferSize;
475
Debug.Assert((ODBC32.SQL_C.WCHAR ==
_bindtype
._sql_c) || (ODBC32.SQL_C.BINARY ==
_bindtype
._sql_c), "not wchar or binary");
478
throw ADP.UninitializedParameterSize(ordinal,
_bindtype
._type);
482
if (
_bindtype
._sql_c == ODBC32.SQL_C.WCHAR)
513
else if (ODBC32.SQL_C.WCHAR ==
_bindtype
._sql_c)
515
if ((value is string) && (ccb < ((string)value).Length) && (
_bindtype
== _originalbindtype))
522
else if ((value is byte[]) && (ccb < ((byte[])value).Length) && (
_bindtype
== _originalbindtype))
669
switch (
_bindtype
!._sql_type)
676
|| command.Connection.TestRestrictedSqlBindType(
_bindtype
._sql_type)// or the type is not supported
713
if (!command.Connection.TestTypeSupport(
_bindtype
._sql_type))
717
if (ODBC32.SQL_TYPE.WCHAR ==
_bindtype
._sql_type) { _bindtype = TypeMap._Char; }
718
else if (ODBC32.SQL_TYPE.WVARCHAR ==
_bindtype
._sql_type) { _bindtype = TypeMap._VarChar; }
719
else if (ODBC32.SQL_TYPE.WLONGVARCHAR ==
_bindtype
._sql_type)
730
sql_c_type =
_bindtype
._sql_c;
755
switch (
_bindtype
._sql_type)
851
&& (_boundParameterType ==
_bindtype
!._sql_type)
866
_bindtype
!._sql_type, // ParameterType
877
command.Connection.FlagRestrictedSqlBindType(
_bindtype
._sql_type);
888
_boundParameterType =
_bindtype
._sql_type;
951
if ((null !=
_bindtype
) && (_internalDirection != ParameterDirection.Input))
953
TypeMap typemap =
_bindtype
;