12 references to UNKNOWN_PRECISION_SCALE
System.Data (12)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (10)
539
Debug.Assert(TdsEnums.
UNKNOWN_PRECISION_SCALE
== col.scale || (0 <= col.scale && col.scale <= 7), "Invalid scale for Time column: " + col.scale);
540
schemaRow[Size] = TdsEnums.WHIDBEY_TIME_LENGTH[TdsEnums.
UNKNOWN_PRECISION_SCALE
!= col.scale ? col.scale : col.metaType.Scale];
543
Debug.Assert(TdsEnums.
UNKNOWN_PRECISION_SCALE
== col.scale || (0 <= col.scale && col.scale <= 7), "Invalid scale for DateTime2 column: " + col.scale);
544
schemaRow[Size] = TdsEnums.WHIDBEY_DATETIME2_LENGTH[TdsEnums.
UNKNOWN_PRECISION_SCALE
!= col.scale ? col.scale : col.metaType.Scale];
547
Debug.Assert(TdsEnums.
UNKNOWN_PRECISION_SCALE
== col.scale || (0 <= col.scale && col.scale <= 7), "Invalid scale for DateTimeOffset column: " + col.scale);
548
schemaRow[Size] = TdsEnums.WHIDBEY_DATETIMEOFFSET_LENGTH[TdsEnums.
UNKNOWN_PRECISION_SCALE
!= col.scale ? col.scale : col.metaType.Scale];
587
if (TdsEnums.
UNKNOWN_PRECISION_SCALE
!= col.baseTI.precision) {
594
else if (TdsEnums.
UNKNOWN_PRECISION_SCALE
!= col.precision) {
606
if (TdsEnums.
UNKNOWN_PRECISION_SCALE
!= col.baseTI.scale) {
613
else if (TdsEnums.
UNKNOWN_PRECISION_SCALE
!= col.scale) {
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (2)
821
internal byte precision = TdsEnums.
UNKNOWN_PRECISION_SCALE
; // give default of unknown (-1)
822
internal byte scale = TdsEnums.
UNKNOWN_PRECISION_SCALE
; // give default of unknown (-1)