Skip to content

Commit d11592c

Browse files
gordthompsonmkleehammer
authored andcommitted
Convert tabs to spaces
1 parent 7aa8536 commit d11592c

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

src/getdata.cpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -535,30 +535,30 @@ static PyObject* GetDataTimestamp(Cursor* cur, Py_ssize_t iCol)
535535

536536
switch (cur->colinfos[iCol].sql_type)
537537
{
538-
case SQL_TYPE_TIME:
539-
{
540-
int micros = (int)(value.fraction / 1000); // nanos --> micros
541-
return PyTime_FromTime(value.hour, value.minute, value.second, micros);
542-
}
538+
case SQL_TYPE_TIME:
539+
{
540+
int micros = (int)(value.fraction / 1000); // nanos --> micros
541+
return PyTime_FromTime(value.hour, value.minute, value.second, micros);
542+
}
543543

544-
case SQL_TYPE_DATE:
544+
case SQL_TYPE_DATE:
545545
case SQL_DATE:
546-
return PyDate_FromDate(value.year, value.month, value.day);
546+
return PyDate_FromDate(value.year, value.month, value.day);
547547

548-
case SQL_TYPE_TIMESTAMP:
548+
case SQL_TYPE_TIMESTAMP:
549549
case SQL_TIMESTAMP:
550-
{
551-
if (value.year < 1)
552-
{
553-
value.year = 1;
554-
}
555-
else if (value.year > 9999)
556-
{
557-
value.year = 9999;
558-
}
559-
}
550+
{
551+
if (value.year < 1)
552+
{
553+
value.year = 1;
554+
}
555+
else if (value.year > 9999)
556+
{
557+
value.year = 9999;
558+
}
559+
}
560560
}
561-
561+
562562

563563
int micros = (int)(value.fraction / 1000); // nanos --> micros
564564

@@ -779,7 +779,7 @@ PyObject *GetData_SqlVariant(Cursor *cur, Py_ssize_t iCol) {
779779
// the ODBC driver read the sql_variant header which contains the underlying data type
780780
pBuff = 0;
781781
indicator = 0;
782-
retcode = SQLGetData(cur->hstmt, static_cast<SQLSMALLINT>(iCol + 1), SQL_C_BINARY,
782+
retcode = SQLGetData(cur->hstmt, static_cast<SQLSMALLINT>(iCol + 1), SQL_C_BINARY,
783783
&pBuff, 0, &indicator);
784784
if (!SQL_SUCCEEDED(retcode))
785785
return RaiseErrorFromHandle(cur->cnxn, "SQLGetData", cur->cnxn->hdbc, cur->hstmt);

src/pyodbc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ inline void DebugTrace(const char* szFmt, ...) { UNUSED(szFmt); }
121121

122122
// issue #880: entry missing from iODBC sqltypes.h
123123
#ifndef BYTE
124-
typedef unsigned char BYTE;
124+
typedef unsigned char BYTE;
125125
#endif
126126
bool PyMem_Realloc(BYTE** pp, size_t newlen);
127127
// A wrapper around realloc with a safer interface. If it is successful, *pp is updated to the

0 commit comments

Comments
 (0)